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'm running Firefox with NoScript. How can I restrict Facebook scripts to run only when I visit the site and not on 3rd party web sites like say, engadget?

share|improve this question

3 Answers 3

up vote 4 down vote accepted

Use NoScript's ABE:


# facebook.com containment rule
# This rule allows Facebook scripts objects and frames to be included only
# from Facebook pages
Site .facebook.com .fbcdn.net
Accept from .facebook.com .fbcdn.net
Deny INCLUSION(SCRIPT, OBJ, SUBDOC)
share|improve this answer
    
Thanks! This was the answer I was looking for. –  abjbhat Dec 26 '10 at 3:46

Go the lazy route and install Facebook Blocker.

share|improve this answer
    
Haven't tried this extension, however I wanted a more generic blocker as opposed to just blocking facebook on 3rd party sites. –  abjbhat Dec 25 '10 at 6:27

With Adblock Plus, I use these two rules:

facebook.com^$third-party
fbcdn.net^$domain=~facebook.com
share|improve this answer
    
Not quite the answer I was looking for, but since I use ad block plus as well, this works. Thanks! –  abjbhat Dec 25 '10 at 6:27

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.