====== Block bad bots in Apache on DirectAdmin ====== Just add belove text to file **///etc/httpd/conf/extra/httpd-includes.conf//** : ### BAD BOTS BLOCK SetEnvIfNoCase User-Agent "AhrefsBot" bad_bots SetEnvIfNoCase User-Agent "Dotbot" bad_bots SetEnvIfNoCase User-Agent "MJ12bot" bad_bots SetEnvIfNoCase User-Agent "SemrushBot" bad_bots #SetEnvIfNoCase User-Agent "Yandex" bad_bots #SetEnvIfNoCase User-Agent "YandexBot" bad_bots Order Allow,Deny Deny from env=bad_bots Allow from all ###