deny from env
deny from env=variablename ...
directory, .htaccess
The deny
from
env
directive controls access by the existence of
a named environment variable. For instance:
BrowserMatch ^BadRobot/0.9 go_away <Directory /docroot> order allow,deny allow from all deny from env=go_away </Directory>
Access by a browser called BadRobot v0.9 sets an environment variable
go_away
, which in turn triggers
deny
from
.