Every WordPress site uses the same login address: yoursite.com/wp-login.php. That’s exactly where bots go to guess passwords. With the free Ultimate Dashboard plugin you can move the login page to an address of your choice, like yoursite.com/login. It’s easier to remember for your clients, and the bots knocking on wp-login.php find nothing.
Set a custom login URL

- Go to Ultimate Dash… → Login Redirect in your WordPress admin area.
- In the Change Login URL box, enter your new address in the New Login URL field, for example
login. - Click Save Changes.
From now on you log in at yoursite.com/login, and wp-login.php can’t be reached anymore. Bookmark the new address and share it with everyone who logs in.
wp-admin or wp-json) and the address of an existing page or post can’t be used as login URL.Hide wp-admin as well
Logged-out visitors who open /wp-admin/ would normally be sent to the login page, which gives away your new login URL. Since version 4.0, Ultimate Dashboard sends them to a “not found” page instead. You can also choose your own page, see how to redirect wp-admin.
Forgot your new login URL?
Connect to your site via FTP or your host’s file manager and rename the folder /wp-content/plugins/ultimate-dashboard/ (for example to ultimate-dashboard-off). That turns the plugin off and wp-login.php works again. Log in, rename the folder back and activate the plugin.
Locked out for another reason? Our guide on how to access the WordPress dashboard covers the most common problems.
