Untested, but should point you in the right direction at least... and there's no GetHostByAddr in ASP so you'll have to write your own or something. If you just want an IP Address, I'm pretty sire the REMOTE_ADDR server variable always returns an IP Address.
Code:
<%
If (InStr(Request.ServerVariables("HTTP_USER_AGENT"), "Googlebot", vbTextCompare) > 0) Then
se_referer = Request.ServerVariables("HTTP_REFERER")
se_ip = GetHostByAddr(Request.ServerVariables("REMOTE_ADDR"))
se_visit = FormateDateTime(Now, vbLongDate) & " at " & FormatDateTime(Now, vbLongTime)
se_method = Request.ServerVariables("REQUEST_METHOS")
se_Browser = Request.ServerVariables("HTTP_USER_AGENT")
se_entry_page = Request.ServerVariables("REQUEST_URI")
End If
%>
__________________
Minaki Serinde MCP
"Wow, Linux is nearly on-par with Windows ME!"
Please login or register to view this content. Registration is FREE | Please login or register to view this content. Registration is FREE
Last edited by Minaki; 06-08-2006 at 08:02 AM..
|