List Info

Thread: Capture IP address




Capture IP address
country flaguser name
United States
2007-09-14 03:56:38

Hi,
how can I capture the IP address of a user filling in a HTML form. The
backend procesing is using Perl. I dont know what modules are installed
by the ISP.

__._,_.___
.

__,_._,___
RE: Capture IP address
country flaguser name
United States
2007-09-14 07:13:47

You can check the modules installed. Check the link

http://www.mimedefang.org/kwiki/index.cgi?PerlModulesINFO

or use this script on web page

1. #!/usr/bin/perl -w

use ExtUtils::Installed;
my $instmod = ExtUtils::Installed->new();
foreach my $module ($instmod->modules()) {
my $version = $instmod->version($module) || "Version Not Found";;
print "$module - $versionn";
}

Capturing IP,

Check following links, this might give you some idea.

http://www.scriptarchive.com/dano.html
http://www.scriptarchive.com/download.cgi?s=dano&c=txt&f=dan_o%2Epl

http://bignosebird.com/carchive/bnbbook.shtml

Though not straight answer, Hope this helps.

________________________________

From: perl-beginner%40yahoogroups.com">perl-beginneryahoogroups.com
[mailto: perl-beginner%40yahoogroups.com">perl-beginneryahoogroups.com] On Behalf Of zen_e_boy
Sent: Friday, September 14, 2007 2:27 PM
To: perl-beginner%40yahoogroups.com">perl-beginneryahoogroups.com
Subject: [PBML] Capture IP address

Hi,
how can I capture the IP address of a user filling in a HTML form. The
backend procesing is using Perl. I dont know what modules are installed
by the ISP.

Ramesh Polepalli

mFormation Technologies Inc.
Direct Line: +91 80 6620 5939
Switchboard: +91 80 6620 5900

http://www.mformation.com


Visit WWW.MFORMATION.COM and see how the MFORMATION SERVICE MANAGER can help you to transform your business.

[Non-text portions of this message have been removed]

__._,_.___
.

__,_._,___
Re: Capture IP address
country flaguser name
United States
2007-09-14 10:09:03

Thanks for your replies, I'll give them a go over the weekend.
I also found a way of doing it in Javascript that I could quite easily
pass back via a hidden field in the form.

__._,_.___
.

__,_._,___
Re: Capture IP address
country flaguser name
Canada
2007-09-14 09:11:08

Allo!

At 04:56 2007-09-14, you wrote:
>Hi,
>how can I capture the IP address of a user filling in a HTML form. The
>backend procesing is using Perl. I dont know what modules are installed
>by the ISP.

For the visitor IP:

$ENV{'REMOTE_ADDR'}

If you need to have a listing of all environenet variable do the following:

foreach $key (sort keys %ENV)
{print "$key: $ENV{$key}n" ;}

Not sure about the syntax, I use a different, but must work.

Good luck

Gilles B.

---
Webmasters helping webmasters
http://www.balour.org/

__._,_.___
.

__,_._,___
[1-4]

about | contact  Other archives ( Real Estate discussion Medical topics )