How to Set Up WP Ghost in Safe Mode in 3 Minutes – Quick Start Guide
June 17, 2024

This tutorial has moved to the new WP Ghost Knowledge Base where each feature is presented in detail.
Set up WP Ghost in Safe Mode in under 3 minutes. Select Safe Mode, customize your login path, enable the firewall and security headers, run a Frontend Login Test, and save your login URL and Safe URL for emergency recovery.
Watch the Setup Video
This video walks through the complete Safe Mode setup on an Apache server. On Nginx and IIS servers, additional configuration is needed after saving. See the Nginx Setup or IIS Setup guides for server-specific instructions.
Part 1 – Select Safe Mode and Save
1. Go to WP Ghost > Change Paths.
2. Select Safe Mode. A popup shows all the predefined paths that Safe Mode sets. Read the information, then click Continue.
3. Click Save.
4. Run the Frontend Login Test.
5. Save your new login URL. Write it down or store it in a password manager. This is how you access your site from now on.
6. Save your Safe URL. You need this if you ever get locked out. Never share it publicly.
7. If the login test is successful, click “Yes, it’s working.”
You can also use a security preset instead of configuring manually. Go to WP Ghost > Backup/Restore and load the Safe Mode + Firewall + Compatibility preset for a one-click configuration that works with most sites including WooCommerce. See the Security Presets guide for all four preset options.
Part 2 – Recommended Path Settings
After activating Safe Mode, customize the individual path settings for stronger protection. Here are the recommended settings for each section in WP Ghost > Change Paths.
Admin Security
Custom Admin Path – leave as is. Hide wp-admin – switch ON. Hide wp-admin From Non-Admin users – leave OFF (switching this on can cause issues with some plugins that need admin-ajax access).
Login Security
Custom Login Path – customize this to something unique and hard to guess. Hide wp-login.php – switch ON. Hide login Path – switch ON. Leave Lost Password, Register, and Logout paths at their defaults.
Ajax Security
Custom admin-ajax Path – customize to a unique name. Hide wp-admin from Ajax URL – switch ON. Change Paths in Ajax Calls – switch ON.
User Security
Custom Author Path – leave as is. Hide Author ID URL – switch ON (prevents username enumeration through ?author=1 URLs).
WP Core Security
Leave wp-content, wp-includes, uploads, and comment paths at their defaults. Switch ON: Hide WordPress Common Paths and Hide WordPress Common Files. Add wp-comments-post.php to the Hide Common Files list. Leave Disable Directory Browsing OFF (your hosting may handle this already).
Plugins Security
Leave Custom plugins Path at default. Switch ON: Hide Plugin Names and Hide WordPress Old Plugins Path. Leave Hide All the Plugins OFF and Show Advanced Options OFF.
Themes Security
Leave Custom themes Path at default. Switch ON: Hide Theme Names and Hide WordPress Old Themes Path. Leave Advanced Options OFF.
API Security
Leave Custom wp-json Path at default. Switch ON: Hide REST API URL link, Disable XML-RPC access, and Disable RSD Endpoint from XML-RPC. Leave Disable REST API access OFF (many plugins and the block editor require REST API access).
Part 3 – Enable Firewall and Security Headers
While still in the Change Paths settings, scroll to the Firewall and Headers section at the bottom. These settings are also accessible from WP Ghost > Firewall > Header Security.
Switch ON: Add Security Headers for XSS and Code Injection Attacks. Leave all seven headers at their default active state (HSTS, CSP, X-XSS-Protection, X-Content-Type-Options, COEP, COOP, X-Frame-Options). Switch ON: Remove Unsafe Headers, Block Theme Detectors Crawlers, and Firewall Against Script Injection.
For the firewall, the 8G Firewall is recommended. See the Firewall Security tutorial for full configuration details. For security headers, see Security Headers.
Part 4 – Run the Frontend Login Test
After saving all your customized settings, run a new Frontend Login Test to verify everything works.
1. Click Save in WP Ghost > Change Paths.
2. Click Frontend Login Test.
3. Save your new login URL (if you changed it in this session).
4. Save your Safe URL again.
5. If the test is successful, click “Yes, it’s working.”
Part 5 – Verify Your Changes
Open your site in an incognito browser window (make sure you are logged out) and verify the following:
Your site loads normally with all styles and images intact. Right-click and view the page source. You should see your custom paths instead of /wp-content/, /wp-includes/, and /wp-admin/. Try accessing /wp-login.php directly. It should return a 404 error. Access your new custom login URL. The login form should load correctly.
If anything looks wrong, use the Safe URL to bypass path security and access the default login page, then adjust your settings. See the emergency disable guide for more recovery options.
Next Steps After Safe Mode Setup
Safe Mode is a strong starting point. To maximize your hack prevention, add these layers on top of your path security:
Enable Brute Force Protection with reCAPTCHA to protect your login form from automated attacks. Enable Two-Factor Authentication (available as Code, Email, or Passkey) to add a second verification step. Run the Security Check to identify and fix 39 additional security issues including file permissions, database prefix, weak usernames, and SALT keys.
For the complete configuration reference, see the WP Ghost Settings Best Practice guide.
Frequently Asked Questions
What is the difference between Safe Mode and Ghost Mode?
Safe Mode changes the most important paths (login, admin, plugins, themes) while leaving wp-admin and admin-ajax.php at their defaults for maximum compatibility. Ghost Mode (Premium) changes all paths including wp-admin and admin-ajax.php for maximum protection. Safe Mode is recommended for first-time setup and works with virtually all plugins and themes.
Can I use a security preset instead of configuring manually?
Yes. WP Ghost offers four security presets that configure everything with one click. The Safe Mode + Firewall + Compatibility preset is recommended for most sites. Go to WP Ghost > Backup/Restore and choose your preset. Loading a preset overwrites all current settings, so back up first.
Does this work on Nginx servers?
Yes, but Nginx requires additional configuration. After saving your settings, you need to include the hidemywp.conf file in your Nginx server block and reload Nginx. See the Nginx Setup guide for step-by-step instructions.
Does this work with WooCommerce?
Yes. Safe Mode is fully compatible with WooCommerce. Cart, checkout, product pages, customer accounts, and AJAX-powered features all work normally. The Safe Mode + Firewall + Compatibility preset includes settings specifically tested with WooCommerce.
Does WP Ghost modify WordPress core files?
No. WP Ghost uses server rewrite rules and WordPress hooks. No core files are moved, renamed, or modified. Deactivating the plugin restores all default paths instantly.