|
```
|
|
```
|
|
|
|
|
|
# exemplo bloqueando todos ips, exceto 1
|
|
# exemplo bloqueando todos ips, exceto 1
|
|
#Deny from All
|
|
#Deny from All
|
|
#Allow from 168.194.162.37
|
|
#Allow from 168.194.162.37
|
... | @@ -128,6 +127,15 @@ |
... | @@ -128,6 +127,15 @@ |
|
SetEnvIfNoCase User-Agent ([a-z0-9]{2000,}) bad_bot
|
|
SetEnvIfNoCase User-Agent ([a-z0-9]{2000,}) bad_bot
|
|
SetEnvIfNoCase User-Agent (archive.org|binlar|casper|checkpriv|choppy|clshttp|cmsworld|diavol|dotbot|extract|feedfinder|flicky|g00g1e|harvest|heritrix|httrack|kmccrew|loader|miner|nikto|nutch|planetwork|postrank|purebot|pycurl|python|seekerspider|siclab|skygrid|sqlmap|sucker|turnit|vikspider|winhttp|xxxyy|youda|zmeu|zune) bad_bot
|
|
SetEnvIfNoCase User-Agent (archive.org|binlar|casper|checkpriv|choppy|clshttp|cmsworld|diavol|dotbot|extract|feedfinder|flicky|g00g1e|harvest|heritrix|httrack|kmccrew|loader|miner|nikto|nutch|planetwork|postrank|purebot|pycurl|python|seekerspider|siclab|skygrid|sqlmap|sucker|turnit|vikspider|winhttp|xxxyy|youda|zmeu|zune) bad_bot
|
|
|
|
|
|
|
|
# para liberar acesso ao dominio com senha, utilize o gerador de htpasswd para gerar um usuario e senha
|
|
|
|
# http://www.htaccesstools.com/htpasswd-generator
|
|
|
|
# tire o comentário do comando "Require valid-user" e ajuste o caminho do arquivo de senhas em "AuthUserFile"
|
|
|
|
# obs. se estiver utilizando bloqueio ou liberação por IP desabilite
|
|
|
|
|
|
|
|
#Authtype Basic
|
|
|
|
#AuthName "Put whatever you want here"
|
|
|
|
#AuthUserFile /home/253481.cloudwaysapps.com/dwwsuqdbww/public_html/.htpasswd
|
|
|
|
|
|
<IfModule !mod_authz_core.c>
|
|
<IfModule !mod_authz_core.c>
|
|
Order Allow,Deny
|
|
Order Allow,Deny
|
|
Allow from all
|
|
Allow from all
|
... | @@ -137,9 +145,10 @@ |
... | @@ -137,9 +145,10 @@ |
|
<IfModule mod_authz_core.c>
|
|
<IfModule mod_authz_core.c>
|
|
<RequireAll>
|
|
<RequireAll>
|
|
Require all Granted
|
|
Require all Granted
|
|
|
|
#Require valid-user
|
|
Require not env bad_bot
|
|
Require not env bad_bot
|
|
</RequireAll>
|
|
</RequireAll>
|
|
</IfModule>
|
|
</IfModule>
|
|
</IfModule>
|
|
</IfModule>
|
|
|
|
|
|
<files install.php>
|
|
<files install.php>
|
... | | ... | |