BrowserHawk IQ now available! Click here for the full scoop!
Search:
How do the version properties apply to crawlers?
Created: 9/2/2001    Updated: 9/7/2001
Q   If I want to test for browser versions less than or equal to 3 and redirect them to another page, but I do not want crawlers redirected. Must I also test specifically for crawlers or do the version properties some how account for crawlers or apply to them differently?

A   For crawlers, the version properties are set according to what version of the crawler it is. So for your purposes, you must explictly test for crawlers using the Crawler property if you do not want to issue redirects to crawlers based on your criteria.

For example, the following code will do what you are looking for:

  if NOT bh.crawler and bh.majorver <=3 then
     ... redirect ...
  end if

    FAQ Home  |  Search FAQ  |  Show New Items  |  Ask a FAQ  |  Notify Me  |  Most Popular     
 
 
Copyright © 1994-2020 cyScape, Inc. All Rights Reserved. ()
ASP, ASP.NET, ColdFusion MX, CFMX, JSP, PHP