Aikhen Posted October 13, 2010 Share Posted October 13, 2010 I recommend saving a copy of the Hosts file, and hiding it somewhere on the computer, this will become our back up copy should we ever need one Ok first off we need to open the correct file. let's do that now. 1) open C drive or your designated hard drive, which is D drive for some user's. 2) go to the windows folder and open it 3) now open the system32 folder 4) open the drivers folder 5) open the etc folder 6) now we see a file called hosts. we need to right click on this file and choose open with. choose open with, select from list, and we use notepad to open the file. 7) we need to scroll down where we see 127.0.0.1 localhost Cool skip a line under 127.0.0.1 localhost. this line should be empty, and under this line here, we will start blocking sites. 9) now we will enter, 127.0.0.1 www.sitename.com #blocked, do not add http:// 10) click the close button when your finished and say yes when asked to save changes. you get the point now. Just be careful not to remove the "127.0.0.1 localhost" line if you're removing entries. Basically, the "127.0.0.1 www.facebook.com" line links the "www.facebook.com" domain name to the 127.0.0.1 IP address, which is always your own computer (=the local host/computer). So any data going to www.facebook.com will go to 127.0.0.1 and simply be discarded. i used the "#" (pound sign) blocked to let me know i blocked them, but that is optional. notice no pound sign's in front of my entries, that is because these are active entries, that the computer will read. everything else that has a pound sign in front of it, is just a comment, and the computer will not recognize that as a command. Vista: Users must run Notepad as admin then navigate to the host file. Be sure all files is selected from the drop down menu so you can see the host file. Quote Link to comment Share on other sites More sharing options...
zeraeign Posted November 22, 2010 Share Posted November 22, 2010 I haven't read it all but I already bookmarked this site so no one could use my laptop for their 'sinful acts'. LOL. Thanks. Quote Link to comment Share on other sites More sharing options...
hmdrdi Posted August 21, 2012 Share Posted August 21, 2012 very informative topic. Can we just 127......... (porn sites) # blocked ? with this method can we block porn sites or we will have to write sites one by one? Quote Link to comment Share on other sites More sharing options...
pinay Posted August 22, 2012 Share Posted August 22, 2012 very informative topic. Can we just 127......... (porn sites) # blocked ? with this method can we block porn sites or we will have to write sites one by one? One by one, so that's why this is practically useless method because of the sheer amount of the sites. If you want to block something like this, then you better get some sort of NetNanny or similar that supplies you with both updated blocking lists as well as means to recognize new sites and block them automatically. Quote Link to comment Share on other sites More sharing options...
rachid4bouzidi Posted April 28, 2013 Share Posted April 28, 2013 try to block websites by editing the DNS server Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.