Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer

Re: Capturing IP Address from a CGI script

by andyford (Curate)
on Oct 27, 2007 at 14:51 UTC ( #647580=note: print w/replies, xml ) Need Help??

in reply to Capturing IP Address from a CGI script

What exactly do you want to do? There are probably many answers to your question depending on your end goal.

If you just want a simple list of IPs and how they submitted myapp.cgi, then that job is usually done by the webserver. Check your logs. If the information is not in there, you can probably change your webserver's configuration to enable it.

If, on the other hand, you want to set up some kind of session, you probably want to use cookies and some kind of Perl module that handles the whole session thing for you like, oh, say, CGI::Session :)

non-Perl: Andy Ford

  • Comment on Re: Capturing IP Address from a CGI script

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://647580]
erix looks up Sheldon ...
[erix]: ah. well, that must feel nice, no? ;)
[erix]: not the best way to make friends, though (I suppose)
LanX Fun with Flags anyone?

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (8)
As of 2018-03-22 18:53 GMT
Find Nodes?
    Voting Booth?
    When I think of a mole I think of:

    Results (283 votes). Check out past polls.