In this guide: How to change the WordPress login URL: why bots attack login pages, changing the URL with a plugin, limiting login attempts, adding 2FA, and recovery steps.
A standard WordPress installation normally exposes its login form at yoursite.com/wp-login.php (and /wp-admin/ redirects there). Bots know it too. They constantly try username and password combinations against it — wasting server resources and filling your logs.
Changing the login URL can reduce some routine noise, but it also introduces compatibility and recovery considerations. It does not make the new path a secret authentication factor.
Changing the login URL is security through obscurity — it’s not a replacement for strong passwords or 2FA, and it may reduce some unsophisticated automated requests; the result depends on the site and attacker behavior. Combine it with the other steps below.
Using a plugin (easiest)
Options include WPS Hide Login (lightweight and focused) or security plugins like Solid Security and All-In-One Security that include a “hide login” feature.
With WPS Hide Login:
/team-access (avoid obvious choices like /login or /admin)./wp-login.php or /wp-admin/ while logged out (often a 404 page).Things to check:
Limit how many failed logins are allowed before temporarily blocking an IP:
Settings should follow actual usage, supported controls and lockout risk; these are examples to evaluate, not universal defaults:
Block username enumeration: attackers can sometimes discover usernames via author archives or the REST API. Many security plugins can prevent this, and using display names different from usernames helps.
Two-factor authentication is the most effective protection against stolen or guessed passwords.
Some plugins and hosts now support passkeys, which are resistant to phishing and very convenient. See Two-Factor Authentication Apps Compared.
Test everything:
/wp-login.php and /wp-admin/ no longer show the login form to logged-out visitors.If you forget the new URL or get locked out:
/wp-content/plugins/.wps-hide-login → wps-hide-login-disabled). This deactivates it./wp-login.php.If you’re locked out by a login limiter, wait for the lockout to expire, follow the configured recovery process with the authorized administrator; do not bypass a protective restriction without understanding why it occurred.
For the complete picture, see WordPress Security: The Complete 2026 Checklist.
Further reading: official WordPress documentation
Identify the observed problem before adding a plugin. A high count of failed requests, a confirmed stolen account and a slow server are different issues. Moving a form can change where some automated requests arrive, but it does not repair a compromised password or a vulnerable component. Record the symptom and the evidence that supports the proposed change rather than assuming every login failure requires a hidden path.
For a small website, the best next step may be improving authentication, reviewing administrator access or tuning a supported rate control. The website security review helps separate those decisions. Treat the login URL as one routing choice within the access design, not as a complete security strategy or proof that the site’s other entry points are protected.
List the people and integrations that sign in: administrators, editors, customers, members and support staff. Note custom forms, password resets, single sign-on, mobile applications and any management service. A plugin that changes the standard form may interact differently with each path. Do not assume that hiding one endpoint removes every authentication route or that all third-party products will automatically discover the replacement.
Prepare a short acceptance checklist before changing anything. Include a permitted test account for each important role and a clear expected result. If a store uses a customer account page, test that journey separately from the administrator form. Keep testing within an approved environment and avoid using a real customer’s credentials. The checklist should reflect the actual business rather than a generic demonstration on a blank installation.
Read the official WPS Hide Login listing and FAQ if that is the product you plan to use. Confirm current compatibility, settings, recovery instructions and known constraints. The plugin’s approach should not be confused with manually renaming WordPress core files. Do not edit a core login file or copy rewrite rules from another product just because both tutorials describe a hidden form.
Use one maintained, appropriate approach rather than several plugins competing to control the same route. Check whether an existing security or membership tool already manages the login URL. Document the installed version and owner of the configuration. A future administrator should be able to identify which component controls the behavior without guessing through a stack of overlapping settings pages.
Confirm that the responsible administrator has a trusted hosting or SFTP route and understands the plugin’s documented recovery method. Do not discover this requirement after logging out. Protect those credentials and their recovery mailbox separately. A business should retain control of its own access rather than depending on the developer’s personal device or an undocumented bookmark.
Use a staging copy where practical and establish how the change can be reversed. The staging guide and automatic backup workflow support that preparation. Backups are useful for broader recovery, but reverting a whole production database may be unnecessary and harmful for a simple routing problem. Prefer the narrow supported recovery action when appropriate.
Use a path that does not conflict with an existing page, membership route or application endpoint. Save it through the supported interface and record the actual resulting address. Do not publish a screenshot containing sensitive recovery information. The path may become known through ordinary use, links or integrations, so keep normal authentication strong even if the route is not advertised publicly.
Give authorized staff the updated address through the established access process. Explain when the change takes effect, who handles problems and how to report a failed sign-in. Do not send passwords with the new login URL in a mass email. A team needs an accurate bookmark and a recovery owner, not a promise that nobody outside the organization can ever discover the path.
Authentication pages and personalized responses should follow the cache provider’s documented exclusions. A cached redirect or stale page can make a correct configuration appear broken. Review the relevant layers, including the WordPress cache, host cache and proxy, rather than repeatedly changing the path. Keep any cache adjustment specific to the affected route and response type.
Test a fresh permitted session and verify the expected behavior for logged-out and logged-in users. Do not interpret a response code alone as evidence that the entire authentication process is safe. Confirm the form submission, session creation and intended destination. The WordPress update workflow provides a useful pattern for recording changes and checking business journeys after a configuration adjustment.
Unique credentials, appropriate multifactor authentication and least-privilege roles remain necessary after moving a form. Prefer phishing-resistant methods where supported and practical, with a documented recovery process. A user can still be tricked into revealing a password or approving an unexpected prompt. Do not use the new path as a substitute for checking the real service and the requested action.
Use the authentication methods guide and the WordPress role guide to review the surrounding controls. Limit administrator access to actual responsibilities. A hidden form does not reduce the permissions of an account that already has excessive access, and it does not remove an active session or a separate application credential.
Choose controls based on supported features and actual request patterns. Shared offices, mobile networks and automated management tools can make a simplistic per-IP threshold disruptive. A distributed attack may also avoid a threshold at each address. Test legitimate access and maintain an authorized recovery process rather than applying an arbitrary number from a tutorial to every website.
A WAF or edge rate control can act at a different point in the request path from an application plugin. Record which layer produced a block before changing settings. Avoid disabling all security controls when one user reports a login URL problem. Investigate the relevant event and make the narrowest justified adjustment, then verify that normal access and intended protections still work.
Test the reset process with an authorized test account and a controlled mailbox. Confirm that the generated link leads to the intended site and that the permitted reset can complete. Do not expose a live reset token in a public screenshot or scanner submission. Reset delivery, link routing and account ownership are separate parts of the process and should be reviewed separately.
If messages do not arrive, inspect the mail workflow using the WordPress SMTP guide rather than assuming the hidden form is responsible. If a customer-facing account page fails, review the membership or commerce integration with its maintainer. Record exactly which journey failed and under which account type. This makes troubleshooting more useful than reporting simply that the login URL is broken.
Include the access route, controlling plugin and recovery owner in maintenance documentation. Review the configuration after a migration, security-plugin replacement or authentication change. Re-run the important checks rather than assuming a successful initial setup remains valid forever. Keep the documentation accessible to authorized staff even when the WordPress dashboard itself is unavailable.
When a developer leaves, transfer ownership of the access records and review their separate accounts and tokens. Do not repeatedly change the login URL as a substitute for proper offboarding. The credential handover process explains why access removal and secret rotation may need separate actions. Preserve the website’s business continuity while reducing unnecessary privileges.
A practical record can list the old and new routes, responsible administrator, plugin version, rollback method and checks for editor access, customer access and password reset. Add the time, expected outcome and observed result for each check. Keep private tokens and passwords out of the record. Mark a journey unverified if it was not tested rather than describing the whole site as fully validated.
Suppose an editor can open the new form but the reset email points to an unexpected route. Pause the rollout and investigate the integration before announcing completion. Check the plugin’s documented behavior and the mail-generating component. A narrow correction may solve the issue, while a full database restore could discard unrelated work. This example illustrates a decision process, not a reported test on your website.
It does not establish that the database is clean, every plugin is current or the hosting account is uncompromised. It does not protect an API token that grants access through another route. It may reduce some automated requests while leaving other activity unchanged. Measure the actual result using defined logs and time windows instead of converting a lower event count into a claim that all attacks were stopped.
If unauthorized access is suspected, follow the incident recovery process. Moving a form after compromise does not remove malicious users, jobs or files. Keep prevention, detection and recovery as separate responsibilities so a simple interface change is not mistaken for a completed incident response.
Promotional recommendation: consider KAWEDMA’s website development and hosting services if you need help assessing authentication compatibility or maintaining a documented access workflow. Confirm the scope, recovery responsibility and supported integrations before commissioning work. This recommendation does not mean that a particular hidden-form plugin is included in every service.
Affiliate disclosure: Hostreta may earn a commission if you purchase through this link. When a separate hosting assessment supports a change, compare hosting.com’s managed WordPress offering. Verify current support and security responsibilities. Buying a different plan is not required merely to change the login URL, and it does not replace account-level authentication controls.
A well-maintained site may keep the standard form and use appropriate authentication, monitored rate controls and a clear recovery process. A custom route is not mandatory for every installation. If the current integrations depend on the standard behavior and the proposed change adds more operational risk than value, document that decision instead of treating a hidden page as a universal requirement.
Review actual evidence after any approved change: legitimate users can complete their work, important integrations remain functional and relevant unwanted requests are handled as intended. Avoid claiming that fewer visible failed logins means the organization is impossible to compromise. Keep the administrative account inventory and software-maintenance process current. Those responsibilities continue regardless of which login URL is used.
Most importantly, do not make the change during an active business-critical event without the necessary support and rollback access. A small routing adjustment can still interrupt real work when its dependencies have not been reviewed.
We may earn a commission on purchases made through these links, at no extra cost to you.
Don’t miss the chance to participate in the biggest giveaway of this year.