If I allow a script to run from a certain site, all pages loaded are allowed to run that script. Can I limit the script to only run if included from certain sites?
For example, I want to allow yahooapis to run in safeandsecure.com but not evilhacker.com.
Allow Scripts to be Included from Limited Sites
Allow Scripts to be Included from Limited Sites
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.4) Gecko/20100611 Firefox/3.6.4
- Giorgio Maone
- Site Admin
- Posts: 9524
- Joined: Wed Mar 18, 2009 11:22 pm
- Location: Palermo - Italy
- Contact:
Re: Allow Scripts to be Included from Limited Sites
If evilhacker.com is not in your whitelist, yahooapis won't load at all, even if it is itself whitelisted.
That said, you can gain more control on resource loads through ABE.
That said, you can gain more control on resource loads through ABE.
Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.9.2.4) Gecko/20100611 Firefox/3.6.4
Re: Allow Scripts to be Included from Limited Sites
To test this I opened "http://scriptsrc.net". Then I opened "http://mangahelpers.com" in a new window.
scriptsrc.net is not in my whitelist. When I temporarily allow googleapis.com in managahelpers.com, scriptsrc.net reloads and googleapis is allowed in both pages.
scriptsrc.net is not in my whitelist. When I temporarily allow googleapis.com in managahelpers.com, scriptsrc.net reloads and googleapis is allowed in both pages.
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.4) Gecko/20100611 Firefox/3.6.4
- Giorgio Maone
- Site Admin
- Posts: 9524
- Joined: Wed Mar 18, 2009 11:22 pm
- Location: Palermo - Italy
- Contact:
Re: Allow Scripts to be Included from Limited Sites
googleapis is allowed everywhere, but this doesn't mean the scripts are loaded on scriptsrc.net. They're not, as a matter of fact, because no script can run on a non-whitelisted page (even if the 3rd party source is itself whitelisted).jazzmania wrote: When I temporarily allow googleapis.com in managahelpers.com, scriptsrc.net reloads and googleapis is allowed in both pages.
BTW, you made me remember skipping reload for permission changes when the involved site is a 3rd party script and the top level site is forbidden and unchanged is a desirable optimization.
Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.9.2.4) Gecko/20100611 Firefox/3.6.4
Re: Allow Scripts to be Included from Limited Sites
So even if there is no script content on scriptsrc.net the scrript from googleapis is not allowed to run on scriptsrc.net until I allow scripts for scriptsrc.net?
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.4) Gecko/20100611 Firefox/3.6.4
- Giorgio Maone
- Site Admin
- Posts: 9524
- Joined: Wed Mar 18, 2009 11:22 pm
- Location: Palermo - Italy
- Contact:
Re: Allow Scripts to be Included from Limited Sites
Correct.Guest wrote:So even if there is no script content on scriptsrc.net the scrript from googleapis is not allowed to run on scriptsrc.net until I allow scripts for scriptsrc.net?
In fact, to convey this message, on scriptsrc.net NoScript says "Scripts currently forbidden" and shows the "All forbidden" icon even though googleapis.com (as a source) is whitelisted.
Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.9.2.4) Gecko/20100611 Firefox/3.6.4
Re: Allow Scripts to be Included from Limited Sites
But what if I want to allow scripts from scriptsrc.net but not googleapis on scriptsrc.net? By enabling googleapis for another site, I've enabled it for scriptsrc.net.
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.4) Gecko/20100611 Firefox/3.6.4
- Giorgio Maone
- Site Admin
- Posts: 9524
- Joined: Wed Mar 18, 2009 11:22 pm
- Location: Palermo - Italy
- Contact:
Re: Allow Scripts to be Included from Limited Sites
While I don't understand why you would want to do that, from a strict security perspective, as I told you you can achieve this by using ABE.Guest wrote:But what if I want to allow scripts from scriptsrc.net but not googleapis on scriptsrc.net? By enabling googleapis for another site, I've enabled it for scriptsrc.net.
Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.9.2.4) Gecko/20100611 Firefox/3.6.4