Block a Website Without Any Software

If you are on Windows then there is a good news for you, you can block a website without any Internet Security Program or software. The all you need is a text editor i.e. Notepad (maybe you should try Notepad++). And here are some simple steps to Block a website on a Windows Operating System.
  • Open Run and type "notepad C:\Windows\system32\drivers\etc\hosts" without quotes or simply goto C:\Windows\system32\drivers\etc\ and open hosts file with notepad.

Open the hosts file

  • Now at the bottom of the file you can see something written like and localhost.
Raw Document

  • Here I'm taking example of, www.example and as shown in the picture below but you can add site of your own choice, must remember to add at the start of the line and leave a space or TAB and save the file. Now open your favorite browser and try to access the sites that you have blocked, you can't access. Later on if you want to see the blocked site then remove those sites from that file and save it again.
Final Document


  1. Thanks a worked..!!

  2. How to save it?

    I've tried it but it doesn't work.

  3. how do u unblock it again?? thanks though.

  4. Reply to Qayyimah: If the document won't save, it may be because it has been saved as a read only folder. To change this you will need to un-check the box labeled Read-only in the General properties tab for the hosts file.
    Warning: if you're an advanced user, you probably know how to do this already; if you're not an advanced user, this is probably not a task you should attempt on your own.

  5. i can t find where it said read only :(

  6. hey does it work on chrome, working fine in IE but chrome opens that page

  7. It didnt work for me..

    I wanna block: