|No such thing as a small change|
Determine ip address/hostname of requesting hostby davidj (Priest)
|on Sep 21, 2006 at 19:11 UTC||Need Help??|
davidj has asked for the
wisdom of the Perl Monks concerning the following question:
My fellow monks,
Her's my situation:
I have been asked by my employer to write a web-based application where employees evaluate departmental procedures. Due to privacy matters, logins are required to access the application and view the content. This part is easy enough. I want to implement an additional security measure where I am emailed of failed login attempts. This, too, is easy enough.
Here's my need:
Where I'm stuck is that I will need to determine the ip address of the machine from which the login attempt failed. Since we use dhcp I will also need to determine the hostname of said machine. Unfortunately, my knowledge of http requests is lacking in this level of the protocol. My google searches and SuperSearch attempts have been fruitless so far.
As always, any assistance you can provide, modules you can point me to, etc is greatly appreciated.