My client was noticing that his site was extremely slow yesterday morning so he contacted his WiredTree host, who suggested that we add the following code in the .htaccess file:
Options +FollowSymlinks RewriteBase / SetEnvIfNoCase User-Agent "^SemrushBot" bad_user SetEnvIfNoCase User-Agent "^DotBot" bad_user SetEnvIfNoCase User-Agent "^AhrefsBot" bad_user Deny from env=bad_user
Options +FollowSymlinks is already in the file and
RewriteBase / is currently commented out and I'm not sure if I should uncomment it, not knowing what affect that would have. Then I would add the 3 set commands and the deny command below it. Is it OK to uncomment this line and add the extra commands?