Skip to content

Instantly share code, notes, and snippets.

@BenceSzalai
Created December 10, 2023 10:54
Show Gist options
  • Save BenceSzalai/f241f82494f34a028abaaf8c375f7d3d to your computer and use it in GitHub Desktop.
Save BenceSzalai/f241f82494f34a028abaaf8c375f7d3d to your computer and use it in GitHub Desktop.
Block author scan on WordPress
# Block author scans
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{QUERY_STRING} (author=\d+) [NC]
RewriteRule .* - [F]
</IfModule>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment