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 (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

For example In the screenshot below I have blocked 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.

Related Posts Plugin for WordPress, Blogger...


  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:

  3. says:

    Setting Mikrotik dan Proxy

Leave a Comment