ajout infos pour interdire en fonction du User-Agent
This commit is contained in:
parent
c88b95ddfc
commit
d0192c3103
|
@ -660,3 +660,13 @@ SetEnvIfNoCase X-Forwarded-Proto https HTTPS=on
|
|||
~~~
|
||||
|
||||
Ainsi l'application saura qu'elle est accédée en HTTPS à condition que le reverse proxy soit bien configuré et envoie X-Forwarded-Proto.
|
||||
|
||||
### Interdire en fonction du User-Agent
|
||||
|
||||
~~~{.apache}
|
||||
SetEnvIf User-Agent "^BadBot$" GoAway=1
|
||||
SetEnvIf User-Agent "Nutch" GoAway=1
|
||||
<Directory />
|
||||
Deny from env=GoAway
|
||||
</Directory>
|
||||
~~~
|
||||
|
|
Loading…
Reference in a new issue