Forum Moderators: coopster

Message Too Old, No Replies

<img src> trouble .

         

kyw1974

6:14 am on Jan 23, 2006 (gmt 0)

10+ Year Member



Recently I found that there's many request to my server by <img src=..........> from other website (forum, blog, etc) to my server. It's ok if the reqeusts are really request images (jpg, gif) from my server, however, there's many NON IMAGE request through <img src>, e.g.,
<img src="http://www.somewhere.com/index.php">, which take CPU time for processing the php script, and return HTML code instead of image. Result is, at the linking side website, the <img src> just show a "red x" because my server does not return an image, and my server wasted valueable processing power and bandwidth to handle such invalid request.

Is there any way to block such request?

jatar_k

5:08 pm on Jan 23, 2006 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



there are scripts around for stopping hotlinking [google.com] of images from other sites but they would be across the board. If they are specific sites or ips you could block them explicitly