How to Block Website in Windows

2 comments 2485 views

For any reason sometimes you need to block any website. Maybe you need to protect your children to access porn website or gambling website even from social network website if you don’t want they have relation with stranger. There are many commercial softwares which offer ability to block website, but before trying it, you can try this tips to block website without software.

If you are Windows user, you can access host file from folder c:windowssystem32etc and open it with your text editor. The purpose of this file is as DNS so if you want to block a specific website, you need to redirect domain to any IP address. For example you want to block just add this command to host file

It will show error page if someone access But for better idea you can change to Google IP address so anyone who doesn’t notice it was blocked. To find Google IP address, just run command prompt and type: nslookup and copy one IP address that was provided for example Next edit host file again, change to so your host file will contain

It will open page if someone access

The website and IP address above just as an example, so you can modify it base on your requirement. If you want to unblock it just remove the command from host file. I hope you will comfortable with your computer and internet.

  1. author

    Johna5924 years ago

    I just like the helpful information you provide on your articles. I will bookmark your blog and test once more here frequently. I’m moderately certain I will learn many new stuff right here! Best of luck for the next! gdkekcaggddd

    • author

      netcom4 years ago

      thank you, we sure more information you can find here


Leave a reply "How to Block Website in Windows"