Copyright - https://github.com/mitchellkrogza
These .htaccess files are provided for users who do not have root access to their Apache servers and are unable to run the Apache Bad Bot and Spam Referrer Blocker script.
By using one of the .htaccess file versions in your root directory in conjunction with the robots.txt file also provided in this repository this should cover your site from most bad bots and spam referrers.
If this helps you why not buy me a beer🍺
####There are two versions - you choose which one works for you
- One using the mod_rewrite.c module
- One using the mod_setenvif.c module
<IfModule !mod_authz_core.c>
<IfModule mod_authz_host.c>
Order allow,deny
Allow from all
Deny from env=spambot
</IfModule>
</IfModule>
<IfModule mod_authz_core.c>
<RequireAll>
Require all granted
Require not env spambot
</RequireAll>
</IfModule>
If this helped you why not buy me a beer🍺
Please subscribe your email address to the mailing list at https://groups.google.com/forum/#!forum/apache-ultimate-bad-bot-blocker or simply send a blank email to [email protected] to subscribe. Please make sure you are subscribed to notifications to be notified when the blocker is updated and also to be notified when any important or mission critical changes take place.