in reply to prevent perl script running from browser

> How can I make it so it can only run from calls to it that originate on my server.

do you mean "called from a browser that runs on the same host"?

Smells like an xy problem for me, please try to be more explicit of how you want to call your script.

you might want to check the environment vars for the IP of the request.

( REMOTE_ADDRESS IIRC )

Cheers Rolf
(addicted to the Perl Programming Language and ☆☆☆☆ :)
Je suis Charlie!

  • Comment on Re: prevent perl script running from browser