RE: [PHP] Preventing the "hijacking" of pictures
| From: | Jon Haworth | Date: | Fri, 28 Feb 2003 11:02:18 +0000 |
| Subject: | RE: [PHP] Preventing the "hijacking" of pictures | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-137538@lists.php.net to get a copy of this message | ||
Hi,
> $_SERVER[HTTP_REFERRER] does not help.
Not sure if you've got it that way in your code, but that might be because
it's spelt "HTTP_REFERER" - yes, it's wrong, you're right, but you have to
live with it :-)
I think you may also need to quote it like this, but I'm not sure:
$_SERVER['HTTP_REFERER']
Also, if you're on Apache, there are numerous ways to block this sort of
image hijacking using .htaccess files - a couple of minutes on Google will
doubtless turn up all sorts of ideas.
Cheers
Jon