Forum Moderators: open
The problem is that almost all the info I found in google is very old. If anyone has found open source script I'd be very happy.
$ip = $ENV{'REMOTE_ADDR'}; #get the ip address of the visitor
open(IPLIST, "iplist.txt");
@IPlist = <IPLIST>;
close(IPLIST);
foreach $line (@IPlist){
chomp($line);
if ($ip eq $line){
# we have a spider
# display some optimized content then exit
}
}
# no spider found, display human version, then exit