PDA

View Full Version : Is it possible to detect AOL users and redirect them to a particular page in my Web..


laxy_m
09-25-2004, 09:45 AM
hi........to all
Is it possible to detect AOL users and redirect them to a particular page in my Web site?

Thanks
Laxy
www.funspot.com (http://www.funspot.com)

Roy Sinclair
09-27-2004, 08:01 PM
Yes, it's possible.

Request.ServerVariables("HTTP_USER_AGENT") --- You can search the results from this for the AOL string.

mack
09-28-2004, 02:32 AM
hi........to all
Is it possible to detect AOL users and redirect them to a particular page in my Web site?

Thanks
Laxy
www.funspot.com (http://www.funspot.com)

Or:
If InStr(LCase(Request.ServerVariables("HTTP_USER_AGENT")), "aol") > 0 Then Response.Redirect "newpage"

If the string "AOL" is found in the servervariable "USER_AGENT", and it's greater then 0 THEN redirect user to newpage. I use LCase() to convert it to lowercase, I'm not sure if the string is AOL or aol, probably AOL but to be safe I would use the LCase() function
:)