The Adblock Project Forum Index The Adblock Project
Pull up a seat ...stay a while.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Specially nasty ad...how to block?

 
Post new topic   Reply to topic    The Adblock Project Forum Index -> Main
View previous topic :: View next topic  
Author Message
sansibar



Joined: 23 Oct 2003
Posts: 4

PostPosted: Mon Jan 19, 2004    Post subject: Specially nasty ad...how to block? Reply with quote

Hello

I have here an specially 'nasty' ad which adblock cannot eliminate.
It's the Microsoft-Block about in the middle of http://www.zdnet.com/

How to get rid of that ad?
Thanks and keep up the good work.
rgds
Thomas
Back to top
View user's profile Send private message Send e-mail
Org



Joined: 23 Oct 2003
Posts: 349

PostPosted: Mon Jan 19, 2004    Post subject: Reply with quote

The bulk of the ad seems to this:

Code:
<td valign="middle" background="http://zdnet.com.com/i/z/1003/.gif">

So it's a table cell background image. Luckily Adblock is able to block the background images.

It's pretty hard to formulate a general filter that would remove this ad and others like it, but not any false positives. Most pictures on that site seem to come from the domain ".com.com", so using the domain would create false positives. The same goes for path elements "/i/z/" and "/1003/". I think there is no general way to filter this one. A more or less specific will of course work, something like:

*/zdfd_*_bg.

This could also work, but there is a largish chance for false positives:

.com.com/i/z/

Personnally I don't like to add specific rules to my filter list, because the list would grow to be too big and unmanageable.

(BTW rue, is the leading * asterisk needed in wild card expression "*/zdfd_*_bg."? I added it to make sure this is not taken as a regexp. Would it be better to write it as a regexp "/\/zdfd_.*_bg\./"?)
Back to top
View user's profile Send private message
MW
Guest





PostPosted: Mon Jan 19, 2004    Post subject: Reply with quote

Looks like it's a table in the original document so the pics are blockable but not the table...at least i don't think so....
Back to top
MW
Guest





PostPosted: Mon Jan 19, 2004    Post subject: Reply with quote

the 3 offending images are b.gif, zdfd_msft_bg.gif & tufd_msft_left.gif
Back to top
MW
Guest





PostPosted: Mon Jan 19, 2004    Post subject: Reply with quote

Sorry didn't see your post...
u could probably use a filter like
/(tu|fd)_msft/
Back to top
Guest






PostPosted: Mon Jan 19, 2004    Post subject: Reply with quote

correction it should be /(tu|zd)fd_msft/ ....sloppy me.....
Back to top
rue
Developer


Joined: 22 Oct 2003
Posts: 752

PostPosted: Tue Jan 20, 2004    Post subject: Reply with quote

Org:
Would it be better to write it as a regexp?
A filter is only treated as RegExp if it begins and ends with the forward-slash. So, actually, you can keep the original filter sans-asterisk: /zdfd_*_bg.
.
Btw, I think your post is missing part of the ad-url.
Back to top
View user's profile Send private message
Org



Joined: 23 Oct 2003
Posts: 349

PostPosted: Tue Jan 20, 2004    Post subject: Reply with quote

rue wrote:
Btw, I think your post is missing part of the ad-url.

It is. That's intentional. I don't think that the goal (for me at least, YMMV) should be total absence of ads. It's enough for me if I'm not annoyed by them. Formulating a filter is balancing between total blocking and keeping the list neat and filters as general as possible without false positives. In this case I was trying to guess what kind of filter might block the next ad that will eventually appear in the same place once the site rotetes their ads. Of course the filter should be checked and edited if necessary the next time that happens.
Back to top
View user's profile Send private message
rue
Developer


Joined: 22 Oct 2003
Posts: 752

PostPosted: Tue Jan 20, 2004    Post subject: Reply with quote

Oh, ok.
.
"zdfg" is close to "zdnet". Before noting the url wasn't intact, I was disturbingly confused for a moment :P
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    The Adblock Project Forum Index -> Main All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group