Jump to content

Exchange Blog Cryptocurrency Blog


All Pips



[Tutorial] How To Block Websites (esp. PornSites)


Aikhen

Recommended Posts

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.

Link to comment
Share on other sites

  • 1 month later...
  • 1 year later...

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.

Link to comment
Share on other sites

  • 8 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...