[Closed] How to completely disable login,register and password urls?
these options are set NO in Dashboard > Forums > Settings > Features Tab
But I enter ?wpforo=signin or signup or password link showing the login, register or lost password page. How to completely disable login,register and password urls?
The disabling options are designed to remove all menus but that page templates are still exist, so they are loaded when you call the URL. I'm sorry but there is no way to stop loading it.
You can disable forum registration using the according option (Option name: Enable User Registration) in the same admin page. thus the forum registration page will not allow to register.
Also make sure these options are disabled:
- Replace Registration Page URL to Forum Registration Page URL
- Replace Login Page URL to Forum Login Page URL
- Replace Reset Password Page URL to Forum Reset Password Page URL
And remove the Login/Register menus in Dashboard > Appearance > Menus > wpForo Navigation.
Cant do it add any code to functions.php ?
Nobody knows the URL of login page. the register page can be disabled as I explained above. So you don't need other things to do. There is no code to add.
Just make sure there is no menu or other links to login page, that's it. How would access people to that page if you don;t have any link or menu? And why they should spend time for this. The login form is unnecessary thing for people who is not registered. The registration form will return error if you follow to may instruction above, so it's can bee disabled too.
You could also to a 301 redirect in your .htaccess file to ensure that a page can't be loaded.