Where's the script being execute from?

Hi.

Just wondered if there's a way of determining the address of the web page (if any) that is accessing a script.  (I've got a script that I want to restrict to the site that it should be run on.)

Thanks,

John.
LVL 6
JaymolAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
bigbedConnect With a Mentor Commented:
you could try HTTP_REFERER in your environment
(ie $ENV{HTTP_REFERER} in Perl
0
 
JaymolAuthor Commented:
Thanks, I'll give it a go.

John.
0
 
JaymolAuthor Commented:
Perfect.

Cheers big ears,

John.
0
All Courses

From novice to tech pro — start learning today.