[thelist] 404 logging script change needed to add an IP lookup output

John C Bullas jcbullas at nildram.co.uk
Mon Mar 29 11:33:49 CST 2004


Thanks to those that assisted me in my search ;)

My hosting company put me in the right (simple) direction

$hostname = gethostbyaddr($_SERVER['REMOTE_ADDR']);

does the trick fine for my virtual webserver !!!!

adapted my script so I get....

==========================================

Mon Mar 29 2004 5:29:54 pm BST

62.3.246.176  (62-3-246-176.dyn.gotadsl.co.uk) tried to load 
www.imm2004.org/fgfgfdgdgf

User Agent = Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; .NET CLR 
1.1.4322)

Referring URL:

Nice...

FB



More information about the thelist mailing list