Conditional acceptance of script host bsd on page host?

General discussion about the NoScript extension for Firefox
Post Reply
LrgrThnLf
Posts: 2
Joined: Sun Jan 24, 2010 7:25 pm

Conditional acceptance of script host bsd on page host?

Post by LrgrThnLf »

I've noticed an increasing number of people load scripts from "common" rather than unique domains.
Ie.
  • Google Metrics
  • Amazon AWS (S3/EC2 etc.)
  • jquery.org
I use google apps, but I don't want to turn on google metrics on every webpage I might otherwise enable javascript for.
I may visit one site that hosts static script components on Amazon, but another could be nefarious for all I know.
Some sites may break if I don't enable their third party scripts (where someone's injected their javascript stats system into link navigation and I don't want to have go diving into code to consider surrogates or whitelist use of that system every time).

Is a two tier system available? Perhaps required? Does one perhaps need to be able to descend to the right of the hostname in a URL now?
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.6) Gecko/20091216 Iceweasel/3.5.6 (like Firefox/3.5.6; Debian-3.5.6-1)
User avatar
Giorgio Maone
Site Admin
Posts: 9524
Joined: Wed Mar 18, 2009 11:22 pm
Location: Palermo - Italy
Contact:

Re: Conditional acceptance of script host bsd on page host?

Post by Giorgio Maone »

Try allowing the 3rd party library script wholesale, then tweaking it (mixing Accept and Deny statements) in ABE.
E.g., Allow jquery.com in NoScript, then add

Code: Select all

Site *.jquery.com jquery.com
Accept from *.jquery jquery sometrustedsite1.com somestrustedsite2.com
Deny
in your USER ruleset (NoScript Options|Advanced|ABE)
Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.9.1.7) Gecko/20091221 Firefox/3.5.7 (.NET CLR 3.5.30729)
LrgrThnLf
Posts: 2
Joined: Sun Jan 24, 2010 7:25 pm

Re: Conditional acceptance of script host bsd on page host?

Post by LrgrThnLf »

Ahh cool.. I'll look into it. Thanks!
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.6) Gecko/20091216 Iceweasel/3.5.6 (like Firefox/3.5.6; Debian-3.5.6-1)
Post Reply