Old Proxomitron Forums
October 01, 2014, 02:17:23 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: No activity here! This forum is read-only. Go to http://prxbx.com/forums/index.php.
 
   Home   Help Search Login Register  
Pages: [1] 2 3 ... 6
  Print  
Author Topic: Banner Killers: Another Two  (Read 7195 times)
sidki3003

Sr. Member
****
Posts: 476


View Profile WWW Email
« on: August 15, 2002, 02:31:01 AM »

Updated 2002-08-25, AdDimensions.txt is newer than in the zip file.

Note: This message does *always* contain the current versions of filters and the AdDims list.


These are the two filters that do the main job in my config.
If you don't like to see what's been killed, you're better off with other ones .

[Blocklists]
List.AdList = "..ListsURL Killfile.txt"
List.AdPaths = "..ListsAdPathList.txt"
List.AdDomains = "..ListsAdDomainList.txt"
List.AdHosts = "..ListsAdHostList.txt"
List.AdDims = "..ListsAdDimensions.txt"
List.Bypass_Ads = "..ListsBypass Ads.txt"

[Patterns]
Name = "Kill: Banners (linked)"
Active = TRUE
URL = "($TYPE(htm)|$TYPE(js))(^$LST(Bypass_Ads))"
Bounds = "<as*</a>"
Limit = 1536
Match = "<a[^>]++shref=$AV(1)*> (([^('][^<>]++)3 <*/a>|)&*ssrc=$AV(4)*&(*alt=$AV(2)|)&"
        "("
        ""
        "("
        "<a[^>]++shref(=|*ssrc=)$AV((http|ftp)(s|)://(^h)*)"
        "&*"
        "("
        "<[^>]+>"
        "&&*ssrc=$AV(4)*"
        "&&*width=[#41:*]*"
        "&&$LST(AdDims)*"
        ")*"
        ")"
        ""
        "|"
        ""
        "("
        "<a[^>]++shref(=|*ssrc=)"
        "("
        ""
        "$AV("
        "("
        "((^(http|ftp)(s|)://(^h))*[./-_?&:=]|)"
        "($LST(AdPaths))8"
        "([./-_?&:="']|(^?))"
        "*)"
        "&$SET(9=AdPr Cool"
        ")*"
        ""
        "|"
        "$AV("
        "(http|ftp)(s|)://(^h)"
        "("
        "$LST(AdList)"
        "|"
        "*[./-_?&:=]"
        "(ad|promo(s|)|ban|banner(s|)"
        ")8"
        "([./-_?&:="']|(^?))"
        "&$SET(9=AdP Cool"
        ")*"
        ""
        ")"
        ")"
        "&*src="
        "((*width=$AV(6) & *height=$AV(7)) *>$SET(5= 6x7)|)"
        ")"
        ""
        ")"
Replace = "<span class=prox style=display:inline;><center>"
          "<a href="1" target="_top" title="2"><font color=crimson>[Banner: </font></a>"
          "<a href="4" target="_top" title="3"><font color=crimson>95]</font></a>"
          "</center></span>"

Name = "Kill: Banners (not linked)"
Active = TRUE
URL = "($TYPE(htm)|$TYPE(js))(^$LST(Bypass_Ads))"
Bounds = "<((img|image|input|frame)s*>|iframe*</iframe>|layer*</layer>|ilayer*</ilayer>|applet*</applet>|object*</object>|embed*>(*</embed>|))"
Limit = 1536
Match = "*<"
        "("
        ""
        "("
        "("
        "(img|image|input)4s*src=$AV(((http|ftp)(s|)://(^h)*)1)"
        "|"
        "(frame|iframe|layer|ilayer|embed)4s*src=$AV(1)"
        "|"
        "(object|applet)4(*scodebase=$AV(*)&(*ssrc=$AV(1)|))"
        ")*"
        "&"
        "("
        "[^>]+>"
        "&&*width=[#41:*]*"
        "&&$LST(AdDims)*"
        ")*"
        ")"
        ""
        "|"
        ""
        "(img|image|input|frame|iframe|layer|ilayer|embed)4s"
        "("
        "*src="
        "("
        "$AV("
        "("
        "((^(http|ftp)(s|)://(^h))*[./-_?&:=]|)"
        "($LST(AdPaths))8"
        "([./-_?&:="']|(^?))*"
        ")1"
        "&$SET(9=AdPr Cool"
        ")"
        "|"
        "$AV(((http|ftp)(s|)://(^h)$LST(AdList)*)1)"
        "|"
        "$AV(((http|ftp)(s|)://(^h)*[./-_?&:=]"
        "(ad|promo(s|)|ban|banner(s|))8"
        "([./-_?&:="']|(^?))*)1&$SET(9=AdP Cool)"
        ")*"
        "&"
        "((*width=$AV(6) & *height=$AV(7)) *>$SET(5= 6x7)|)"
        ")"
        ""
        ")"
        "&(*alt=$AVQ(2)$SET(3= title=2)|)"
