Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I am trying to adapt 3 perl scripts to only allow https connection. So far I test to see if the $ENV{'HTTP_REFERER'} match /^https:/ but I read in some places that you should not trust $ENV{'HTTP_REFERER'}. Is there another way to check for https? Should I trust $ENV{'REMOTE_ADDR'} to get the IP address or can that be faked too?
Thank you for your help.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Another way to find http referrer
by JavaFan (Canon) on Feb 27, 2012 at 22:44 UTC | |
by Anonymous Monk on Feb 28, 2012 at 11:05 UTC | |
by Anonymous Monk on Feb 27, 2012 at 22:57 UTC | |
by aaron_baugher (Curate) on Feb 27, 2012 at 23:27 UTC | |
by Anonymous Monk on Feb 27, 2012 at 23:48 UTC | |
by JavaFan (Canon) on Feb 27, 2012 at 23:01 UTC | |
by Anonymous Monk on Feb 27, 2012 at 23:17 UTC | |
by JavaFan (Canon) on Feb 27, 2012 at 23:31 UTC | |
|
Re: Another way to find http referrer
by derby (Abbot) on Feb 27, 2012 at 23:48 UTC | |
by Anonymous Monk on Feb 28, 2012 at 00:46 UTC |