[Roadmap] Wildcards and $domain

Various discussions related to Adblock Plus development
Post Reply
User avatar
fanboy
Posts: 3446
Joined: Sun Jun 17, 2007 4:45 am
Contact:

[Roadmap] Wildcards and $domain

Post by fanboy »

trying to replace a filter like this,

Code: Select all

@@|http://earth.google.
with something like this,

Code: Select all

@@.google-analytics.$domain=earth.google.*
Just doesn't seem to work :/
User avatar
Adblock Plus Fan
Posts: 1255
Joined: Sat Feb 24, 2007 11:08 am

Post by Adblock Plus Fan »

I'd like wildcards to work on domain filter options as well. As fanboy pointed out, it can be useful for different country domains.
Wladimir Palant

Post by Wladimir Palant »

Domains being "inflexible" was both a performance consideration and a feature - if they match right side only there no chance of false positives. It is also consistent with the way domains are used for element hiding. But I agree that Google doesn't make it easy to use domain-based rules.
SlimShady
Posts: 49
Joined: Sat Sep 09, 2006 12:49 pm

Post by SlimShady »

Greasemonkey has a Magic TLD.
When writing include and exclude rules in the metadata block of a Greasemonkey script, using the magic syntax .tld in place of a specific top-level domain will match against any top-level domain.
I recall you were struggling with TLDs while developing the 'third-party' feature. Maybe you could also use that code for the 'domain' option.
And the 'magic tld' for url filters?
Wladimir Palant

Post by Wladimir Palant »

Ok, that's something to consider...
User avatar
Adblock Plus Fan
Posts: 1255
Joined: Sat Feb 24, 2007 11:08 am

Post by Adblock Plus Fan »

SlimShady wrote:And the 'magic tld' for url filters?
This could be very interesting. Perhaps as a separate option?
Something like example.com$magic-tld

edit:
But I guess that wouldn't work since .com would need to match an item before filter option is considered?
Wladimir Palant

Re: Wildcards and $domain (Feature request)

Post by Wladimir Palant »

Scheduled for Adblock Plus 1.4, tentatively - time to start looking into this.
User avatar
Adblock Plus Fan
Posts: 1255
Joined: Sat Feb 24, 2007 11:08 am

Re: [Roadmap] Wildcards and $domain

Post by Adblock Plus Fan »

EDIT
Adblock Plus Fan wrote:The magic TLD implementation is needed more than ever now with Easyprivacy's policy change of filtering domains. And the tracking networks have already started exploiting this weakness:
http://forums.lanik.us/viewtopic.php?t=8037
Scratch that. Didn't turn out to be as urgent as I thought, since apparently the Easyprivacy maintainers are fine with adding a many domain entries as necessary.

Sorry about the meaningless bump :lol:
Ares2
Posts: 1275
Joined: Fri Feb 15, 2008 12:47 pm

Re: [Roadmap] Wildcards and $domain

Post by Ares2 »

Also, if they would really try to "exploit" this, what would stop them to register trackingserver2.com, tracking-server.com, etc. if trackingserver.* is blocked? The possibilities are endless. :wink:
Guest

Re: [Roadmap] Wildcards and $domain

Post by Guest »

Ares2 wrote:Also, if they would really try to "exploit" this, what would stop them to register trackingserver2.com, tracking-server.com, etc. if trackingserver.* is blocked? The possibilities are endless. :wink:
At that point wouldn't it just be that time where a user would add the new website to the list? Yes the possibilities are endless, but we can at least add them as we encounter them..right? :?:
zaza
Posts: 2
Joined: Tue May 21, 2013 10:47 pm

Re: [Roadmap] Wildcards and $domain

Post by zaza »

Guest wrote:
Ares2 wrote:Also, if they would really try to "exploit" this, what would stop them to register trackingserver2.com, tracking-server.com, etc. if trackingserver.* is blocked? The possibilities are endless. :wink:
At that point wouldn't it just be that time where a user would add the new website to the list? Yes the possibilities are endless, but we can at least add them as we encounter them..right? :?:
That's a good point. Can't something be implemented in this regard?


____________________________________________________________________________________________________________________________________________
Advertising is the art of convincing people to spend money they don't have for something they don't need. Free hosting
Post Reply