Setting Up Your Custom Login URL
Changing your login URL is one of the most effective single steps you can take against bot-driven brute force attacks.
Why Change Your Login URL?
By default, every WordPress site is accessible at /wp-login.php and /wp-admin. Automated bots scan the entire internet for these URLs and attempt to break in. Hiding your login behind a custom URL means bots cannot find it — you cannot brute-force a door you cannot find.
How to Set Your Custom Login URL
- Go to Tools → WP 1 Click LockDown.
- In the "Login URL Masking & Brute-Force Protection" section, make sure "Enable custom login URL" is checked.
- Enter your desired login slug in the "Custom login slug" field. Use lowercase letters and hyphens only (e.g. my-login or admin-access).
- Set the "Redirect visitors who hit /wp-login.php to" field — this is where bots and lost visitors end up. Your homepage is a safe default.
- Click Save All Settings.
- Your new login URL is: https://yoursite.com/your-slug/
Write down or bookmark your new login URL before saving. If you forget it, visiting /wp-admin while logged out will redirect you to the homepage.
Choosing a Good Login Slug
- Avoid obvious slugs like: admin, login, wp-login, signin, dashboard
- Use something memorable but not guessable: team-portal, staff-access, manage-site
- Do not use your domain name or business name as the slug
- Lowercase letters and hyphens only — no spaces or special characters
What Happens to /wp-login.php?
Once the custom URL is active, any request to /wp-login.php or /wp-admin (when not logged in) is silently redirected to the URL you specified in the redirect field. The login page itself still works — it is just moved to your custom URL.
How to Change or Disable the Custom Login URL
- Log in at your current custom login URL.
- Go to Tools → WP 1 Click LockDown → Login URL Masking section.
- Either update the slug to a new value, or uncheck "Enable custom login URL" to revert to /wp-login.php.
- Click Save All Settings.
If you are locked out because you forgot your login URL, see our troubleshooting guide: "Locked Out of WordPress After Changing Login URL".
Was this article helpful?
Need more help? Contact our support team →