jonn
Verified User
Has anyone ever added something like this to there httpd.conf to block bots from the server end instead of the user .htaccess.
Would I do it this way as the correct way to add the SetEnvIfNoCase to httpd.conf to fit CentOS with directadmin.
Thanks...
Would I do it this way as the correct way to add the SetEnvIfNoCase to httpd.conf to fit CentOS with directadmin.
Code:
SetEnvIfNoCase user-agent "^Xaldon\ WebSpider" bad_bot=1
SetEnvIfNoCase user-agent "^Baiduspider" bad_bot=1
<FilesMatch "(.*)">
Order Allow,Deny
Allow from all
Deny from env=bad_bot
</FilesMatch>
<FilesMatch "^\.ht">
Order allow,deny
Deny from all
Satisfy All
</FilesMatch>
Thanks...