What Can I Do If I Can’t Login After Using WP Ghost?
This tutorial has moved to the new WP Ghost Knowledge Base where each feature is presented in detail.
Use the Safe URL to log in through the default login page, then fix or roll back the setting that locked you out. If you don’t have the Safe URL, disable WP Ghost through FTP or wp-config.php.
Prevention: Test before you save
After you change paths, WP Ghost shows your new login URL and your Safe URL and asks you to confirm the change. Keep that tab open and don’t log out. Open the new login URL in a second tab (a private window rules out caching) and check that the login page loads and accepts your password. If anything looks wrong, run Ghost Doctor (WP Ghost Premium 9.0.13 or later, WP Ghost Free 7.0.08 or later) on the same screen: press Start Diagnosis and it loads your site as a logged-out visitor, checks the new login path, the theme files, admin-ajax and the REST API, and repairs what broke. Then keep or undo the change.
The Safe URL is the default login URL with a secret parameter (yourdomain.com/wp-login.php?your-safe-param). It turns off the custom paths for that request so you can log in. Save it now: bookmark it, store it in a password manager, or write it down. This is your emergency key if you ever get locked out.
Recovery method 1: Use the Safe URL
Open your Safe URL, for example https://example.com/wp-login.php?YOUR_SAFE_PARAM. It turns off the custom paths for that request, so the default /wp-login.php page loads and you can log in. The next request without the parameter loads WP Ghost normally. No settings are changed.

Once logged in, open Ghost Doctor (WP Ghost Premium 9.0.13 or later, WP Ghost Free 7.0.08 or later) on the Level of Security page and press Start Diagnosis. It shows which path your server stopped serving and offers the repair, so you may not need a rollback. You can also adjust WP Ghost settings or turn off the feature that caused the conflict.
Recovery method 2: Pause for 5 minutes
If you can still reach the WordPress dashboard (just not the custom login page), go to Plugins > Installed Plugins, find WP Ghost, and click Pause for 5 minutes. This turns off WP Ghost for 5 minutes, giving you time to test, adjust settings or deactivate a conflicting plugin. WP Ghost turns back on after 5 minutes, or sooner with the Resume Security link.
Recovery method 3: Rollback to defaults
Use the Safe URL to access the admin panel, then go to WP Ghost > Change Paths and set the Level of Security to Default. Click Save. This removes all custom paths, disables all protection features, and returns WP Ghost to its initial state. From there you can start configuring again from scratch.
Recovery method 4: Emergency disable via FTP
If none of the above methods work (for example, you lost your Safe URL and cannot access the dashboard at all), you can disable WP Ghost through FTP or your hosting’s File Manager. You have two options: rename the plugin folder from /wp-content/plugins/hide-my-wp/ to something else (like hide-my-wp-disabled), which deactivates the plugin and restores all defaults. Or add define('HMWP_DISABLE', true); to your wp-config.php file, which disables WP Ghost at runtime without deactivating it, making it easier to re-enable once the issue is resolved. For the full step-by-step guide, see the Emergency Disable tutorial.
Frequently asked questions
What if I forgot my Safe URL?
If you didn’t save your Safe URL, use the FTP method instead: rename the WP Ghost plugin folder or add the HMWP_DISABLE constant to wp-config.php. After you’re back in, go to WP Ghost > Advanced > Rollback Settings to see and save your Safe URL for next time. You can change it in Custom Safe URL Param.
Does the Safe URL permanently disable WP Ghost?
No. The Safe URL only deactivates WP Ghost for the specific request that includes the parameter. The very next request without it loads WP Ghost normally. No settings are changed.
Is the Safe URL a security risk?
Only if someone else knows the parameter value. WP Ghost generates a random, unique value on installation. Customize it to something long and unpredictable in WP Ghost > Advanced > Rollback Settings, and treat it like a password. Do not share it publicly.
Does WP Ghost modify WordPress core files?
No. All recovery methods work because WP Ghost applies changes at runtime through rewrite rules and WordPress hooks, not by modifying files. Disabling or deactivating the plugin instantly reverts everything to WordPress defaults.