Restrict login and registrations access
-
We don’t allow registrations or comments, simply use WordPress for posting articles. We didn’t want anyone trying to login or to register, so this mod rewrite did the trick
Options +FollowSymLinks RewriteEngine on # RewriteCond %{REMOTE_ADDR} !^your\.ip\.add\.ress$ RewriteRule ^(wp-login|wp-register)\.php?$ - [F]
Simply replace “your\.ip\.add\.ress” with your IP address, and then ONLY you can login.
It returns a 403 if anyone attempts to login or register. Add other files as needed.
Now to the request. It is already defined in WordPress that we have turned off new registrations. Simply use that config setting to return a 403, or similar if defined by the user.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Restrict login and registrations access’ is closed to new replies.