« | Home | Recent Comments | Categories | »

You can’t block Facebook using Windows 8′s hosts file

Posted on August 19th, 2012 at 17:40 by John Sinteur in category: Microsoft -- Write a comment


While you can still add any host you want to the hosts file and map it to an IP, you will notice that some of the mappings will get reset once you open an Internet browser. If you only save, close and re-open the hosts file you will still see the new mappings in the the file, but once you open a web browser, some of them are removed automatically from the hosts file.

Two of the sites that you can’t block using the hosts file are facebook.com and ad.doubleclick.net, the former the most popular social networking site, the second a popular ad serving domain.

Anybody have Windows 8 installed and to try this?

  1. To correct the misinformation:
    turning off Windows Defender, which basically is Microsoft Security Essentials, in Windows 8 will resolve the issue. It appears that the program has been designed to protect some hosts from being added to the Windows hosts file. To turn off Windows Defender press the Windows key, type Windows Defender and hit enter. This launches the program. Switch to Settings here and select Administrator on the left. Locate Turn on Windows Defender and uncheck the preference and click save changes afterwards.

    If you do not want to disable Windows Defender completely, you can alternatively add the hosts file to the list of excluded files and processes. You do that with a on Settings > Excluded files and locations. This basically blocks Windows Defender from scanning or manipulating the hosts file in the operating system.

  2. Sounds like a bug if this is the only way it can distinguish FB from malware.

previous post: This voter probably is not undecided…

next post: Todd Akin, GOP Senate candidate: ‘Legitimate rape’ rarely causes pregnancy