I can tell you how to figure out if a robot is visiting your site, but as to 
how to keep your app from crashing if a bot shows up... thats up to you 
depending on the details of your app. If I recall correctly from your other 
thread, each and every visitor to your site winds up getting a fairly 
extensive amount of overhead being tossed into a session variable when they 
arrive. As you've seen this approach has drawbacks.
 To make your app understand a bot (or an IE visit or whatever), keep a list 
of bots that don't play well with your system in an application var, either 
a list or an array (arrays are faster, lists are simpler to work with). You 
don't need the entire browser string, just enough to be sure you get a 
unique lock on whatever it is you are looking for. Set a session var that 
tells you whether a session has been initialized. If the session has not 
been initialized, test cgi.http_user_agent (findNoCase should work) against 
your list/array of forbidden browsers. If a bot hits, do something different 
that solves your problem.

-- 
--mattRobertson--
Janitor, MSB Web Systems
mysecretbase.com <http://mysecretbase.com>


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:216068
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to