How to Block Website in Windows

2 comments 2087 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 facebook.com just add this command to host file

127.0.0.2 facebook.com

It will show error page if someone access facebook.com. But for better idea you can change 127.0.0.2 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 google.com and copy one IP address that was provided for example 74.125.235.16. Next edit host file again, change 127.0.0.2 to 74.125.235.16 so your host file will contain

74.125.235.16 facebook.com

It will open Google.com page if someone access facebook.com.

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

    Johna5923 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

    Reply
    • author
      Author

      netcom3 years ago

      thank you, we sure more information you can find here

      Reply

Leave a reply "How to Block Website in Windows"