Tuesday, July 5, 2011

How To Block Any Website On Your Computer

Trick To Block Any Website On Your Computer
If you want to block certain websites on your computer without any software then this trick can  be very helpful to you.You can block any number of websites and if blocked they cannot be opened in any browser like google chrome,firefox,opera and Internet explorer.
For this trick we will edit the host file of the windows and will use the Ip address 127.0.0.1 (i.e localhost).Whenever somebody will try to open the blocked website the user will be redirected to local host.This trick works in windows xp,vista and windows 7
Here is the  Trick To Block Any Website On Your Computer
  • Open My Computer/Computer
  • Navigate to your Operating system drive (Usually C drive)
  • Now goto Windows –>System32–>drivers–>etc
  • Here you will see your Hosts file.Open this file with notepad.
  • Now move to the last line in this file and add the address of the website to be blocked prefixed by 127.0.0.1
For example In the screenshot below I have blocked google-analytics.com on my computer
01 sample hosts file Trick To Block Any Website On Your Computer
Remember that you should insert the Url of the blocked website with and without www prefix as shown in the above screenshot
Now Save the file.
Note:-You should open notepad with administrative privileges otherwise you won,t be able to save it

No comments:

Post a Comment