Re: [PHP] Referer problem

2004-05-31 Thread John W. Holmes
Merlin wrote: I am trying to prevent hotlinking of images by other servers. Pictures are generated on the fly by a php script, where I have included this code to prevent hot linking: $haystack = $_SERVER['HTTP_REFERER']; $needle = 'globosapiens'; $pos = strpos($haystack, $needle); if ($pos

Re: [PHP] Referer problem

2004-05-31 Thread Marek Kilimajer
Merlin wrote: Hi there, I am trying to prevent hotlinking of images by other servers. Pictures are generated on the fly by a php script, where I have included this code to prevent hot linking: $haystack = $_SERVER['HTTP_REFERER']; $needle = 'globosapiens'; $pos = strpos($haystack, $needle);

[PHP] Referer problem

2004-05-31 Thread Merlin
Hi there, I am trying to prevent hotlinking of images by other servers. Pictures are generated on the fly by a php script, where I have included this code to prevent hot linking: $haystack = $_SERVER['HTTP_REFERER']; $needle = 'globosapiens'; $pos = strpos($haystack, $needle); if ($pos ===