Created
June 8, 2021 05:52
-
-
Save stefanolaru/e282805f8a3d027e18964810eea050be to your computer and use it in GitHub Desktop.
Block bots scanning for WordPress URLs in a LAMP env
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
# block WP requests | |
RewriteCond %{THE_REQUEST} /(wp-content|wp-admin|wp-includes|wp-login) [NC] | |
RewriteRule ^(.*)$ - [F,L] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment