Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have no Facebook account. How to block all Facebook elements (not only like-button, but everything Facebook) on the rest of the Internet. I worry being tracked by Facebook. I am using Firefox on Mac OS X.

share|improve this question

7 Answers 7

Since IPv6 started going live, it has made @mckeed's response incomplete. "::1" is the default feedback loop for IPv6. It needs to be added to each Facebook entry in /etc/hosts. Here's what mine looks like:

# Block Facebook IPv4
127.0.0.1   www.facebook.com
127.0.0.1   facebook.com
127.0.0.1   login.facebook.com
127.0.0.1   www.login.facebook.com
127.0.0.1   fbcdn.net
127.0.0.1   www.fbcdn.net
127.0.0.1   fbcdn.com
127.0.0.1   www.fbcdn.com
127.0.0.1   static.ak.fbcdn.net
127.0.0.1   static.ak.connect.facebook.com
127.0.0.1   connect.facebook.net
127.0.0.1   www.connect.facebook.net
127.0.0.1   apps.facebook.com
# Block Facebook IPv6
::1 www.facebook.com
::1 facebook.com
::1 login.facebook.com
::1 www.login.facebook.com
::1 fbcdn.net
::1 www.fbcdn.net
::1 fbcdn.com
::1 www.fbcdn.com
::1 static.ak.fbcdn.net
::1 static.ak.connect.facebook.com
::1 connect.facebook.net
::1 www.connect.facebook.net
::1 apps.facebook.com
share|improve this answer

Try FaceBookBlocker

How did we get here?

We’re beginning to feel overwhelmed by the frequency with which Facebook links are starting to appear on many of the sites we visit in our daily routines, so we decided to do something about it.

What does it do?

This browser extension stops Facebook social plugins—including those within iFrames—from running on sites other than Facebook itself. This includes ‘Like’ buttons, ‘Recommended’ lists, and should also stop any Facebook scripts from tracking your browsing history.

What about Facebook Connect?

Don’t worry: sites that use Facebook Connect for sign in purposes, or that use Facebook as a conduit for other functionality will continue to work as expected.

share|improve this answer

On Mac OS X, GlimmerBlocker can work as a proxy for all your browsers. It blocks Facebook by subscribing to the right filter:

Title: Facebook 'Like' Disabler

Author: Adam Stamper

Description: This filter prevents autoloading of 'Like' buttons & other social gadgets from Facebook servers. Instead a link appears to let you enable each gadget, giving you control over how much Facebook knows about your web usage.

URL: http://visuao.net/facebook/glimmer.xml

Note that GlimmerBlocker does not work for HTTPS sites, as the browser will then send encrypted traffic through the proxy.

share|improve this answer

If you want only Firefox to be affected, you could add the domain list from mckeed's answer to a custom filter in Adblock.

share|improve this answer

This isn't a complete solution. If you have Adblock, then you can use the filter at http://adblockplus.org/en/subscriptions Scroll down to the "Miscellaneous" section and then subscribe to the "Antisocial" filter. That blocked it for me. Combined with mckeed's answer, this might block all of Facebook.

The antisocial filter blocks Twitter and other services too, so it might not be what you're looking for.

share|improve this answer

Ghostery is available for Firefox and Safari, it blocks a laundry list of trackers including Facebook. If you want to you can tell it specifically what to block and what not to block.

share|improve this answer

You can add these lines to the file /etc/hosts on your computer to cut off access to all facebook content:

# Block Facebook
127.0.0.1 www.facebook.com
127.0.0.1 facebook.com
127.0.0.1 login.facebook.com
127.0.0.1 www.login.facebook.com
127.0.0.1 fbcdn.net
127.0.0.1 www.fbcdn.net
127.0.0.1 fbcdn.com
127.0.0.1 www.fbcdn.com
127.0.0.1 static.ak.fbcdn.net
127.0.0.1 static.ak.connect.facebook.com
127.0.0.1 connect.facebook.net
127.0.0.1 www.connect.facebook.net
127.0.0.1 apps.facebook.com
share|improve this answer
2  
Another option would be to add those domain names in the NoScript add-on. –  Al E. Dec 10 '10 at 18:40
1  
This doesn't work. I cleared DNS cache (with dscacheutil -flushcache) and still see something called "Facebook social plugin". Here a screenshot: i.imgur.com/Hu2dW.png –  fyodor78 Dec 10 '10 at 19:05
1  
Perhaps the content that you still see is not loaded from Facebook but rather from the site that you are on? If that is the case, editing /etc/hosts will still keep your Mac from sending any data to Facebook. –  penguirl Dec 10 '10 at 20:48
    
@fyodor78 link to the site ? –  Sathya Dec 10 '10 at 21:33
    
@Sathya, bradleymanning.org/category/activism –  Arjan Dec 12 '10 at 22:53

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.