View Single Post
 
Old August 20th, 2003, 05:07 PM
markw707 markw707 is offline
Authorized User
 
Join Date: Aug 2003
Location: Austin, TX, USA.
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Default HTTP_REFERER Tester Sometimes Redirects OK Visitor

I use the following ASP code in pages of my site to redirect visitors to the main page of the site if they did not come from a link:

If(Request.ServerVariables("HTTP_REFERER")="") Then
Response.Redirect "http://www.ab-cpe.com"
End If

The problem is that sometimes legitimate visitors to the pages (e.g. from a link) get redirected to the main page.

I don't understand why. Any help would be greatly appreciated!
__________________
Mark J. Weisberger