Skip to content

WordPress login URL: find it, hide it, or recover it

Find the WordPress login page on any site, get back in when you forgot a custom login URL set by WPS Hide Login or Kadence Security, and decide whether hiding the login is worth it. You will also see which controls actually stop password-guessing bots.

Site owners and admins usually land here because a WordPress login page has gone missing, or because they are deciding whether to hide it. On a standard site you log in at /wp-login.php, and /wp-admin/ sends you there when you are signed out. Things get confusing when a plugin has renamed that address and the usual URL now shows “page not found”. Renaming the login is optional. It quiets bot traffic in your logs, but it does not stop password guessing, because XML-RPC (the older remote-publishing interface at /xmlrpc.php) still accepts passwords. Two-factor login (a one-time code from your phone after the password) and rate limiting (capping how many tries one address gets per minute) do the real protective work.

What you’ll accomplish

  • Find the login address of any WordPress site, including one installed in a subfolder.
  • Tell within a minute whether a plugin has renamed the login, and which one.
  • Recover a forgotten custom login URL from WPS Hide Login or Kadence Security, with or without SSH (a remote terminal on the server).
  • Decide, with clear criteria, whether to keep, add or remove a login rename.
  • Close the doors a rename leaves open: XML-RPC and the user list in the REST API.

Prerequisites

  • The site’s address, and an administrator account you know the password for.
  • For the fastest recovery: SSH access and WP-CLI, the WordPress command-line tool. On cPanel, the Terminal icon gives you a shell, and many hosts include WP-CLI as wp.
  • Without SSH: cPanel File Manager, an SFTP client, or phpMyAdmin (cPanel’s database browser) is enough.
  • The plugin details below match WPS Hide Login 1.9.x and Kadence Security 10.x. Kadence Security was called Solid Security, and iThemes Security before that. Its folder is still better-wp-security, and your dashboard may show an older name.

How it works

WordPress handles logins in one file, wp-login.php, at the root of the install. If WordPress lives in a subfolder such as /blog/, the login is at /blog/wp-login.php. When you visit /wp-admin/ while signed out, WordPress redirects you to the login form and remembers where you were headed.

WordPress also adds a few shortcuts. When pretty permalinks (readable addresses like /about/ instead of ?p=12) are on and nothing else uses the address, /login sends you to the login form. /admin and /dashboard send you to the dashboard. That is why example.com/login often works even though no page by that name exists. Both rename plugins below switch these shortcuts off.

Bots know all of this too. Password-guessing scripts go straight to /wp-login.php and /xmlrpc.php without loading your home page first. They also call the REST API (the JSON interface under /wp-json/) at /wp-json/wp/v2/users. Without a login, that endpoint lists every user who has published content, and each entry’s slug (the URL-friendly name) is often close to the login name.

A login rename plugin changes how WordPress answers the first two of those requests and nothing else. WPS Hide Login serves your theme’s not-found page for /wp-login.php. It also redirects signed-out visitors of /wp-admin/ to /404/. The real form moves to a slug (the last part of the address) that you choose, and the plugin falls back to login when you never set one. Kadence Security’s Hide Backend feature works a little differently. It redirects signed-out requests for both /wp-login.php and /wp-admin/ to /not_found, or shows a 403 error if you turned its redirection off. Its own slug defaults to wplogin, and visiting it forwards you to the real form with a one-time token. Neither plugin changes XML-RPC or the REST API. Kadence skips API requests on purpose, and WPS Hide Login does not handle them at all.

Four bot requests and what each gets after a login rename plugin is active. POST to wp-login.php ends on a not-found page and GET to wp-admin is redirected to the 404 page, both marked with a green check. POST to xmlrpc.php still checks passwords, marked with a red cross because the rename never touches it. GET to wp-json/wp/v2/users still lists author usernames, marked with an amber warning.

One more detail matters for server load. The hidden /wp-login.php still starts PHP and loads WordPress to answer with that not-found page or redirect. It skips the password check, so each bot hit costs less, but it is not free. Only a block at the web server, or at a firewall in front of it, keeps those requests from reaching PHP.

Should you rename it?

Your situationRename?Why
Logs full of wp-login.php noise, two-factor (2FA) already onOptionalQuieter logs make real attacks easier to spot
No two-factor login, weak or shared passwordsFix those firstA rename does not stop a bot that finds the form or uses XML-RPC
Several editors, an agency or a support desk logs inUsually noEvery person and tool needs the custom address, and lockouts follow
Uptime monitors or scripts call /wp-login.phpNo, or update themThey will start reporting the site as down
Server load from login floodsRename helps a littleBlocking at the web server, a firewall or a CDN (a network of caching servers in front of your site) helps far more

