Unimatic1140 has asked for the wisdom of the Perl Monks concerning the following question:
Here is a sample of the results that we’re recorded in my USER-IP-FILE.txt file…#!/usr/local/bin/perl -- use CGI::Carp qw(fatalsToBrowser); $|=1; $RMIP=$ENV{'REMOTE_ADDR'}; $RUAG=$ENV{'HTTP_USER_AGENT'}; -----(later on in the code)----- # RECORD USERS IP ADDRESSES open (USERIP, ">>/usr/local/www/htdocs/classicappliances/NEW DISCU +SS/PROFILES/USER-IP-FILE.txt"); flock (USERIP, 2); print USERIP "$NAME_CHOICE--REMOTE ADDR-$RMIP---user agent-$RUAG\n +"; close (USERIP); flock (USERIP, 8);
See, all the IP address are the same? I thought the $ENV{'REMOTE_ADDR'} command picks up the each users individual IP address? Does anyone see what I’m doing wrong??? Any advice will be greatly appreciated.Unimatic1140--REMOTE ADDR-216.23.15.143---remote host----user agent-Mo +zilla/4.0 (compatible; MSIE 6.0; Windows 98; Win 9x 4.90) spambdamn--REMOTE ADDR-216.23.15.143---remote host----user agent-Mozil +la/4.75 [en] (Windows NT 5.0; U) jasonl--REMOTE ADDR-216.23.15.143---remote host----user agent-Mozilla/ +4.0 (compatible; MSIE 5.0; Windows 98; DigExt) earthling177--REMOTE ADDR-216.23.15.143---remote host----user agent-Mo +zilla/4.0 (compatible; MSIE 5.12; Mac_PowerPC) angus--REMOTE ADDR-216.23.15.143---remote host----user agent-Mozilla/4 +.0 (compatible; MSIE 5.5; Windows 98; Win 9x 4.90; MSN 6.1; MSNbMSFT; + MSNmen-us; MSNc11) whirlpoolbklyn--REMOTE ADDR-216.23.15.143---remote host----user agent- +Mozilla/4.0 (compatible; MSIE 5.5; AOL 6.0; Windows 95) trainguy--REMOTE ADDR-216.23.15.143---remote host----user agent-Mozill +a/4.0 (compatible; MSIE 5.5; AOL 6.0; Windows 98; Win 9x 4.90)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: IP Address of Person Submitting Log-In Request
by Fastolfe (Vicar) on Nov 08, 2001 at 00:48 UTC | |
by tune (Curate) on Nov 08, 2001 at 02:13 UTC | |
by Unimatic1140 (Novice) on Nov 08, 2001 at 19:59 UTC | |
by DaWolf (Curate) on Nov 08, 2001 at 20:59 UTC | |
by Rex(Wrecks) (Curate) on Nov 09, 2001 at 06:23 UTC | |
by mnperez (Sexton) on Nov 08, 2001 at 23:13 UTC | |
|
Re: IP Address of Person Submitting Log-In Request
by Rex(Wrecks) (Curate) on Nov 07, 2001 at 22:53 UTC | |
by Unimatic1140 (Novice) on Nov 08, 2001 at 00:41 UTC | |
|
Re: IP Address of Person Submitting Log-In Request
by kwoff (Friar) on Nov 07, 2001 at 22:31 UTC |