Certain Images

Posting here is no longer possible, please use the forum of a filter list project, such as EasyList
Locked
x218o7x
Posts: 6
Joined: Tue Oct 03, 2006 9:52 pm

Certain Images

Post by x218o7x »

i looked around on here and cant find it so i was wondering how do i block a certain images name on any site there is... say i want to block "example-ad.gif" on any domain how would i do it?
im an adblock newb i know...
User avatar
rick752
Posts: 2709
Joined: Fri Jun 09, 2006 7:59 pm
Location: New York USA
Contact:

Post by rick752 »

Try:

Code: Select all

example-ad.gif
:)
Wladimir Palant

Post by Wladimir Palant »

I would be more specific, like:

Code: Select all

/example-ad.gif
Or even:

Code: Select all

/example-ad.gif|
But you got the general idea :)
x218o7x
Posts: 6
Joined: Tue Oct 03, 2006 9:52 pm

Post by x218o7x »

alright, figured it would be that simple... know i feel thoroughly stupid, thanks for the help

one last question, say i want to block any image ending in the same letters say theres
387fj3fexamplead.gif
4897f34examplead.gif
f4j84vxexamplead.gif
mklk73hexamplead.gif

would /*examplead.gif| work?
Wladimir Palant

Post by Wladimir Palant »

Yes.
User avatar
rick752
Posts: 2709
Joined: Fri Jun 09, 2006 7:59 pm
Location: New York USA
Contact:

Post by rick752 »

x218o7x wrote:alright, figured it would be that simple... know i feel thoroughly stupid, thanks for the help

one last question, say i want to block any image ending in the same letters say theres
387fj3fexamplead.gif
4897f34examplead.gif
f4j84vxexamplead.gif
mklk73hexamplead.gif

would /*examplead.gif| work?
You may as well just drop the

Code: Select all

 /
as there would ALWAYS be a forward-slash SOMEWHERE before the trailing "*examplead.gif|" The filter would be interpreted as:

Code: Select all

*/*examplead.gif|
See? :wink:
x218o7x
Posts: 6
Joined: Tue Oct 03, 2006 9:52 pm

Post by x218o7x »

so your saying use
*examplead.gif| or */*examplead.gif| ??
User avatar
rick752
Posts: 2709
Joined: Fri Jun 09, 2006 7:59 pm
Location: New York USA
Contact:

Post by rick752 »

Use:
examplead.gif|
The "/" will do nothing except make the string 'look' at everything that has a "/" in it because it is wildcarded on each end.

EDIT: It is implied that there is a wildcard at each end of a filter string UNLESS you either define that something must appear at the beginning or end of an address (that is what the "|" is for).

Code: Select all

examplead.gif|
means that you will block anything that ENDS WITH examplead.gif .... removing the "|" will block the same thing ANYWHERE in the address.
User avatar
Peng
Posts: 518
Joined: Fri Jun 09, 2006 8:14 pm
Location: Central Florida
Contact:

Post by Peng »

examplead.gif| will also block stuff like "myexamplead.gif". If you don't want that, use /examplead.gif|.
Matt Nordhoff
User avatar
rick752
Posts: 2709
Joined: Fri Jun 09, 2006 7:59 pm
Location: New York USA
Contact:

Post by rick752 »

Peng wrote:examplead.gif| will also block stuff like "myexamplead.gif". If you don't want that, use /examplead.gif|.
You are right of course, Peng, but the question was:

Code: Select all

 say i want to block any image ending in the same letters say theres
387fj3fexamplead.gif
4897f34examplead.gif
f4j84vxexamplead.gif
mklk73hexamplead.gif

would /*examplead.gif| work?
... you may have missed that one, my friend :D
User avatar
Peng
Posts: 518
Joined: Fri Jun 09, 2006 8:14 pm
Location: Central Florida
Contact:

Post by Peng »

rick752 wrote:... you may have missed that one, my friend :D
That I did! :D

I swear that was edited into the post after I read it. >.>
Matt Nordhoff
Locked