IP Address Logging

From: Jeff Miller (jeffopensrs@hotmail.com)
Date: Sat Feb 09 2002 - 10:20:13 EST


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
transfer orders. 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

_________________________________________________________________
MSN Photos is the easiest way to share and print your photos:
http://photos.msn.com/support/worldwide.aspx



This archive was generated by hypermail 2.1.3 : Tue Oct 19 2004 - 23:37:02 EDT