Page 1 of 1

Restricting scripts to domains

Posted: Thu Sep 15, 2011 5:19 am
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.

Re: Restricting scripts to domains

Posted: Thu Sep 15, 2011 8:30 am
by dhouwn
:arrow: http://noscript.net/abe/
Take a look at the examples (esp. the last one).

Also, see FAQ 8.10.

Re: Restricting scripts to domains

Posted: Fri Sep 16, 2011 4:10 am
by neosisani
Thanks dhouwn!

Re: Restricting scripts to domains

Posted: Fri Sep 16, 2011 12:58 pm
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.