Page 1 of 1

allow specific script failed

Posted: Mon Sep 07, 2015 8:15 pm
by Joe
I try to allow static.adman.gr only in the naftemporiki.gr and kathimerini.gr after reading the FAQ i try the following:
Site .static.adman.gr
Accept INCLUSION from SELF++
Accept INCLUSION from .naftemporiki.gr .kathimerini.gr
Deny
But i cannot make it work. Any ideas?

Re: allow specific script failed

Posted: Mon Sep 07, 2015 8:47 pm
by barbaz
It's not the most optimal way to write that rule but I don't see any reason why it wouldn't work.
So in what way didn't it work? Can you please be more specific?

Re: allow specific script failed

Posted: Tue Sep 08, 2015 10:33 am
by joe
In order to play the videos in these sites you must allow static.adman.gr there is no need tobe allowed anywhere else because adman.gr is an advertizement site basically.

Re: allow specific script failed

Posted: Tue Sep 08, 2015 2:37 pm
by barbaz
I meant in what way the ABE rule you tried not work?

Re: allow specific script failed

Posted: Tue Sep 08, 2015 5:06 pm
by Joe
The videos are not appearing in order to play them

Re: allow specific script failed

Posted: Tue Sep 08, 2015 5:59 pm
by barbaz
Please put in your ABE rule and post here the ABE message you see in the Browser Console (Ctrl-Shift-J) when it not working.

Re: allow specific script failed

Posted: Tue Sep 08, 2015 7:18 pm
by Joe
Site .static.adman.gr
Accept INCLUSION from SELF++
Accept INCLUSION from .naftemporiki.gr .kathimerini.gr
Deny

The script static.adman.gr is not allowed for example in the page http://www.naftemporiki.gr/video/100065 ... si-anatoli
No message in the console from ABE

Re: allow specific script failed

Posted: Tue Sep 08, 2015 11:15 pm
by barbaz
Joe wrote:The script static.adman.gr is not allowed
And how are you determining this?
If by what the NS menu shows, you have to Allow it there for the ABE rule to do what you want. NoScript permissions & ABE are completely independent of each other.

Re: allow specific script failed

Posted: Wed Sep 09, 2015 6:34 pm
by joe
From the FAQ section I undersdand that with ABE you can allow specific script to run in specific sites only and not in all the sites. Writting this code in ABE hoped that static.adman.gr would be allowed only in sites naftemporiki.gr and kathimerini.gr. Maybe I cannot understand the use of ABE well or there is not a way to do so.

Re: allow specific script failed

Posted: Wed Sep 09, 2015 8:53 pm
by barbaz
Well, the ABE rule looks like it should work, you've Allowed the domain in the script blocking, it still blocking the script but no messages from ABE in the Browser Console (Ctrl-Shift-J)...
Maybe try the optimal version of the ABE rule:

Code: Select all

Site .static.adman.gr
Accept from .naftemporiki.gr .kathimerini.gr .static.adman.gr
Deny INC
or try this version which emulates the script blocking rather than filter all requests:

Code: Select all

Site .static.adman.gr
Accept from .naftemporiki.gr .kathimerini.gr .static.adman.gr
Deny INC(SCRIPT, OBJ, FONT, XHR, MEDIA)
Sandbox
If this doesn't work I'll leave this thread alone (at least for the moment), as I'm out of ideas. :|

Re: allow specific script failed

Posted: Thu Sep 10, 2015 6:09 am
by Thrawn
joe wrote:Writting this code in ABE hoped that static.adman.gr would be allowed only in sites naftemporiki.gr and kathimerini.gr.
Only if you have already allowed the domain via the regular script-blocking.

ABE only intercepts traffic to do extra filtering. It doesn't allow anything that was already blocked. It potentially blocks things that would otherwise be allowed.

So what you do is allow the site through the regular script blocking, then use an ABE rule to selectively block it (ie everywhere except the trusted locations).