Reply to Re: [PHP] hotlinking images

Your name:

Reply:


Posted by Philip Hallstrom on 04/01/05 05:54

Check the value of um... $_SERVER[HTTP_REFERER] (check my spelling). If
it's not from your own host, then bail out... or return a static image
saying something along the lines of "this image stolen without permission"

-philip

On Thu, 31 Mar 2005, Sebastian wrote:

> i have an issue with site linking directly to my images.
> the problem is these images are generated on the fly with php/gd -- they're
> generated each time its viewed because i have done some watermarking
> manipulation and didnt want to watermaker them in a static way. they're
> including the images like this:
>
> <img src=http://mydomain.com/script.php?pic=232">
>
> not only is bandwidth usage increase but so does cpu because php/gd has to
> process them as well.. if they're including 5 or 6 of these images on a
> single page i can imagin how much cpu is being used.
>
> how can i work around this, if at all possible?
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация