Post Reply 
imagebam.com - Direct Image
Sep. 01, 2009, 11:44 AM
Post: #2
RE: imagebam.com - Direct Image
To avoid problems with byte limit we can use a javascript redirection to the image but in this case i don't like how my filter work because the image isn't send with the good mime type from the server, so the browser download it like a file instead of showing it inline.

Code:
[Patterns]
Name = "www.imagebam.com Direct Image - TEST"
Active = TRUE
URL = "$TYPE(htm)www.imagebam.com/image/*"
Limit = 400
Match = "<img id="the_image"*src=($AV(*sec*))\1 *>"
Replace = "</html>"
          "<script>location.replace(\1);</script>"
          "\k"

The code used is imported from this other filter:
Code:
[Patterns]
Name = "<util> LimitWords. Block a site with these words {ln,sidki}ยท090219"
Active = FALSE
Limit = 30
Match = "(word1|word2|word3...)"
        "$SET(limitWords=$GET(limitWords)1)"
        "$TST(limitWords=11)"
Replace = "</xmp></textarea></noscript></script></object></embed></iframe>"
          "<script>location.replace("http://local.ptron/killed.html");</script>"
          "\k"
Add Thank You Quote this message in a reply
Post Reply 


Messages In This Thread
imagebam.com - Direct Image - Toppy - Sep. 01, 2009, 01:14 AM
RE: imagebam.com - Direct Image - lnminente - Sep. 01, 2009 11:44 AM
RE: imagebam.com - Direct Image - PAEz - Nov. 07, 2009, 05:56 PM

Forum Jump: