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.
In reply to Another way to find http referrer by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |