Why change the WordPress login URL?
By default the WordPress login and admin pages are located at /wp-login.php
and /wp-admin
. Bots and attackers know these paths, making brute‑force attacks easier. Changing the login URL to a custom slug reduces automated attacks and hides your login page from curious visitors.
Introducing WPS Hide Login
WPS Hide Login is a lightweight plugin that lets you easily and safely change the URL of the login form page to anything you want. It doesn’t touch core files or rewrite rules; it simply intercepts requests and redirects users to your custom login page. Deactivating the plugin restores the default /wp-login.php
path.
Step‑by‑Step: Set a custom login URL
- Install the plugin: In WordPress admin go to Plugins → Add New and search for “WPS Hide Login.” Click Install Now and then Activate.
- Open the settings: Go to Settings → WPS Hide Login (or Settings → General in some versions). You’ll see a field labelled Login url.
- Enter a new slug: Type your custom login URL (e.g.
mysite-login
). The full login address will behttps://yourdomain.com/mysite-login
. You can also set a redirect URL for blocked requests. - Save changes: Click Save Changes. WordPress will now use the new URL for its login form. Make sure to bookmark it because
/wp-login.php
will return a “Not Found” error. - Test the new login URL: Open a new browser window and visit your custom slug (e.g.
/mysite-login
) to confirm that the login page appears. Log in as usual. - Revert if necessary: To revert to the default login path, deactivate the plugin from the Plugins list. Your site will again use
/wp-login.php
.
Tips for using a custom login URL
- Choose a unique slug that’s hard to guess but easy for you to remember.
- If you use a caching plugin, exclude the custom login URL from caching.
- Bookmark the new URL or store it in a password manager so you don’t lose access.
- Consider combining WPS Hide Login with other security measures like two‑factor authentication and IP blocking for layered protection.
Conclusion
Hiding the default WordPress login URL is a quick way to reduce automated attacks. The free WPS Hide Login plugin makes it simple to set a custom login slug without editing core files. Follow the steps above to secure your login page in minutes.