Forum Moderators: open
Here's what I got (real basic example):
<%
Select Case Request.ServerVariables("http_referer")
Case "http://www.mydomain.com", "http://www.mydomain.net", "http://www.mydomain.org",
Response.end
Case else
Response.Redirect "whatever.htm"
End Select
%>
under "Case", how can I get around entering 100+ pages x 3 TLD's? I thought there might be a wild card symbol or string I can put after the mydomain.com, but I cannot locate one. Does such an animal exist for this purpose?
Any help will be greatly appreciated.
Marshall
Case Request.ServerVariables("http_referer") Like "*mydomain*"
Otherwise I would use if/else which might make things simpler.
After thinking about it, and reading your reply, I opted to go with
<%
if Request.ServerVariables("http_referer") = "" Then
response.redirect "some page"
else response.end
end if
%>
since these click-throughs never have a referrer URL in my logs. It is really strange. My logs show date,time,ip,target URL, referrer, and should ONLY show links that are on my site. Instead, they show links that are not on my site which makes me suspect they are being typed in manually and, as I said, using my tracking query to hide the true destination of the link.
Again, thanks,
Marshall