How to block websites on your Computer

How to block websites and why really you need to Know? Well,Blocking any website on your computer becomes necessary when you really want to make it your personal computer. Many times someone from your family or some irritating friend comes to you and want to use your computer to surf internet and then he start viewing videos on youtube or start chatting on Facebook regardless of whether you are liking it or not but you cant even ask them to leave.

Of course you never want that anyone use your computer for long time and keep using your internet while you just sit aside them to see what they are doing. You can simply block the sites and prevent them from opening in your system to get rid of this problem.

How to Block Websites on your Computer

There are certain Tricks to block a website from opening on your system :

Method 1 : Using Windows host file

For this method , you don’t require any additional software to be installed on your computer. All you need is a little bit knowledge and some basic file editing capability using notepad. Windows has this host file to map the ip addresses and host names of the host sites to your computer.
By using this trick you can make your computer to redirect again to your local machine instead of opening that host site. So for blocking any website using windows host file you need to follow some steps as given below :

Step 1 :Open  “C:\Windows\System32\drivers\etc” in the Windows search bar or navigate to the folder by clicking your way through Windows Explorer.

Step 2 :Now after reaching to this path you will see a file named Host. Right click on that file and click on open with notepad.

Step 3 :In Notepad, you will see several lines of text used for mapping purposes. Go to the last line of text (it should say something regarding a local host), now press enter to move the cursor to the end of the file then type  “″  (without codes)and press the spacebar.

Step 4 :Now, type the specified address of the website you wish to block on the same line. For example, type “” , “” to block all these sites.

How to block websites

Step 5 :Now Save this file and ignore if you receive any messages showing  you warning about this modifications.

Step 6 :Go to your browser and verify that the site you want to block isn’t opening anymore.

Method 2 : Using control Panel

If you don’t wish to block sites using this host file or there is some problem in modifying that file , so you can do the same thing using another default function of windows i.e. Control Panel Parental Control.

For doing this , just follow a few steps given below and you are done :

Step 1 :Click on start button  > Go to control panel >  User accounts and Family safety > Set up parental control for any user.

How to block websites

List of all the users in your system will be displayed .

Step 2 :Now select the account for which you want to set the web filter and then under parental controls ,  click ON.

How to block websites

Step 3 :   Click on web filter.

Step 4 : Click on Block some websites or contents .

Step 5  : Click on Edit the allow and block list.

Step 6 : In the Website address box, type the address for the website that you want to allow or block, and then click Allow or Block.

So now you know 2 methods on How to block websites On your Computer easily on Your Computer.


  1. Reply sabbir March 1, 2014 at 9:38 pm

    access is denied! why?

  2. Reply akash February 13, 2014 at 5:51 pm

    u have ot login as administrator for that just do this start >accesssories>notepad>right click >then run as admintrator then do above stap it will work & to unblock just right click on that file >edit >then remove the block site name

  3. Reply jailangam kameih November 28, 2013 at 10:17 pm

    i’ve tried the above method but i could’nt, this msg ‘access is denied’ always pop up……is there any solution??????plz….

    • Reply jigar Tank November 29, 2013 at 9:29 am

      hi jailangam, Are you logged in as a administrator ?

  4. Reply aprachit November 28, 2013 at 9:35 am

    it cant be applied on addmin. acc. what wrong with that…….

  5. Reply Kamlesh November 27, 2013 at 1:26 am

    but in Win 8 it is not working on my admin. account and saying that family safety cant be applied on administrator account

  6. Reply Rajan November 26, 2013 at 5:15 pm

    How to crack tally erp 4.7

  7. Reply bhanuchand November 26, 2013 at 5:06 pm

    Why we’re using ip address as

  8. Reply cybersmartsmarttest November 26, 2013 at 5:03 pm

    how to re-open d site if you wanna use it again

  9. Reply Muhsin November 22, 2013 at 9:52 am

    i cannot save the host file, its asking for administrator right

    • Reply jigar Tank November 22, 2013 at 12:46 pm

      Yes you will Need the administrator Permission if you are not logged in as Admin.

  10. Reply swapnil October 30, 2013 at 12:11 am

    how to remove block sites,

    • Reply jigar Tank November 1, 2013 at 6:43 pm

      To Unblock that websites Again just Alter The step 4, Method 1, Remove the URL which you added earler to block websites…

      Hope this helps.. :)

    • Reply mannsour shaikh November 15, 2013 at 11:37 pm

      if you need block sites open like porn sites ? then go to play store and type hotspot shield and install the soft wear.. now you can see every blocking site open.. it’s also work on pc too..

  11. Reply rishabh October 1, 2013 at 10:26 pm

    how to unblock the sites in Android mobile any one know i am using wifi of other people so he block the sites is there any app or trick to open it

  12. Reply abhishek tapadia September 27, 2013 at 8:23 pm


Leave a reply