1) This could account for your issue. If you right-click the hosts file and select properties, it should show a Type of File of just "file". If it shows something else, like "Text Document (.txt)" then it has an extension. The hosts file should have no extension. By default, Windows does not show extensions.
2) Are the entries in the hosts file in the proper format? To block a site using a hosts file, enter a line with the loopback address of 127.0.0.1 which points to your own computer, then a space or tab, then the domain that you are blocking. For instance:
3) Some computer infections will repopulate the hosts file with whatever they wish to be there. Others will intercept DNS calls and send you to wherever they wish you to go. If your computer may be infected, then check it and remove any of the viruses/malware.
The DNS Client Resolver on each computer loads up whatever is in the hosts file, then each lookup that is done, so that it does not have to request it from a DNS server again in the near future. So if it does not find it in the local DNS Cache, then it sends a query to a DNS server for the answer. In Windows, the hosts file is found under
There is not an IP address to use that is specific to each blocked website -- just the one that points to your own computer, 127.0.0.1 (or any IP Address that you wish that does not lead to the site you wish to block).
Some people take the hosts file to extremes and have hundreds of thousands of entries. That is counter productive to the web performance of the computer. If you need that many, then use OpenDns.com or run your own DNS Server. They are designed to filter many addresses; your DNS Resolver Client is a client; it is not meant to do the work of a server.
-- Patrick B.