allow domain(s) only in specific website(s)

Ask for help about NoScript, no registration needed to post
n00b1ee
Posts: 10
Joined: Mon Oct 22, 2012 11:41 pm

allow domain(s) only in specific website(s)

Post by n00b1ee »

Can I allow, for example, googleapis.com only on techdirt.com?

Thanks in advance.
Mozilla/5.0 (X11; Linux x86_64; rv:16.0) Gecko/20100101 Firefox/16.0
User avatar
therube
Ambassador
Posts: 7991
Joined: Thu Mar 19, 2009 4:17 pm
Location: Maryland USA

Re: allow domain(s) only in specific website(s)

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:17.0) Gecko/17.0 Firefox/17.0 SeaMonkey/2.14
n00b1ee
Posts: 10
Joined: Mon Oct 22, 2012 11:41 pm

Re: allow domain(s) only in specific website(s)

Post by n00b1ee »

Sorry but didn't help much.

I've tried different combinations like:

Code: Select all

Site techdirt.com
Accept from googleapis.com *.googleapis.com .googleapis.com
Also tried:

Code: Select all

 www.techdirt.com
.techdirt.com
*.techdirt.com
Mozilla/5.0 (X11; Linux x86_64; rv:16.0) Gecko/20100101 Firefox/16.0
n00b1ee
Posts: 10
Joined: Mon Oct 22, 2012 11:41 pm

googleapis.com help

Post by n00b1ee »

How to allow googleapis.com script only on www.techdirt.com?

http://noscript.net/abe/abe_rules.pdf lacks useful examples.

(reset button deleted the default ABE config... => fixed after Firefox restart)
Last edited by Thrawn on Thu Oct 25, 2012 11:34 am, edited 2 times in total.
Reason: Removed language
Mozilla/5.0 (X11; Linux x86_64; rv:16.0) Gecko/20100101 Firefox/16.0
n00b1ee
Posts: 10
Joined: Mon Oct 22, 2012 11:41 pm

Re: allow domain(s) only in specific website(s)

Post by n00b1ee »

I need an example to understand this.
Mozilla/5.0 (X11; Linux x86_64; rv:16.0) Gecko/20100101 Firefox/16.0
User avatar
Thrawn
Master Bug Buster
Posts: 3106
Joined: Mon Jan 16, 2012 3:46 am
Location: Australia
Contact:

Re: allow domain(s) only in specific website(s)

Post by Thrawn »

n00b1ee wrote:I need an example to understand this.
As often happens, your rule is backward...

ABE is request-oriented. You don't tell it which sites can load resources, like NoScript's usual script-blocking; you tell it which requests are allowed. 'Site example.com' means 'Requests sent to example.com'.

So, what you want is:

Code: Select all

Site .googleapis.com
Accept from .techdirt.com
Deny
Note the leading dots, which mean 'this domain and all subdomains'.

I have suggested before that a 'Request' keyword be added as an alias for 'Site', but thus far, Giorgio has had higher priorities.
======
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; Ubuntu; Linux x86_64; rv:16.0) Gecko/20100101 Firefox/16.0
n00b1ee
Posts: 10
Joined: Mon Oct 22, 2012 11:41 pm

Re: allow domain(s) only in specific website(s)

Post by n00b1ee »

Thank you Thrawn for the code and the explanation.
Mozilla/5.0 (X11; Linux x86_64; rv:16.0) Gecko/20100101 Firefox/16.0
n00b1ee
Posts: 10
Joined: Mon Oct 22, 2012 11:41 pm

Re: allow domain(s) only in specific website(s)

Post by n00b1ee »

I'm back to tell you I've just reseted ABE rules by accident. :shock: I tried to Cancel (button) but without success.

PS: a warning before resetting rules would be great.
Mozilla/5.0 (X11; Linux x86_64; rv:16.0) Gecko/20100101 Firefox/16.0
Post Reply