I'm using the script below at the bottom of the reg_system.cgi file so I can 
do a traceroute to make sure the address on the order is close to where the 
order was placed from. It logs the IP Address without any problems when 
registering a new domain name, but it doesn't log anything for domain 
transfers. I've tried putting it in different sections of the reg_system.cgi 
but I keep getting 500 errors. Does anybody know where I can add this so it 
will record the IP Address on domain transfers?

open (DB,">>/home/userid/orders/orders.log") or die "File error";
print DB "\n";
print DB "================NEW ORDER================\n";
print DB "\n";
print DB "Domain Name = $in{domain}\n";
print DB "IP Address = $ENV{'REMOTE_ADDR'}\n";
print DB "\n";
print DB "=========================================\n";
print DB "\n";
close (DB);

    return $html;
}


Jeff

_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.

Reply via email to