title: Code Igniter - Best way to detect browser
body: <p>I want to shunt all browsers of a certain age off to their own page. What is the best method for doing this? Perhaps some JS in the header that is wrapped in :</p>
  
  <pre><code> &lt;!--[if lte IE 7 ]&gt;
      &lt;script type="text/javascript"&gt;
          window.location = "/unsupported-browser/";
      &lt;/script&gt;
      &lt;![endif]--&gt;
  </code></pre>
  
  <p>Shouldn't the above send the browser to: <a href="http://example.com/unsupported-browser/" rel="nofollow">http://example.com/unsupported-browser/</a> where I have a basic controller and view to handle it? Is it that simple?</p>