Restricting scripts to domains

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

Restricting scripts to domains

Post by neosisani »

Is it possible to restrict certain scripts to be allowed only on certain domain?

Eg. i don't want to have google.* scripts running on any site except google.com (and gmail.com and similar). If i block it, then i cannot log into mail. If i allow it, all sites can use google to do nasty tracking and whatever google does with my visits to all the internet.

Thanks.
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:6.0.2) Gecko/20100101 Firefox/6.0.2
dhouwn
Bug Buster
Posts: 968
Joined: Thu Mar 19, 2009 12:51 pm

Re: Restricting scripts to domains

Post by dhouwn »

:arrow: http://noscript.net/abe/
Take a look at the examples (esp. the last one).

Also, see FAQ 8.10.
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:7.0) Gecko/20100101 Firefox/7.0
neosisani

Re: Restricting scripts to domains

Post by neosisani »

Thanks dhouwn!
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:6.0.2) Gecko/20100101 Firefox/6.0.2
simpleme
Posts: 6
Joined: Sat Aug 07, 2010 10:21 pm

Re: Restricting scripts to domains

Post by simpleme »

There is another extension called Request Policy that allows you to specify from which sites requests are made to other sites. Unfortunately it applies to all requests so by default it blocks all third party requests for images, scripts, styles, etc. You can allow requests from gmail.com to google.com which will then allow all requests (images, scripts, etc).

Frankly I'm getting sick of the habit of many sites I frequent to use scripts from a dozen or more places. addthis.com, google.com, intensedetable.com, other.com, other2.com, other3.com, etc.
Mozilla/5.0 (X11; Linux i686; rv:6.0.2) Gecko/20100101 Firefox/6.0.2
Post Reply