ajout zzz-evolinux-custom.conf et modif de la technique pour bloquer les robots
This commit is contained in:
parent
ab8395126b
commit
7ab5fb4053
|
@ -128,10 +128,11 @@ StartServers 50
|
|||
MinSpareServers 20
|
||||
MaxSpareServers 30
|
||||
MaxRequestsPerChild 100
|
||||
<Directory /home/>
|
||||
AllowOverride None
|
||||
# Equivalent à "Require not env GoAway"
|
||||
Require expr "-z %{reqenv:GoAway}"
|
||||
<Directory />
|
||||
RewriteEngine On
|
||||
RewriteOptions Inherit
|
||||
RewriteCond %{ENV:GoAway} "-eq 1" [NC]
|
||||
RewriteRule ^ - [F,L]
|
||||
</Directory>
|
||||
<IfModule mod_ssl.c>
|
||||
SSLProtocol all -SSLv2 -SSLv3
|
||||
|
@ -139,10 +140,27 @@ SSLCipherSuite HIGH:MEDIUM:!aNULL:!MD5:!RC4
|
|||
</IfModule>
|
||||
~~~
|
||||
|
||||
et nos optimisations spécifiques dans `/etc/apache2/conf-available/zzz-evolinux-custom.conf` :
|
||||
|
||||
~~~
|
||||
SetEnvIf User-Agent "thesis-research-bot" GoAway=1
|
||||
SetEnvIf User-Agent "Amazonbot" GoAway=1
|
||||
SetEnvIf User-Agent "Bytespider" GoAway=1
|
||||
SetEnvIf User-Agent "SeekportBot" GoAway=1
|
||||
SetEnvIf User-Agent "PetalBot" GoAway=1
|
||||
SetEnvIf User-Agent "DotBot" GoAway=1
|
||||
SetEnvIf User-Agent "YandexBot" GoAway=1
|
||||
SetEnvIf User-Agent "SEOkicks" GoAway=1
|
||||
SetEnvIf User-Agent "serpstatbot" GoAway=1
|
||||
SetEnvIf User-Agent "AhrefsBot" GoAway=1
|
||||
SetEnvIf User-Agent "MJ12bot" GoAway=1
|
||||
~~~
|
||||
|
||||
que l'on active à l'installation via la commande :
|
||||
|
||||
~~~
|
||||
# a2enconf z-evolinux-defaults.conf
|
||||
# a2enconf zzz-evolinux-custom
|
||||
~~~
|
||||
|
||||
Le fichier `/etc/apache2/ipaddr_whitelist.conf` centralise les
|
||||
|
|
Loading…
Reference in a new issue