ajout blocage user-agent
This commit is contained in:
parent
67532dc478
commit
3a475b55a9
|
@ -283,6 +283,14 @@ server {
|
||||||
}
|
}
|
||||||
~~~
|
~~~
|
||||||
|
|
||||||
|
### Selon user-agent
|
||||||
|
|
||||||
|
~~~
|
||||||
|
if ($http_user_agent ~* (DotBot|Cliqzbot|AhrefsBot|SemrushBot)) {
|
||||||
|
return 404;
|
||||||
|
}
|
||||||
|
~~~
|
||||||
|
|
||||||
### Page personnalisé selon code erreur HTTP
|
### Page personnalisé selon code erreur HTTP
|
||||||
|
|
||||||
Contrairement à apache, on ne pourra indiquer une conf général à inclure qui s'appliquera pour tout les vhosts, mais il faudra ajouter l'include sur tout les fichier de confs des vhosts.
|
Contrairement à apache, on ne pourra indiquer une conf général à inclure qui s'appliquera pour tout les vhosts, mais il faudra ajouter l'include sur tout les fichier de confs des vhosts.
|
||||||
|
|
Loading…
Reference in a new issue