Not sure if you are looking for same thing but Ben Nadel had a thread
related to this.

http://www.bennadel.com/blog/1083-ColdFusion-Session-Management-And-Spiders-Bots.htm

<Ajas Mohammed />
http://ajashadi.blogspot.com
We cannot become what we need to be, remaining what we are.
No matter what, find a way. Because thats what winners do.
You can't improve what you don't measure.
Quality is never an accident; it is always the result of high intention,
sincere effort, intelligent direction and skillful execution; it represents
the wise choice of many alternatives.


On Wed, Aug 24, 2011 at 5:06 PM, Derrick Peavy <derr...@derrickpeavy.com>wrote:

> Looking for a clever solution to this problem.
>
> I have some code on a site that checks for known spiders/bots and malicious
> user agents.   The list of "known" is baout 50 or so long.
>
> One solution could be:
>
> (findNoCase('#searchTerm#', cgi.http_user_agent)) OR
> (findNoCase('#searchTerm#', cgi.http_user_agent)) OR
>  (findNoCase('#searchTerm#', cgi.http_user_agent)) OR ... etc and so on,
> 50 times.
>
> Another solution could be:
> <cfif findNoCase('#searchTerm#', cgi.http_user_agent)>do something</cfif>
> and repeat that complete CFIF 50 times.
>
> What is a creative way to solve this without so many IF's and minimal
> processing?
>
> Alos, the list of user agents can be either file based or pulled from a DB.
> I've done it both ways and I have used both solutions above. Don't see a
> difference, but it just seems rather crude.
>
> __________________
> Derrick Peavy
> derr...@derrickpeavy.com
> 404-786-5036
>
> “Innovation distinguishes between a leader and a follower.” - Steve Jobs
> "In economics, the majority is always wrong." - John Kenneth Galbraith
> _____________________
>
> **
>
>

Reply via email to