allow specific script failed

Discussions about the Application Boundaries Enforcer (ABE) module
Joe

allow specific script failed

Post 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?
Mozilla/5.0 (Windows NT 5.1; rv:40.0) Gecko/20100101 Firefox/40.0
barbaz
Senior Member
Posts: 10841
Joined: Sat Aug 03, 2013 5:45 pm

Re: allow specific script failed

Post 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?
*Always* check the changelogs BEFORE updating that important software!
-
joe

Re: allow specific script failed

Post 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.
Mozilla/5.0 (Android; Mobile; rv:40.0) Gecko/40.0 Firefox/40.0
barbaz
Senior Member
Posts: 10841
Joined: Sat Aug 03, 2013 5:45 pm

Re: allow specific script failed

Post by barbaz »

I meant in what way the ABE rule you tried not work?
*Always* check the changelogs BEFORE updating that important software!
-
Joe

Re: allow specific script failed

Post by Joe »

The videos are not appearing in order to play them
Mozilla/5.0 (iPhone; CPU iPhone OS 6_1_6 like Mac OS X) AppleWebKit/536.26 (KHTML, like Gecko) Version/6.0 Mobile/10B500 Safari/8536.25
barbaz
Senior Member
Posts: 10841
Joined: Sat Aug 03, 2013 5:45 pm

Re: allow specific script failed

Post 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.
*Always* check the changelogs BEFORE updating that important software!
-
Joe

Re: allow specific script failed

Post 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
Mozilla/5.0 (Windows NT 5.1; rv:40.0) Gecko/20100101 Firefox/40.0
barbaz
Senior Member
Posts: 10841
Joined: Sat Aug 03, 2013 5:45 pm

Re: allow specific script failed

Post 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.
*Always* check the changelogs BEFORE updating that important software!
-
joe

Re: allow specific script failed

Post 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.
Mozilla/5.0 (Android; Mobile; rv:40.0) Gecko/40.0 Firefox/40.0
barbaz
Senior Member
Posts: 10841
Joined: Sat Aug 03, 2013 5:45 pm

Re: allow specific script failed

Post 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. :|
*Always* check the changelogs BEFORE updating that important software!
-
User avatar
Thrawn
Master Bug Buster
Posts: 3106
Joined: Mon Jan 16, 2012 3:46 am
Location: Australia
Contact:

Re: allow specific script failed

Post 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).
======
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:40.0) Gecko/20100101 Firefox/40.0
Post Reply