Allow sites only when visiting them directly

Ask for help about NoScript, no registration needed to post
Danielvr

Allow sites only when visiting them directly

Post by Danielvr »

I'm sorry for asking what's probably a very basic question, but I haven't managed to find an answer elsewhere.

There are some sites (or rather, domains) that I do not want to allow globally. For instance, Twitter and Facebook are represented on millions of other sites that embed live information from them, including scripts, and I want to block them there. But I may still want to visit Facebook or Twitter directly, and then their scripts should be allowed or their sites won't work.

I have 'Temporarily allow top-level sites by default' turned off, and I intend to keep it that way. But I guess what I want is to allow some sites (like FB and Tw) when, and only when, they are the top level.

How do I accomplish this? Thanks in advance for any replies! :)
Mozilla/5.0 (Windows NT 5.1; rv:50.0) Gecko/20100101 Firefox/50.0
barbaz
Senior Member
Posts: 11141
Joined: Sat Aug 03, 2013 5:45 pm

Re: Allow sites only when visiting them directly

Post by barbaz »

https://noscript.net/faq#qa8_10
or wait for noscript 3

In your case, use this ABE rule for twitter -

Code: Select all

Site .twitter.com
Accept from .twitter.com
Deny INC(SCRIPT, OBJ, FONT, XHR, MEDIA)
Sandbox INC
*Always* check the changelogs BEFORE updating that important software!
-
Danielvr

Re: Allow sites only when visiting them directly

Post by Danielvr »

Thanks kindly Barbaz!
Mozilla/5.0 (Windows NT 5.1; rv:50.0) Gecko/20100101 Firefox/50.0
barbaz
Senior Member
Posts: 11141
Joined: Sat Aug 03, 2013 5:45 pm

Re: Allow sites only when visiting them directly

Post by barbaz »

You're welcome! Image
*Always* check the changelogs BEFORE updating that important software!
-
Post Reply