in reply to Re: Testing form params
in thread Testing form params
And I was trying to test if their $ENV{REMOTE_ADDR} matches any that's in the banned.txt?#banned.txt ##.###.##.### ##.###.##.### ##.###.##.###
my $banned = "banned.txt"; open( BANNED, "$banned" ); $ip = <BANNED>; while (<BANNED>) { if (grep { $ENV{REMOTE_ADDR} eq $_ }) { print "GET AWAY!"; } } close(BANNED);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Testing form params
by b10m (Vicar) on Jan 13, 2004 at 11:24 UTC | |
by Anonymous Monk on Jan 13, 2004 at 12:04 UTC | |
by b10m (Vicar) on Jan 13, 2004 at 12:26 UTC |