Forum Moderators: open
Googly
if ($ENV type variable == "spider")
then set location = foobar & don't log it
else if ($ENV type variable =="surfer")
then set location = outbound-link & log it.
That is more or less what I do for some sites, but as I don't code in ASP :) another member might be able to give you an idea what those variables are that you would need.
Also you might try a script archive like Hotscripts or another that offers ASP code. If you do, try searching for 'click tracking' or 'redirect scripts' or something like that.
cheers.
Request.ServerVariables("URL")
Request.ServerVariables("QUERY_STRING")
URL gives the absolute path down to the scriptname. If you are passing params in a querystring, they're in the other.
Spiders...In my global.asa Session_OnStart I check the Request.ServerVariables("HTTP_USER_AGENT") to exclude a given list of agent names like googlebot, PartnerSite, etc. from this process.