Replace = "<span class=prox style=display:inline;>"
          "<a class="prox" id="proxlower" href='1' target="_top"3>[4: 95]</a></span>"

AdList, AdPaths, AdDomains, AdHosts are pretty standard. Based on Paul Rupe's lists and part of most non-default configs.
The only rewrite is AdDims, that's why i post it below. This one is Work In Progress.

------------------------------ AdDimensions.txt ------------------------------
# All banner dimensions list 2.0 beta (NOADDURL)
#
# For use in "by-size" banner filters in Proxomitron Naoko4
#
# Evgeny AKA Homeric

# 1.7.2001 Michael B?rschgens

# some dimensions by JD
# sidki 2002-03-13
# updated 2002-08-25

# ------------------------------------------------------
# common banners

(*width=([#460:490])6 & *height=([#60:85]|[#93]|[#98:105]|[#170])7)$SET(9=a.common.1 6x7)
(*width=([#120]|[#173]|[#230:240]|[#400:500])6 & *height=([#59]|[#60])7)$SET(9=a.common.2 6x7)

# ------------------------------------------------------
# square banners

(*width=([#125])6 & *height=([#125])7)$SET(9=a.square.1 6x7)
(*width=([#120])6 & *height=([#120])7)$SET(9=a.square.2 6x7)
(*width=([#100])6 & *height=([#100])7)$SET(9=a.square.3 6x7)
#(*width=([#200])6 & *height=([#200])7)$SET(9=a.square.4 6x7)

# ------------------------------------------------------
# buttons (88x31)

#(*width=([#88:91]|[#98:101])6 & *height=([#30:32])7)$SET(9=a.button.1 6x7)
#(*width=([#100]|[#45])6 & *height=([#30:32])7)$SET(9=a.button.2 6x7)

# ------------------------------------------------------
# Rare standard banners

(*width=([#120])6 & *height=([#240])7)$SET(9=a.rare.1 6x7)
(*width=([#230])6 & *height=([#30:33])7)$SET(9=a.rare.2 6x7)

# ------------------------------------------------------
# Non-standard banners (primarily adult sites)

(*width=([#400])6 & *height=([#80]|[#100]|[#120]|[#150])7)$SET(9=a.non-st.1 6x7)
(*width=([#450])6 & *height=([#150])7)$SET(9=a.non-st.2 6x7)
(*width=([#150])6 & *height=([#94])7)$SET(9=a.non-st.3 6x7)

# ------------------------------------------------------
# Miscellaneous graphics

(*width=([#200])6 & *height=([#300])7)$SET(9=a.misc.1 6x7)
(*width=([#425])6 & *height=([#225])7)$SET(9=a.misc.2 6x7)
(*width=([#336]|[#338])6 & *height=([#280]|[#282])7)$SET(9=a.misc.3 6x7)

# ------------------------------------------------------
# Monster banners

(*width=([#120]|[#160])6 & *height=([#600])7)$SET(9=a.monster.1 6x7)
(*width=([#720:760])6 & *height=([#85:100])7)$SET(9=a.monster.2 6x7)

# ------------------------------------------------------
# Tower banners

(*width=([#125])6 & *height=([#400])7)$SET(9=a.tower.1 6x7)
(*width=([#60])6 & *height=([#468])7)$SET(9=a.tower.2 6x7)

# ------------------------------------------------------
# Trackers

(*width=([#41])6 & *height=([#38])7)$SET(9=a.tracker.1 6x7)

# ------------------------------------------------------
# Site specific
$URL(http://[^/]++.yahoo.com)&(*width=([#300])6 & *height=([#250])7)$SET(9=a.Yahoo.1 6x7)


# ------------------------------------------------------
# User sizes go here...
----------------------------- /AdDimensions.txt ------------------------------

Notes:
Some things are a bit long winded, because i was running out of variables.

Take care of wordwrap, better use the link below.

The whole thing is here.

/sidki

Edited by - sidki3003 on 25 Aug 2002  15:25:01
Logged

 
JD5000

Full Member
***
Posts: 241


View Profile WWW Email
« Reply #1 on: August 15, 2002, 03:51:58 AM »

Geez Sidki, your gonna make me release another update.



--------
Infopros Joint :: Computer Related Links And Discussion
Logged

sidki3003

Sr. Member
****
Posts: 476


View Profile WWW Email
« Reply #2 on: August 15, 2002, 03:56:16 AM »

LMAO

 
Logged

 
JD5000

Full Member
***
Posts: 241


View Profile WWW Email
« Reply #3 on: August 15, 2002, 06:10:20 AM »

Hmmmm.... Great job sidki! So far I'm really digging these filters.

One question, why does the "web bug" filter have to be in the middle?

--------
Infopros Joint :: Computer Related Links And Discussion
Logged

JD5000

Full Member
***
Posts: 241


View Profile WWW Email
« Reply #4 on: August 15, 2002, 07:17:33 AM »

Dang... I really like them! Gave me a an idea for my kill marks too.

Another question, why do you call adpaths straight from the match?



--------
Infopros Joint :: Computer Related Links And Discussion
Logged

sidki3003

Sr. Member
****
Posts: 476


View Profile WWW Email
« Reply #5 on: August 15, 2002, 12:39:28 PM »

Hi JD,

Great to hear that it works as expected in other configs as well.

quote:

One question, why does the "web bug" filter have to be in the middle?



"Kill: Banners (not linked)" would catch many of them and i guess you don't want detailed info about every 1x1 pixel image, right?
If you place the webbug filter above, it will match before since it uses the same bounds (<img> that is).


quote:

Another question, why do you call adpaths straight from the match?



The filters do the following:
First, check for the image dimensions, because it's the fastest.
This is for offline images only, except (iframe|layer|ilayer|embed).

Second, check if a *relative* path matches "AdPaths" ((href|src)="/foo/adverts/foo/...").
That's the second fastest.

Third, check if a relative path contains certain keywords, that would be too general for "AdPaths".

Fourth, check if an *absolute* path ((href|src)="http://foo.com/foo/adverts/foo/...") matches AdList (calling in turn AdPaths, AdDomains, AdHosts).
That is the slowest check and only done if the others fail.

edit: Ehm... it's not exactly like that, the two filters behave a little differently.
But you got the idea.

/sidki

Edited by - sidki3003 on 15 Aug 2002  17:05:59
Logged

 
Jor

Sr. Member
****
Posts: 421

10401286 jor otf jor_otf
View Profile WWW Email
« Reply #6 on: August 15, 2002, 04:40:06 PM »

Filters seem to work great in my config

 
Logged

 
sidki3003

Sr. Member
****
Posts: 476


View Profile WWW Email
« Reply #7 on: August 15, 2002, 04:52:25 PM »

Cool! I wasn't so sure about that, especially with the info display and the concatenated links for browsers other than IE.

 
Logged

 
Jor

Sr. Member
****
Posts: 421

10401286 jor otf jor_otf
View Profile WWW Email
« Reply #8 on: August 15, 2002, 04:59:19 PM »

Oh, I took out the display (made the links into class proxlink, which are completely hidden from display )

But the base filters are nice addition -- they seldom come into play with my config, as it is pretty sharp in catching rogue ads, but those few that slip through are now targeted by this

Edited by - Jor on 15 Aug 2002  19:23:59
Logged

 
JD5000

Full Member
***
Posts: 241


View Profile WWW Email
« Reply #9 on: August 15, 2002, 07:02:00 PM »

Hehe, I kept the replace code. But, I  think I'm going to remove the links for the "kill banners (linked)". I mean, when I try to click them, they are killed by the URL-killer. LoL

I also liked how you gave each a diff color. So... I color coded all my kills using the "id" tag.

--------
Infopros Joint :: Computer Related Links And Discussion

Edited by - JD5000 on 15 Aug 2002  20:02:41
Logged

sidki3003

Sr. Member
****
Posts: 476


View Profile WWW Email
« Reply #10 on: August 15, 2002, 07:24:29 PM »

quote:

I mean, when I try to click them, they are killed by the URL-killer. LoL




 
Logged

 
sidki3003

Sr. Member
****
Posts: 476


View Profile WWW Email
« Reply #11 on: August 16, 2002, 07:41:47 PM »

Uh oh, the "Kill: Banners (not linked)" filter didn't do a nice job with the iframes here:
http://channels.netscape.com/ns/browsers/7/default.jsp
Hope i fixed it , update in the first post.

Note:
If an iframe is written by a script within the URL, the link won't work but is just informational.
See on the browser's status bar (hmmm... at least with IE) what would have been loaded.

/sidki


 
Logged

 
JD5000

Full Member
***
Posts: 241


View Profile WWW Email
« Reply #12 on: August 16, 2002, 08:53:35 PM »

Ok, I must not be thinking straight... What did you change? I can't see it... I know it's going to be obvious. LoL

--------
Infopros Joint :: Computer Related Links And Discussion
Logged

sidki3003

Sr. Member
****
Posts: 476


View Profile WWW Email
« Reply #13 on: August 16, 2002, 09:12:04 PM »

I replaced href="1" with href='1'.

 
Logged

 
JD5000

Full Member
***
Posts: 241


View Profile WWW Email
« Reply #14 on: August 17, 2002, 12:48:58 AM »



--------
Infopros Joint :: Computer Related Links And Discussion
Logged

Pages: [1] 2 3 ... 6
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!