title: ASP.NET MVC - Block all visitors to a specific controller except search bots (Googlebot, Yahoo Slurp, etc)
body: <p>I'm trying to create a controller for my sitemap, but only allow search engines to view it.</p>
  
  <p>If you look at <a href="https://stackoverflow.com/robots.txt">https://stackoverflow.com/robots.txt</a> you'll see that their sitemap is <a href="https://stackoverflow.com/sitemap.xml">https://stackoverflow.com/sitemap.xml</a>.  If you try to visit the sitemap, you'll be redirected to the 404 page.</p>
  
  <p><a href="https://meta.stackexchange.com/questions/22308/stackoverflow-sitemap-wtf">This meta question confirms this behavior (answered by Jeff himself)</a>.</p>
  
  <p>Now I don't want this question closed as "belongs on Meta", as I'm just using StackOverflow as an example.  What I really need answered is...</p>
  
  <h2>How can I block all visitors to a controller EXCEPT for search bots?</h2>