Created
October 17, 2019 17:57
-
-
Save LEXASOFT/a3aec384291d4a2753d22d3fe6584913 to your computer and use it in GitHub Desktop.
Block bad bots in Nginx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SetEnvIfNoCase User-Agent "Ahrefs" bad_bot | |
<Limit GET POST HEAD> | |
Order Allow,Deny | |
Allow from all | |
Deny from env=bad_bot | |
</Limit> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment