title: Detecting a robot using Coldfusion
body: <p>I need to simply detect if the visitor is a robot or a real browser.  I have the following code:</p>
  
  <pre><code>    &lt;cfset REQUEST.UserAgent = LCase( CGI.http_user_agent ) /&gt;
      &lt;cfif REFind( "bot\b", REQUEST.UserAgent ) OR 
      Find( "crawler", REQUEST.UserAgent ) OR 
      Find( "spider", REQUEST.UserAgent ) OR
      Find( "slurp", REQUEST.UserAgent ) OR
      Find( "mediapartners-google", REQUEST.UserAgent )&gt; 
          &lt;cfset notarobot = 0&gt;
      &lt;cfelse&gt;
          &lt;cfset notarobot = 1&gt;
      &lt;/cfif&gt;
  </code></pre>
  
  <p>Will this detects the common robots like MJ12bot, bingbot, slurp, googlebot, yandexbot, baiduspider etc.?  Thanks in advance.</p>