Help Me Specify Filter...

Posting here is no longer possible, please use the forum of a filter list project, such as EasyList
Locked
Mike

Help Me Specify Filter...

Post by Mike »

oK...I have a very basic filter....

/ad....

Now, I want this filter to ONLY filter things that have '/ad', or ad at all in the link...

But, /ad filters out 'add', and so forth.....

I want to create /ad, also to be able to pick up and block 'Ads', ad, etc... capitilization in the link or not....

So is there anyway I can specify /ad, to block only containing the /ad/ anywhere on the url?like...

not blocking www.addon.com
but blocking www.game.com/ad/on
block www.ad.com
block www.gamesAD*Blocks the site because it specifically has ad in the url*
And any urls that have 'ad' anywhere, only *ad*
User avatar
oona
Posts: 8
Joined: Mon Mar 31, 2008 3:17 pm
Location: Finland

Post by oona »

You can simply block /ad/ with the following filter:

Code: Select all

*/ad/*
ABP can't really work out whether the "ad" is part of another word or not, if it's inside a string of letters; thus, addon.com and gamesad.com can't be distinguished. You could, of course, block "ad" when it's not surrounded by letters:

Code: Select all

/[^a-z]ad[^a-z]/
Locked