Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save stefanolaru/e282805f8a3d027e18964810eea050be to your computer and use it in GitHub Desktop.
Save stefanolaru/e282805f8a3d027e18964810eea050be to your computer and use it in GitHub Desktop.
Block bots scanning for WordPress URLs in a LAMP env
# 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