[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 147
  • Last Modified:

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.
0
Jaymol
Asked:
Jaymol
  • 2
1 Solution
 
bigbedCommented:
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

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now