Whitelist a site on anther site's domain?

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

Whitelist a site on anther site's domain?

Post by Guest »

I play an online alternative reality game and, as part of the game, I need to allow twitter to run scripts. What I want to know is whether it's possible to set NoScript up so that I can allow twitter to run scripts, but only on the game's website?

I looked in the FAQ, etc. and poked around the options, but can't see any way to do this.
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:28.0) Gecko/20100101 Firefox/28.0
User avatar
therube
Ambassador
Posts: 7991
Joined: Thu Mar 19, 2009 4:17 pm
Location: Maryland USA

Re: Whitelist a site on anther site's domain?

Post by therube »

Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.19) Gecko/20110420 SeaMonkey/2.0.14 Pinball NoScript FlashGot AdblockPlus
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:29.0) Gecko/20100101 Firefox/29.0 SeaMonkey/2.26a2
Guest

Re: Whitelist a site on anther site's domain?

Post by Guest »

I don't understand what I'd have to put in there to allow it.
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:28.0) Gecko/20100101 Firefox/28.0
User avatar
Giorgio Maone
Site Admin
Posts: 9557
Joined: Wed Mar 18, 2009 11:22 pm
Location: Palermo - Italy
Contact:

Re: Whitelist a site on anther site's domain?

Post by Giorgio Maone »

Mozilla/5.0 (Windows NT 6.1; WOW64; rv:28.0) Gecko/20100101 Firefox/28.0
Guest

Re: Whitelist a site on anther site's domain?

Post by Guest »

Thanks, I don't know how I missed that.
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:28.0) Gecko/20100101 Firefox/28.0
Guest

Re: Whitelist a site on anther site's domain?

Post by Guest »

That hasn't helped, actually. Based on the FAQ, I've put the following in in the "USER" bit of ABE:

# twitter.com rule
Site .twitter.com
# the above is shortcut for twitter.com *.twitter.com
Accept from .extrasolar.com
Deny
Yet, having just rebooted my computer and visited ExtraSolar, I've found that twitter is still blocked.
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:28.0) Gecko/20100101 Firefox/28.0
barbaz
Senior Member
Posts: 11163
Joined: Sat Aug 03, 2013 5:45 pm

Re: Whitelist a site on anther site's domain?

Post by barbaz »

whitelist twitter.com and try only this rule

Code: Select all

Site .twitter.com
Accept INCLUSION from .twitter.com .extrasolar.com
Deny INCLUSION(SCRIPT, OBJ, FONT, XHR)
Sandbox
which better emulates script blocking and also allows twitter scripts called by extrasolar, to call other twitter scripts
*Always* check the changelogs BEFORE updating that important software!
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:28.0) Gecko/20100101 Firefox/28.0 SeaMonkey/2.25
Guest

Re: Whitelist a site on anther site's domain?

Post by Guest »

I realise that this is almost certainly me not understanding the language properly, but wouldn't doing what you suggest whitelist twitter everywhere?
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:28.0) Gecko/20100101 Firefox/28.0
barbaz
Senior Member
Posts: 11163
Joined: Sat Aug 03, 2013 5:45 pm

Re: Whitelist a site on anther site's domain?

Post by barbaz »

no, ABE is independent from regular script blocking permissions
*Always* check the changelogs BEFORE updating that important software!
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:28.0) Gecko/20100101 Firefox/28.0 SeaMonkey/2.25
Guest

Re: Whitelist a site on anther site's domain?

Post by Guest »

Then how do I whitelist twitter in ABE but not NoScript generally? I don't see any option for that.
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:28.0) Gecko/20100101 Firefox/28.0
User avatar
therube
Ambassador
Posts: 7991
Joined: Thu Mar 19, 2009 4:17 pm
Location: Maryland USA

Re: Whitelist a site on anther site's domain?

Post by therube »

That is just what you want to do.
You do want to Allow twitter.com in NoScript.
And then its reach is constrained by your ABE settings.
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.19) Gecko/20110420 SeaMonkey/2.0.14 Pinball NoScript FlashGot AdblockPlus
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:29.0) Gecko/20100101 Firefox/29.0 SeaMonkey/2.26a2
User avatar
Thrawn
Master Bug Buster
Posts: 3106
Joined: Mon Jan 16, 2012 3:46 am
Location: Australia
Contact:

Re: Whitelist a site on anther site's domain?

Post by Thrawn »

Trying to use ABE while also leaving the site script-blocked
is like trying to use NoScript while you have JavaScript completely disabled.

You need to script-allow the site to manage it in ABE.
======
Thrawn
------------
Religion is not the opium of the masses. Daily life is the opium of the masses.

True religion, which dares to acknowledge death and challenge the way we live, is an attempt to wake up.
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/32.0.1700.107 Chrome/32.0.1700.107 Safari/537.36
awesomepikachu

Re: Whitelist a site on anther site's domain?

Post by awesomepikachu »

Hello everybody

I want something similar to the OP. Please read the rules I have to see if they are correct for what I want to achieve. That is to run certain scripts from a third party website, BUT only if I am on a specific website of my choosing.

So if I am on beeminder.com, then I want to allow the script ajax.googleapis.com to run. But I NEVER want jQuery (ajax.googleapis.com script) to run otherwise on any other website.

Site .beeminder.com
Accept INCLUSION from SELF++
Accept INCLUSION from .ajax.googleapis.com
Deny

with ajax.googleapis.com whitelisted.

Now.... How to check and be sure that ajax.googleapis.com isn't functioning on other websites? Since it is whitelisted it looks like it is running. How do I troubleshoot this? How do I tell that ABE is doing its job properly?
Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:26.0) Gecko/20100101 Firefox/26.0
awesomepikachu

Re: Whitelist a site on anther site's domain?

Post by awesomepikachu »

Think I got the syntax backwards there ^

I tried whitelisting ajax.googleapis.com, then limiting its use to stackexchange as an experiment.

However another website using the ajax.googleapis.com script still runs the jQuery code, which wasn't the plan under ABE blocking other websites from using that script.

Maybe I'm mistaken, but shouldn't this work?

Site .ajax.googleapis.com
Accept INCLUSION from SELF++
Accept INCLUSION from .stackexchange.com
Deny
Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:26.0) Gecko/20100101 Firefox/26.0
User avatar
Giorgio Maone
Site Admin
Posts: 9557
Joined: Wed Mar 18, 2009 11:22 pm
Location: Palermo - Italy
Contact:

Re: Whitelist a site on anther site's domain?

Post by Giorgio Maone »

awesomepikachu wrote: So if I am on beeminder.com, then I want to allow the script ajax.googleapis.com to run. But I NEVER want jQuery (ajax.googleapis.com script) to run otherwise on any other website.

Site .beeminder.com
Accept INCLUSION from SELF++
Accept INCLUSION from .ajax.googleapis.com
Deny
Nope, you got it reversed.

You must specify what ABE must do with requsests towards ajax.googleapis.com, depending if they're initiate from .beeminder.com or not, so

Code: Select all

Site .ajax.googleapis.com
Accept INCLUSION from .beeminder.com
Deny
awesomepikachu wrote: with ajax.googleapis.com whitelisted.
This part is correct.
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:28.0) Gecko/20100101 Firefox/28.0
Post Reply