The fair summary is that a rename hides the front door from lazy scripts. It is housekeeping, not protection. Keep it if it already works for your team, and never count it as your login security.

Step-by-step

  1. Check the default login address. Ask the server for the headers of the standard login page:

    curl -sI https://example.com/wp-login.php | head -n 1

    Example output on a site with the default login:

    HTTP/2 200

    A 200 means the form is at /wp-login.php and nothing renamed it. A 404, or a 302 redirect, means a plugin probably hid it, so continue to step 2. A 403 usually means a firewall rule is blocking you. On cPanel that is often ModSecurity, the web application firewall (WAF) many servers run. Kadence also returns a 403 when its redirection is turned off, with the message “This has been disabled”.

  2. See where /wp-admin/ sends you. This shows which plugin is in charge:

    curl -sI https://example.com/wp-admin/ | grep -iE '^(HTTP|location)'

    Example output with no rename:

    HTTP/2 302
    location: https://example.com/wp-login.php?redirect_to=https%3A%2F%2Fexample.com%2Fwp-admin%2F&reauth=1

    Example output with WPS Hide Login at its default setting:

    HTTP/2 302
    location: https://example.com/404/

    Example output with Kadence Security’s Hide Backend at its default setting:

    HTTP/2 302
    location: https://example.com/not_found

    A redirect to /404/ points to WPS Hide Login, so go to step 3. A redirect to /not_found points to Kadence Security, so go to step 4. Either plugin can be set to redirect somewhere else, so for a redirect to any other page, try both steps.

  3. Read the WPS Hide Login slug with WP-CLI. Run this over SSH from the folder that contains wp-config.php:

    wp option get whl_page

    Example output:

    team-entrance

    Your login page is now https://example.com/team-entrance/. If WP-CLI replies Error: Could not get 'whl_page' option. Does it exist?, nobody ever saved a custom slug, and the plugin uses /login/. On a multisite network where the plugin is network-activated, also check the network-wide default with wp site option get whl_page.

  4. Read the Kadence Security slug with WP-CLI. The plugin keeps its settings in one option called itsec-storage:

    wp option pluck itsec-storage hide-backend slug

    Example output:

    wplogin

    Your login page is now https://example.com/wplogin. On a multisite network, read it with wp site option pluck itsec-storage hide-backend slug instead. If WP-CLI reports an error, nobody saved a custom slug, and the default wplogin applies. No shell? If Kadence’s login-change notification was on, it emailed the new address with the subject “WordPress Login Address Changed”, so search your mailbox for that.

  5. Recover without SSH. Pick the route that matches your plugin. Each one gets you back to the standard /wp-login.php:

    • WPS Hide Login, File Manager or SFTP: rename the folder wp-content/plugins/wps-hide-login to wps-hide-login.off. WordPress can no longer load the plugin, so /wp-login.php answers again.
    • WPS Hide Login, phpMyAdmin: open the site’s database and run SELECT option_value FROM wp_options WHERE option_name = 'whl_page';. Replace wp_ if your table prefix differs. You can find it in wp-config.php as $table_prefix.
    • Kadence Security, File Manager: add define( 'ITSEC_DISABLE_MODULES', true ); to wp-config.php above the line that reads “That’s all, stop editing”. This switches off the plugin’s features, Hide Backend included, while you log in.

    Once you are back in the dashboard, rename the folder back or delete the ITSEC_DISABLE_MODULES line. Then set a slug your team will remember.

  6. Deactivate the rename for good, if the table above said so. Over SSH:

    wp plugin deactivate wps-hide-login

    Expected output:

    Plugin 'wps-hide-login' deactivated.
    Success: Deactivated 1 of 1 plugins.

    For Kadence, switch off Hide Backend in the plugin’s settings instead of removing the whole plugin. Its other features, such as two-factor login, are worth keeping.

  7. Close XML-RPC if you don’t use it. XML-RPC is the endpoint the WordPress mobile app, older Jetpack features and some publishing tools use. One XML-RPC request can bundle hundreds of password guesses through its system.multicall method, so it deserves the same care as the login form. Check whether it answers:

    curl -s -X POST https://example.com/xmlrpc.php -d '<methodCall><methodName>system.listMethods</methodName></methodCall>' | head -c 200

    If you see <?xml version="1.0" followed by <methodResponse>, it is open. If nothing on your site needs it, block it at the web server. Rate-limiting wp-login, xmlrpc and the REST API covers the blocking and limiting rules in depth.

  8. Look at what the REST API says about your users.

    curl -s https://example.com/wp-json/wp/v2/users | grep -o '"slug":"[^"]*"'

    Example output:

    "slug":"maria-admin"
    "slug":"editorial"

    Each line is a likely username a bot can try passwords against. You can restrict this endpoint to logged-in users, but the stronger answer is two-factor login on every account that can publish. Then a guessed username and password are not enough.

  9. Put the real controls in place. These are what stop a break-in.

    • Two-factor login for administrators and editors. A stolen or guessed password alone no longer opens the dashboard.
    • Rate limiting on /wp-login.php and /xmlrpc.php at a CDN or the web server, so floods stop before PHP runs.
    • On cPanel, the right layer for each tool. cPHulk, cPanel’s brute-force blocker, protects cPanel, WHM, email, FTP and SSH logins. It does not watch the WordPress login form. Web-layer tools see WordPress logins, such as ModSecurity rules or Imunify360 (a commercial security suite many cPanel hosts install). Protecting wp-login.php from brute-force attacks on cPanel walks through that layering.

