View previous topic :: View next topic |
Author |
Message |
Schika

Joined: 09 Mar 2005 Posts: 2 Location: Heidelberg, Germany
|
Posted: Wed Mar 09, 2005 Post subject: Unblock specific URLs |
|
|
Hi!
I use the wildcard *banner*. How can I exclude some URLs from this?
Thanks in advance. _________________ You think my answer is stupid? READ THIS!
In a world without fences and walls - who needs windows and gates? |
|
Back to top |
|
 |
G
Joined: 10 Oct 2004 Posts: 550
|
Posted: Wed Mar 09, 2005 Post subject: |
|
|
That depends on what URLs you're trying to exclude. _________________ Filterset.G |
|
Back to top |
|
 |
Schika

Joined: 09 Mar 2005 Posts: 2 Location: Heidelberg, Germany
|
|
Back to top |
|
 |
G
Joined: 10 Oct 2004 Posts: 550
|
Posted: Wed Mar 09, 2005 Post subject: |
|
|
You can only exclude content that comes after what is to be blocked. You're going to have to wait for the whitelist in 0.6. _________________ Filterset.G |
|
Back to top |
|
 |
J.N. Guest
|
Posted: Wed Mar 09, 2005 Post subject: Re: Unblock specific URLs |
|
|
[quote="Schika"]Hi!
I use the wildcard *banner*. How can I exclude some URLs from this?
Thanks in advance.[/quote]
I've had the same problem. Luckily I've found a solution. Just replace *banner* with this regular expression (modify it to your needs):
/^(?=.*?banner)((?!www.allow1.com).)((?!www.allow2.com).)*$/ |
|
Back to top |
|
 |
G
Joined: 10 Oct 2004 Posts: 550
|
Posted: Wed Mar 09, 2005 Post subject: |
|
|
That won't work. _________________ Filterset.G |
|
Back to top |
|
 |
J.N. Guest
|
Posted: Wed Mar 09, 2005 Post subject: |
|
|
G wrote: | That won't work. |
Strange. It does work for me well on FF 1.0.1 with AdBlock 0.5d2 39. |
|
Back to top |
|
 |
J.N. Guest
|
Posted: Wed Mar 09, 2005 Post subject: |
|
|
Oh, you will probably need to precede the dots in urls with backslashes:
/^(?=.*?banner)((?!www\.allowme\.com).)*$/
/^(?=.*?banner)((?!www\.allow1\.com).)((?!www\.allow2\.com).)*$/ |
|
Back to top |
|
 |
rue Developer
Joined: 22 Oct 2003 Posts: 752
|
Posted: Thu Mar 10, 2005 Post subject: |
|
|
J.N:
Unfortunately, your 'lookbehind' phrase isn't really anchored to the pattern-start. The first url, below, should be blocked, but isn't: /^(?=.*?banner)((?!www\.allow1\.com).)((?!www\.allow2\.com).)*$/
"www.allow3.com/banner?redir=www.allow2.com"
-> no-match
"www.allow3.com/banner"
-> match
Still, it was a nice idea. Lookbehind has been discussed here, before. |
|
Back to top |
|
 |
|