How can I block images that refer to special site

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

How can I block images that refer to special site

Post by BrainWorker »

How can I block images that refer to special site?

For example, many sites have some blocks (at top or bottom or anywhere else) for advertisement of special source.
In this case, the code is something like this

Code: Select all

<a href="some-source-of-ads.com"><img src="any-image-address-different-all-the-time.gif"></a>
How can I write filter rule to block all the images that refer to special web site?

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

Post by rick752 »

BrainWorker

Post by BrainWorker »

Thanks.

You wrote
rick752 wrote:Element-hiding rules for link blocking work MUCH better and do more too. Simply adding a rule like:

Code: Select all

#a(href*=badlink.com)
..not only hides any image or flash link to that domain, but also will hide any plain text links to that site too. :wink:
As I understand
a - name of tag defining block to block (sounds great :) )
href - its attribute

But what does asterisk mean right after "href" ?
User avatar
rick752
Posts: 2709
Joined: Fri Jun 09, 2006 7:59 pm
Location: New York USA
Contact:

Post by rick752 »

BrainWorker wrote:Thanks.

You wrote
rick752 wrote: But what does asterisk mean right after "href" ?
That is a wildcard for the link address so you don't have to write the full link address ... eg: "http://www.badlink.com/something/something.htm"

Without the * , it would not work with my example.
Locked