glob expressions in ABE rules

Discussions about the Application Boundaries Enforcer (ABE) module
batavus

glob expressions in ABE rules

Post by batavus »

Hello,

the documentation of ABE claims that one can use glob expressions as follows:

*.some.site.com
glob expression; a glob expression starting with “.” will match both the subdomains having it as a suffix and the domain stripped of the leading dot.

However, with noscript 2.1.4 I've noticed that I have to write

Site example.com
Accept from something.org *.something.org
Deny

When I want the rule to work both when I view http://www.something.org/ and http://something.org/

Is this a known issue?
Batavus
Mozilla/5.0 (X11; Linux x86_64; rv:8.0) Gecko/20100101 Firefox/8.0 Iceweasel/8.0
Tom T.
Field Marshal
Posts: 3620
Joined: Fri Mar 20, 2009 6:58 am

Re: glob expressions in ABE rules

Post by Tom T. »

batavus wrote:However, with noscript 2.1.4
The first thing *always* is to make sure that you have the latest version of NoScript. That version is quite out-of-date.

Current stable release is 2.2.3. Please try it.

You may also try the latest development build. which you may click directly here.

If the issue still occurs, then please post back, letting us know which NS versions you have tried. Thanks.
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.24) Gecko/20111103 Firefox/3.6.24
User avatar
Giorgio Maone
Site Admin
Posts: 9524
Joined: Wed Mar 18, 2009 11:22 pm
Location: Palermo - Italy
Contact:

Re: glob expressions in ABE rules

Post by Giorgio Maone »

batavus wrote: Site example.com
Accept from something.org *.something.org
Deny

When I want the rule to work both when I view http://www.something.org/ and http://something.org/
From what you've written is not clear to me yet if you actually tried a glob expression starting with ".", i.e.

Code: Select all

Site example.com
Accept from .something.com
which is supposed to work.
Mozilla/5.0 (Windows NT 5.2; WOW64; rv:8.0) Gecko/20100101 Firefox/8.0
batavus

Re: glob expressions in ABE rules

Post by batavus »

Oh, I indeed used *.something.org instead .something.org. Now it works as a charm. Many thanks for the quick reply and for developing noscript!

I suggest adding another entry for this to the list in Section 1.3 of http://noscript.net/abe/abe_rules.pdf instead of describing both *.site.org and .site.org in the same item.
Mozilla/5.0 (X11; Linux x86_64; rv:8.0) Gecko/20100101 Firefox/8.0 Iceweasel/8.0
Guest

Re: glob expressions in ABE rules

Post by Guest »

I just found out that it was probably a documentation issue: abe_rules.pdf has an asterisk in front for the glob -- however the description seems to be correct according to the current behaviour
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.24) Gecko/20111107 Ubuntu/10.04 (lucid) Firefox/3.6.24
Tom T.
Field Marshal
Posts: 3620
Joined: Fri Mar 20, 2009 6:58 am

Re: glob expressions in ABE rules

Post by Tom T. »

batavus wrote:Oh, I indeed used *.something.org instead .something.org. Now it works as a charm. Many thanks for the quick reply and for developing noscript!

I suggest adding another entry for this to the list in Section 1.3 of http://noscript.net/abe/abe_rules.pdf instead of describing both *.site.org and .site.org in the same item.
Guest wrote:I just found out that it was probably a documentation issue: abe_rules.pdf has an asterisk in front for the glob -- however the description seems to be correct according to the current behaviour
Giorgio is relatively unavailable until the completion of his relocation and connection to his new ISP, but I agree that the ABE .pdf itself is inconsistent.

Section 1.3, third entry, gives the example as *.some.site.com, with the leading asterisk, but then defines the rule for glob expressions as starting with only the dot, and not the asterisk before it.

The FAQ 8.10 gives examples that say to include
friend.com *.friend.com, again with the leading asterisk (star).

I agree that this could cause confusion, and hopefully, when Giorgio is back up to speed, all of these sources will be made consistent and clear.
If there's no reply within, say, a week or so, post back, and I'll PM him and see what the status is.

Thank you for your time, interest, and patience.
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.25) Gecko/20111212 Firefox/3.6.25
Tom T.
Field Marshal
Posts: 3620
Joined: Fri Mar 20, 2009 6:58 am

Re: glob expressions in ABE rules

Post by Tom T. »

The question appears to have been answered in this post.

In response, I asked Giorgio to review the corresponding ABE rule for possible updating.
Thank you.
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.25) Gecko/20111212 Firefox/3.6.25
Post Reply