Does Hiding the WordPress Login Page Make My Site More Secure?
Yes. Bots attack /wp-login.php on every WordPress site, and when WP Ghost moves the login page to a custom URL, they get a 404 and move on. It’s one layer, though: add the other path changes, the firewall, brute force protection and 2FA to cover the attacks that don’t go through the login page.
Why hiding the login path works
Every WordPress site uses /wp-login.php for authentication by default. Bots know this and target it relentlessly. A brute force attack works by trying thousands of username and password combinations against the login form. Some bots also use XML-RPC’s system.multicall method to test hundreds of passwords in a single request, which is even faster than hitting the login page directly.
When WP Ghost moves the login page to a custom URL (like /my-secret-entry) and you switch on Hide “wp-login.php”, the default /wp-login.php returns a 404 or redirects to a page you choose. Bots scanning for the default path find nothing and skip your site. They can’t brute force a login form they can’t find, so this stops most automated login attacks.
Why the login path is not enough on its own
Hiding the login path stops brute force attacks at the login form, but bots attack WordPress through many other entry points. Plugin vulnerabilities are exploited through direct path access (/wp-content/plugins/vulnerable-plugin/exploit.php). SQL injection is attempted through admin-ajax.php. Username enumeration happens through the REST API (/wp-json/wp/v2/users) and author archives. Script injection targets theme files and wp-includes. None of these attacks go through the login page, so a hidden login path does not stop them.
That’s why WP Ghost goes beyond hiding the login. It changes the other WordPress paths too, not only the login. The 2026 Ghost Firewall blocks injection patterns. Brute force protection adds reCAPTCHA to the login, lost password, registration, comment and WooCommerce forms. 2FA with passkeys protects the login even if someone finds your custom URL, and security headers protect the browser side. Each layer covers a different kind of attack.
How WP Ghost protects the login
WP Ghost gives you three layers of login protection that work together.
Custom login path. Change /wp-login.php to any URL you choose. The default path returns a 404 error or redirects to a page you specify. Configure this at WP Ghost > Change Paths > Login Security. For the full login path setup, see the Change Login Path tutorial.
Brute force protection. Even on the custom login URL, WP Ghost limits login attempts and adds a CAPTCHA. Choose Math reCAPTCHA (no API keys needed), Google reCAPTCHA V2 or Google reCAPTCHA V3. Set the maximum failed attempts, the lockout time and the error messages at WP Ghost > Brute Force > Settings. See the Brute Force Protection tutorial.
Two-factor authentication. If an attacker finds your custom login URL and guesses the password, 2FA stops them at the last step. WP Ghost supports authenticator app codes, email codes and passkeys (Face ID, Touch ID, Windows Hello, hardware security keys). A passkey works only on your own site, so a phishing page can’t use it. See the Two-Factor Authentication tutorial.
Frequently asked questions
Will hiding the login page affect my members or customers who need to log in?
No. You share the custom login URL with your members. They log in at the new URL exactly as they would at the default one. If you use WooCommerce, the My Account login form works independently from wp-login.php, so WooCommerce customers are not affected. You can also customize the lost password, registration, and activation paths individually.
What if I forget my custom login URL?
WP Ghost gives you a Safe URL that skips its path changes for one request. Save it when you set up WP Ghost; you find it in WP Ghost > Advanced > Rollback Settings. If you forget the login URL, open the Safe URL to reach the default login form. You can also disable WP Ghost over FTP. See the Emergency Disable tutorial.
Is hiding the login a free feature?
Yes. Changing and hiding the login path, brute force protection with reCAPTCHA, and 2FA with passkeys are all included in the free version of WP Ghost.
Does WP Ghost modify WordPress core files?
No. The login path change uses server rewrite rules and WordPress filters. The actual wp-login.php file is not renamed, moved, or modified. Deactivating WP Ghost restores the default login path instantly.