Last active
September 27, 2024 17:13
-
-
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
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 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