I'm getting an odd timeout error when looping through the user agent to see if it's a bot.
It seems to be a simple string loop.. has anyone experience this before? Any suggestions?
This code exists in my application.cfc file inside the onError function.
This code has been in place for over a year, every now and then this happens. If I comment it out, everything works fine. Later, I make it active again and it works for a while.. right now it throws the error every time I open any page.
The request has exceeded the allowable time limit Tag: CFLOOP
The error occurred in D:\inetpub\stageRoot\PRODU
l.cfc: line 76
75 : <cfset isABot = true>
76 : <cfbreak>
77 : </cfif>
78 : </cfloop>
<cfif isDefined("CGI.HTTP_USER_AGENT") and Len(CGI.HTTP_USER_AGENT)>
<cfset theAgent = CGI.HTTP_USER_AGENT>
<cfloop list="bot\b,crawl,\brss,feed,news,blog,reader,syndication,coldfusion,slurp,google,zyborg,emonitor,jeeves,msnbot" index="bot" delimiters=",">
<cfif findNoCase(bot, theAgent)>
<cfset isABot = true>
<h2>This session has been identified as a search engine spider</h2>
<p>If you are human and not an automated BOT please contact support</p>