I've got an ajax rich website which has extensive _escaped_fragment_ portions for Ajax indexing. While all my _escaped_fragment_ urls do 301 redirects to a special module which then outputs the HTML snapshots the crawlers need (i.e. mysite.com/#!/content
redirects to mysite.com/?_escaped_fragment_=/content
which in turn 301s to mysite.com/raw/content
), I'm somewhat afraid of users stumbling on those "raw" URLs themselves and making them appear in search engines.
In PHP, how do I make sure only robots can access this part of the website? (much like StackOverflow disallows its sitemap to normal users, and only lets robots access it)