Pages

Thursday, May 19, 2011

How to block certain website on your computer?


Some of common reasons to block unwanted websites are, may be you wants to avoid spammers, porn and gambling sources. At home may be you want to prevent your children to access explicit or crude language sites. You can block the unwanted websites in all web browsers without using any third party software. This process only needs to edit the system host file.

Perform the following steps to edit the system host file:

  • To active this feature, you will need to be logged into your computer with administrative rights.

  • First click on Start button and select "Run". Now type "notepad" c:\WINDOWS\system32\drivers\etc\hosts" then press Ok button to open host file.

Now a notepad window will appear with the title "host Notepad".

Now locate the line 127.0.0.1 localhost and here press the Enter key to change the line then type the websites name. For example if you want to block site www.myspace.com then type as:

127.0.0.1 localhost

127.0.0.1 www.myspace.com

  • Here you can add many sites with prefix 127.0.0.1.

  • Now go to File menu and save these setting.

  • When you want to restore access to this site, simply remove this line and again save it.

  • Close the host file and reboot your computer after any changes to go into effect.

No comments:

Post a Comment