How to Change the WordPress Login URL (and Stop Bot Attacks)

How to Change the WordPress Login URL (and Stop Bot Attacks)

Every WordPress site has the same front door: /wp-login.php, with /wp-admin redirecting to it. Bots know this, so they hammer that address on millions of sites every day. Changing your WordPress login URL to a custom address, such as /team-access, takes that door off the map for automated scripts, cuts junk traffic to your login page and makes your security logs far easier to read.

In this guide, you’ll learn what changing the login URL does and doesn’t protect against, how to set a custom login URL with a plugin, how to avoid locking yourself out and how to recover if you do.

Why Change the Default WordPress Login URL?

The default login address is identical on almost every WordPress installation. That makes it the first place automated attacks go. Moving it gives you three practical benefits:

  • Fewer automated login attempts. Most bots request /wp-login.php directly. If that address returns a “page not found” response, the script moves on.
  • Lower server load. Every login attempt runs PHP and touches the database. Blocking bots before they reach the form saves resources, especially on shared hosting.
  • Cleaner logs. With bot noise gone, real warning signs are easier to spot.

What a Custom Login URL Does Not Do

Changing the URL is noise reduction, not a replacement for real security. A determined attacker who targets your site specifically may still find the new address. Treat it as one layer alongside strong passwords, two-factor authentication and a limit on failed login attempts.

How to Change Your WordPress Login URL With a Plugin

WordPress has no setting for this, and you should never rename or edit core files such as wp-login.php yourself. Updates would overwrite the change, and a mistake can break logins entirely. A plugin is the safe route.

Step 1: Install a Login URL Plugin

Custom Login URL Obfuscator from Simpli Plugin is a free plugin built for this. It intercepts requests to the default paths early in the WordPress loading process, hides wp-login.php and wp-admin behind a custom slug you choose, and returns a clean “page not found” response to anyone trying the old addresses.

  1. Download the plugin ZIP from its product page.
  2. Go to Plugins → Add New Plugin → Upload Plugin.
  3. Upload the file, click Install Now, then Activate Plugin.

Step 2: Choose a Login Slug

Pick something memorable for your team but hard to guess. Good and bad examples:

Slug Verdict Why
/login Avoid The first thing bots try after wp-login
/admin Avoid Equally predictable
/yourbrand-login Weak Easy to guess from your domain
/studio-door-482 Good Unique, memorable and not obvious

Step 3: Save the New URL Somewhere Safe

Before saving the setting, store the full new login address in your password manager and share it with everyone who needs to log in. This one habit prevents almost every lockout.

Step 4: Test It

  1. Open a private browser window and visit yourdomain.com/wp-login.php. You should see a “not found” page.
  2. Visit yourdomain.com/wp-admin while logged out. It should not redirect to the login form.
  3. Visit your new login URL and log in normally.

Running security across many client sites, or need custom login rules such as IP allow-lists or role-based access? Simpli Plugin’s team builds custom WordPress security tooling.

Talk to Our Developers →

Combine It With Other Login Protection

A hidden login URL works best as part of a layered setup:

  • Limit failed login attempts so anyone who does find the page gets locked out after a few wrong guesses.
  • Disable XML-RPC if you don’t use it, since bots can attempt logins through xmlrpc.php without touching your login page at all.
  • Use two-factor authentication for every administrator account.
  • Remove unused accounts and avoid usernames such as “admin.”

Things to Check After Changing the URL

  • Caching: exclude your new login URL from page caching, the same way wp-login.php is excluded by default.
  • Membership and WooCommerce logins: customer logins on the My Account page usually keep working because they don’t use wp-login.php. Test one anyway.
  • Password reset emails: request a reset and check that the link in the email works.
  • Bookmarks and team docs: update any saved links that point to the old address.

How to Recover if You Forget the Login URL

If you lose the new address and can’t log in:

  1. Connect to your site with your host’s File Manager or SFTP.
  2. Open wp-content/plugins.
  3. Rename the plugin’s folder, for example by adding -off to the end. WordPress will deactivate it.
  4. Log in at the normal /wp-login.php address.
  5. Rename the folder back, reactivate the plugin and note the login URL this time.

Common Problems and How to Fix Them

The Old Login Page Still Loads

A cached copy is being served. Purge your caching plugin, server cache and CDN, then test again in a private window.

The New URL Shows a 404

Your permalinks may need refreshing. Go to Settings → Permalinks and click Save Changes without changing anything, then try again.

Another Security Plugin Conflicts

Some security suites include their own login URL feature. Only use one at a time, or the two will fight over the same requests.

Frequently Asked Questions

Is changing the WordPress login URL safe?

Yes, when done with a maintained plugin rather than by editing core files. Keep the new address recorded so you can’t lock yourself out.

Does changing the login URL improve security?

It reduces automated attacks and server load. It doesn’t stop a targeted attacker on its own, so combine it with login limits, strong passwords and two-factor authentication.

Will it affect my visitors or SEO?

No. Visitors never use the admin login page, and search engines don’t index it.

Can I change it back later?

Yes. Deactivating the plugin restores the default /wp-login.php address immediately.

Take Your Login Page Off the Map

Changing your WordPress login URL is a quick, low-risk way to cut bot traffic and keep your logs clean. Choose an unpredictable slug, save it in your password manager, test it in a private window and pair it with login attempt limits.

Download Custom Login URL Obfuscator for free, and browse the full Simpli Plugin library. If you need a custom security setup, our developers can build it.

Request a Custom Plugin →