Validate it works

Run these four checks after any change, and keep the results with your notes:

curl -sI https://example.com/wp-login.php | head -n 1
curl -sI https://example.com/your-login-slug/ | head -n 1
curl -s -o /dev/null -w '%{http_code}\n' -X POST https://example.com/xmlrpc.php -d '<methodCall><methodName>system.listMethods</methodName></methodCall>'
curl -s -o /dev/null -w '%{http_code}\n' https://example.com/wp-json/wp/v2/users

What you want to see:

  • With WPS Hide Login active, line 1 returns 404 and line 2 returns 200. With Kadence, both lines return 302: line 1 points to /not_found, and line 2 forwards to wp-login.php with a token. Without a rename, line 1 returns 200 and you can skip line 2.
  • Line 3 returns 403 or 404 once XML-RPC is blocked. A 200 means it still answers. A 405 means the request did not arrive as a POST, so check that -X POST was copied.
  • Line 4 returns 401 or 403 if you restricted the user list to logged-in users, depending on the plugin or rule you used. A 200 means the list is public.

Then log in through a private browser window with your real account. If two-factor login is on, you should be asked for the second code before the dashboard loads.

On cPanel you can also count bot hits from the raw access logs. The SSL log for a domain usually sits in ~/access-logs/:

grep -c 'POST /wp-login.php' ~/access-logs/example.com-ssl_log
grep -c 'POST /xmlrpc.php' ~/access-logs/example.com-ssl_log

Each command prints one number, the count of matching requests in the current log. If the first number drops after a rename and the second stays high, bots have moved to XML-RPC, and step 7 is your next job.

Troubleshooting

The custom login URL also shows “page not found”. A page cache or CDN may have stored the not-found page for that address before the rename existed. Exclude the login slug from caching, purge it, and try again in a private window. If it still fails, a page or post may use the same slug. Pick a different slug.

You log in and land back on the login form. That is usually a cookie or redirect loop, not the rename itself. Clear the site’s cookies, then check that the WordPress Address and Site Address settings both use the same https:// host.

The login form returns 403 Forbidden. A firewall rule is blocking the form post. On cPanel this is often ModSecurity, and the server’s ModSecurity log names the rule ID that fired. Your host can exempt that one rule for the login path.

The mobile app, Jetpack or a publishing tool stopped working. Those use XML-RPC. If you blocked it, allow only the addresses those services connect from, or switch that tool to the REST API with application passwords (separate per-tool passwords you create in your user profile).

Password reset emails still show the old URL. With WPS Hide Login active, new reset emails use the custom address. An old email from before the change will still point at /wp-login.php. Request a fresh reset.

When this is the wrong approach

Skip the rename when many people or tools log in. Agencies, freelancers, support desks and uptime monitors all hard-code /wp-login.php. Every one of them becomes a lockout or a false alarm.

Don’t rely on it for a site that takes payments or stores customer data. Anyone who receives a login link, sees a screenshot of the address bar, or reads a cached copy of a page now knows the slug. Kadence Security says as much in its own help text: plugins, themes and core can still print the login link.

Skip it as well when your real problem is load. If login floods are slowing the site, block them before PHP at a CDN or the web server. A rename still lets every request start WordPress.

WordPress’s own page on brute-force attacks agrees with this order. It recommends strong passwords, rate limiting at the edge or web server, and restricting XML-RPC. It treats a hidden login URL as noise reduction only. The WP-CLI option get reference explains the command used in step 3.

Running WordPress that earns real money deserves an operator — Stack Harbor runs that stack under Enterprise WordPress; book an infrastructure consult.