Blocking Facebook

ban_facebook 
How to block the shitty people at Facebook from collecting your data.

The hostfile is used to map human friendly hostnames to numeric IP addresses.
One easy way to block unwanted traffic out of your machine is to use “home” or the loopback
address 127.0.0.1

Your Windows XP hostname ascii file is located at
C:\WINDOWS\system32\drivers\etc\HOSTS

A blocking line will look like this:
127.0.0.1 facebook.com

When outbound traffic is directed to facebook.com, your machine hijacks it, redirecting it to your own machine at 127.0.0.1

You can download a hostfile from this site, that blocks a lot of unwanted snooping.

http://winhelp2002.mvps.org/hosts.htm

Microsoft Windows8 prevents you from blocking Facebook and other adware via the hostfile.
Even if you write protect your hostfile, Windows Defender will overwrite your wishes.
There are a few ways around this.

http://www.howtogeek.com/122404/how-to-block-websites-in-windows-8s-hosts-file/

Bookmark the permalink.

12 Responses to Blocking Facebook

  1. notamobster says:

    I’m sure a lot of our readers feel the way I do right now. I feel like you just gave me the component list for a fusion reactor, with no assembly instructions.

    Most of us don’t know much about this. In fact, I’d venture to guess that the overwhelming majority of us are plug & play users of our computers.

  2. James says:

    Read the first link I included.
    It can fix your hostfile automatically.

  3. notamobster says:

    Okay I downloaded it and ran the mvps.bat file. It confirmed the update. Is that all I have to do?

  4. notamobster says:

    HOLY CRAP, JAMES! THAT IS AWESOME!!!

    It’s super-easy, folks. I highly recommend it!

  5. John Cox says:

    uh, that only keeps YOUR computer from reaching FaceBook. A HOSTS file is used to keep often used DNS name (e.g. google.com, facebook.com) and their corresponding IP addresses as a quick lookup, rather that having to ping a DNS server to obtain the IP address. It can also be used to map other computers (e.g. on your local network) to DNS names.

    Adding the loopback address to your HOSTS file, will block your computer form reaching facebook, nothing more.

    • notamobster says:

      I didn’t add any sites to anything. I just downloaded the zip files and ran the .bat –

      I’ve been on facebook many times since then. The thing I like is that when I go to various sites for news (like Drudge) NO ADS!

      The page loads instantly, where it has always taken 5-15 seconds! FB loads instantly,too. It’s a huge plus for my line-of-sight connection.

      It works for me!

      • notamobster says:

        Breitbart, too! The ads just show up as a little box that says “advertisement”. :-)

      • John Cox says:

        The line “127.0.0.1 facebook.com” is not in the downloaded file as implied in the original post. If so, you wouldn’t be able to reach facebook at all.

  6. BarbaCat says:

    I downloaded it and ran the .bat, and I too have discovered that all the ads at all the blogs are missing!

    Outstanding!

    • notamobster says:

      Awesome, ain’t it?!? Here’s the explanation I got from a computer friend:

      Let me just start with some basics, then hopefully you might see how it all works.

      1. Every computer on the internet is given an IP address. Think of this as a phone number for this example (208.109.181.134). Humans would never be able to remember that, so we assign a name to that number (therealrevo.com)

      2. Once upon a time a committee decided that 127.0.0.1 would be a standard loop back address for all networked computers. Meaning if I’m on any given computer and I send a request to 127.0.0.1 I am going to call myself. This functionality was created primarily for testing purposes, but it comes in handy for ad blocking due to how today’s web pages are constructed. The ads actually come from different servers than content of the page.

      3. When you want your computer to call another one, it has to first look up the phone number. It can find this phone number in one of two places just the same as you would have in days gone by. You either had it in a phone book (A file on your computer) or you had to call 411 (Your Internet Service Provider). Right?

      4. The HOSTS file you downloaded is basically a phone book except all the entries for known ad servers have been changed to 127.0.0.1.

      And that’s the trick. Here’s what it sort of looks like…
      * you visit a web page constructed of content from one server and ads from another.
      * the web page contains a banner ad stored on the server “ads.example.com”
      * your computer says “ads.example.com? never heard of it. wait a second, let’s see if I’ve got the number on me…”
      * your computer finds its hosts file and checks to see if ads.example.com is listed
      it finds the hostname, which points to 127.0.0.1
      * “great”, says the computer, and sends off a request to 127.0.0.1 for the banner ad that’s supposed to be on the page
      * “oh”, says the computer, and fails to show anything because it just sent a request to itself for a banner ad which does not exist on your own computer.
      I will continue by saying, this does not stop all snooping. It’s primary function is to block ads. An added benefit it it prevents those ads from being able to do tracking on you. However, it doesn’t prevent the parent site from doing so. I looked at the host file and as an example for Facebook I see
      127.0.0.1 ads.ak.facebook.com
      127.0.0.1 creative.ak.facebook.com
      127.0.0.1 creative.ak.fbcdn.net #[textads]
      What I don’t see is the high level facebook.com. The reason for that is because instead of hitting facebook’s address you would be dialing home, and you would not be able to connect to facebook at all. There is nothing in this address book that will stop Facebook from loading a cookie (tracking software) into your browser, and knowing what you look at on the internet. So while this does some good. It does not stop the major web sites from knowing what you do, and they can still target ads to you. You just might not see them.

  7. BigJimTX says:

    I use the noscript add-in for Firefox. It allows you to pick and choose which scripts to run.

  8. James says:

    As John has noted, the HOSTS file provided may be missing facebook blocking. Those lines can easily be added, or hunt around on the web and find a host file that blocks facebook. Add those lines to your host file. I don’t remember where I got my host file, or whether I added the lines manually. I’ve been blocking Assbook for a long time.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>