Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re: Retrieving the REMOTE HOSTby snopal (Pilgrim) |
on Jul 08, 2007 at 00:28 UTC ( [id://625474]=note: print w/replies, xml ) | Need Help?? |
This usually does the trick for me:
This returns an IP or a zero length string, which tends to be accurate enough for use as a factor in authentication. You can not be assured that the values provided by the web server environment variables are not spoofed, so multi-factoring of your incoming information is useful.
In Section
Seekers of Perl Wisdom
|
|