in reply to Re^4: prevent perl script running from browser
in thread prevent perl script running from browser
You alter/assign referrer, either in perl scripting or browser plugin.
Yes, but that does not matter. The idea is that $ENV{'HTTP_REFERER'} is set to some nonsense only if running as CGI. Unfortunately, this is not entirely true. Clients can choose not to send a Referer header, so you might run a CGI with $ENV{'HTTP_REFERER'} not set. Using $ENV{'GATEWAY_INTERFACE'} should be reliable. It is set by the webserver, it is always set, and it is set to a constant value independent from the HTTP request.
Alexander
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: prevent perl script running from browser
by marto (Cardinal) on Oct 01, 2017 at 10:39 UTC | |
by snowchild (Novice) on Oct 01, 2017 at 15:17 UTC | |
by afoken (Chancellor) on Oct 01, 2017 at 18:35 UTC | |
by marto (Cardinal) on Oct 01, 2017 at 16:24 UTC |