If you are wondering how to block a website from opening then one of the possible ways to block it is using hosts file. Hosts is a file that contains lists of host names and its mapping IP addresses , Operating System first looks into the hosts file that is located in your PC and then queries the DNS for relative IP address of the host name. The Possible location of hosts file for your windows is Windows 95/98/Me c:\windows\hosts Windows NT/2000/XP Pro c:\winnt\system32\drivers\etc\hosts Windows XP Home / windows 7 c:\windows\system32\drivers\etc\hosts Now let us look how to block a website. For the websites that don’t have related information in hosts file will be queried DNS to get its IP address, Suppose for the host google.com the IP address is 74.125.236.50, You can find the ip address of the website you want to by opening command prompt and pinging it using the command ping www.google.com Then it replies like Pinging Read more