Skip to content

Instantly share code, notes, and snippets.

@bhwebworks
Last active September 27, 2024 17:13
Show Gist options
  • Save bhwebworks/5a424f8cf50b1de27bec9835411bfb1a to your computer and use it in GitHub Desktop.
Save bhwebworks/5a424f8cf50b1de27bec9835411bfb1a to your computer and use it in GitHub Desktop.
Add this to .htaccess to block access to the WordPress default registration form
#Block spam registrations (wp-login.php?action=register)
RewriteEngine On
RewriteCond %{THE_REQUEST} ^.*(wp-login.php\?action=register).* [NC]
RewriteRule ^(.*)$ - [F,L]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment