19.1 mod_access The mod_access module resolves which clients are allowed to access server directories based on their IP address or hostname.
allow from hostname hostname ... [Within <Directory> or .htaccess ] The allow directive specifies which hosts can access a given directory in the site. The hostname can be any of the following:
There can be only one allow directive per section. If omitted, there is no default.
allow from env =variable [Within <Directory> or .htaccess ] The allow from env directive sets whether access to a directory should be granted if a specific environment variable exists. For example, the following grants access to the secret directory if the client is using Version 5.0 of the "InternetStar" browser, via a user -agent string: BrowserMatch ^InternetStar/5.0 ACCESS_GRANTED <Directory /secret> order deny, allow deny from all allow from env=ACCESS_GRANTED </Directory>
deny from hostname hostname ... [Within <Directory> or .htaccess ] The deny directive specifies which hosts are denied access to a directory. The hostname can be one of the following:
deny from env =variable [Within <Directory> or .htaccess ] The deny from env directive sets whether access to a directory should be denied if a specific environment variable exists. Access to the secret directory is denied if the client is using Version 4.0 of the "InternetStar" browser, via a user-agent string: BrowserMatch ^InternetStar/4.0 ACCESS_DENIED <Directory /secret> order deny, allow deny from env=ACCESS_DENIED allow from all </Directory>
order order [Within <Directory> or .htaccess ] The order directive specifies the order in which deny and allow directives are evaluated. The order directive can take one of the following forms:
|
Team-Fly |
Top |