Answer the question
In order to leave comments, you need to log in
How to combine two rules in htaccess?
Good day, dear experts.
At the root of the site, in htaccess there are such lines
SetEnvIfNoCase User-Agent "BackupLand" bad_bot
SetEnvIfNoCase User-Agent "Nimbostratus-Bot" bad_bot
SetEnvIfNoCase User-Agent "Photon" bad_bot
<limit get="" post="" head="">
Order Allow,Deny
Allow from all
Deny from env=bad_bot
</limit>
Order deny,allow
Deny from all
<Files ~ ".(jpe?g|png|gif)$">
Allow from all
</Files>
Answer the question
In order to leave comments, you need to log in
/.htaccess
SetEnvIfNoCase User-Agent "BackupLand" bad_bot
SetEnvIfNoCase User-Agent "Nimbostratus-Bot" bad_bot
SetEnvIfNoCase User-Agent "Photon" bad_bot
Order Allow,Deny
Allow from all
Deny from env=bad_bot
Deny from all
<Files ~ "\.(jpe?g|png|gif)$">
Order deny,allow
Deny from env=bad_bot
</Files>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question