Block sites without firewall on windows

Block web sites without firewall on windows.

Here, we will learn on how to block web sites for your personal computer ie. outgoing traffic to a site. Make sites inaccessible via your window server/PC.

Here server either it is linux or windows has a hosts file. It map hostname to IP address. Suppose abc.com has IP 10.10.10.10 and you don’t this site accessible using particular server.

You need to open hosts file using text editor as administrator.

Steps to open hosts file as administrator.

Click on windows > Start > search > notepad > Right click on notepad > Run as administrator.

Then click on file > open > Go to C:\Windows\System32\drivers\etc\hosts

Add following line in it.

127.0.0.1 abc.com

This will route abc.com to 127.0.0.1 for your server/PC. Since no such site hosted on your PC (127.0.0.1 referred as your local IP) it will not load.