Someone was trying to get cute with me, by "iframeing" my search result page via an IMG tag with 0 width and 0 height, in hopes of killing my server resources. My searches are cached, so it doesn't do much damage, since its just a static file being served, but I was wondering if there was anything I can do to "fight back"? I know you can use a frame breaker, had it been an iframe. Is there anything to do in the case of an image?

link|improve this question

feedback

1 Answer

up vote 1 down vote accepted

Try filtering on referrer. Either mod-rewrite or mod-security can be used. See Debain Administration site for examples.

link|improve this answer
And then do what with it? It wont always send a referrer either. – k1lljoy Jun 5 '10 at 4:48
If it's a hidden image, one could be reasonably sure the hits come from innocent third parties, and most of them send a referrer. Just filter / deny based on the specific domain or url misbehaving being present. – Wrikken Jun 5 '10 at 10:33
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.