Page 1 of 1

glob expressions in ABE rules

Posted: Tue Dec 13, 2011 10:57 am
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

Re: glob expressions in ABE rules

Posted: Tue Dec 13, 2011 11:07 am
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.

Re: glob expressions in ABE rules

Posted: Tue Dec 13, 2011 11:16 am
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.

Re: glob expressions in ABE rules

Posted: Tue Dec 13, 2011 1:17 pm
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.

Re: glob expressions in ABE rules

Posted: Tue Jan 03, 2012 2:15 pm
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

Re: glob expressions in ABE rules

Posted: Wed Jan 04, 2012 10:45 am
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.

Re: glob expressions in ABE rules

Posted: Wed Jan 18, 2012 6:02 am
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.