How to Block Any Website On Your Computer?

block websiteIf 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

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.

You should open notepad with administrative privileges otherwise you wont be able to save it , 

I prefer you use Notepad ++ for editing the hosts file.

3 Comments

  1. Likan patra says:

    Very Nice Post.. Really Helpful…

  2. If you can’t edit your hosts file, here is another way to block websites: http://www.youtube.com/watch?v=DibbatKunK4

  3. www.aksescepat.com says:

    Setting Mikrotik dan Proxy

Leave a Comment