I want to prevent web crawlers from using an apache site that is configured to forward all requests to a ProxyPass. I have tried the BrowserMatchNoCase directive to set an environment variable block_spider. When I change my user-agent in my web browser to masquerade as a search bot it still allowes me access to the site.
BrowserMatchNoCase "^bingbot" block_spider
BrowserMatchNoCase "^msnbot" block_spider
<Proxy *>
Order deny,allow
Deny from env=block_spider
Allow from all
</Proxy>
RewriteEngine On
RewriteOptions Inherit