On Wed, 22 Dec 2004 20:50:01 -0700, The Disguised Jedi
<[EMAIL PROTECTED]> wrote:
> I have a file "image_server.php" that receives requests through <img>
> tags & GET variables, and returns the requested image with PHP GD
> support.
> 
> That runs all fine and dandy, but I want to check the absolute URL
> that is calling it to make sure it is an approved URL.  (For example,
> I need the URL of the HTML file that contains the <img> tag that is
> requesting the image from the php script)
> 
> I have tried $_SERVER['REQUEST_URI'] but that just returns the path to
> the php script file.  Is there a different variable that I can use?  I
> haven't exhausted all of my searching, but figured a question here
> would save me some time!  I'll keep searching in the meantime!

You might try limiting access by host instead.  There's lots of host
and server info you can work with, look at print_r( $GLOBALS );


-- 
Greg Donald
Zend Certified Engineer
http://gdconsultants.com/
http://destiney.com/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to