Search: error

88 results

Prevent 404 Errors After Deactivating WP Ghost - Redirect Rules for Apache and Nginx

… Does WP Ghost modify WordPress core files?

If you deactivate WP Ghost after using custom paths, Google and visitors may still request the old custom URLs. Add redirect rules in .htaccess (Apache) or nginx.conf (Nginx) to map the custom paths back to the original WordPress paths and prevent 404 errors.

Why 404 Errors Happen After Deactivating WP Ghost

When WP Ghost is active, it changes your WordPress paths to custom URLs. For example, /wp-content/ might become /core/, /wp-content/uploads/ might become /storage/, and /wp-content/themes/ might become /core/views/. These custom paths are the URLs that …

Why Do I Get a 404 Error on My Custom Admin URL?

Moved

This tutorial has moved to the new WP Ghost Knowledge Base where each feature is presented in detail.

View on new site

This is expected behavior, not an error. When the Hide “wp-admin” option is enabled in WP Ghost, the custom admin path is only accessible to logged-in users. If you try to visit your custom admin URL without being logged in first, WP Ghost returns a 404 to prevent bots from discovering the admin area. The solution is simple: go to your custom login path first, log in, and then access the admin URL.

Why the …

How to Activate WordPress Debugging - Enable WP_DEBUG and Debug Log

… located?Can I enable debugging without showing errors to visitors?Do I need SCRIPT_DEBUG for most troubleshooting?Will debugging affect my site performance?WP Ghost Security Check says debugging is active. How do I fix it?Does WP Ghost modify WordPress core files?

Enable WordPress debugging to log PHP errors and warnings to a debug.log file. Add four constants to wp-config.php: WP_DEBUG, WP_DEBUG_LOG, WP_DEBUG_DISPLAY, and SCRIPT_DEBUG. Always disable debugging after troubleshooting to avoid exposing error details to attackers.

When You Need WordPress Debugging

WordPress debugging mode captures PHP errors, warnings …

WordPress Hacked? 10-Step Recovery Guide (2026)

… WP Ghost modify WordPress core files?

No. WP Ghost never touches WordPress core files. It uses rewrite rules, filters, and a mapping engine to redirect requests and hide the real paths. Core, plugins, and themes stay untouched, which means updates apply normally and nothing breaks when you deactivate the plugin.

Related Tutorials

WordPress Hack Prevention: The Complete 2026 Guide

WordPress Security Statistics 2025-2026 (43 verified data points)

Disable WP Ghost in case of error (emergency access)

Customize WordPress paths

Firewall and Geo Security

Two-Factor Authentication

Brute Force Protection

Security Threats Log

Website Security Check

Preset Security Options

WP

WordPress Hack Prevention: The Complete 2026 Guide

… security logs, and advanced path hardening. Current Premium pricing is on the WP Ghost pricing page. For most personal sites, the free tier covers the prevention fundamentals.

What if I get locked out after enabling WP Ghost?

The emergency disable procedure is documented at disable WP Ghost in case of error. It takes under a minute via FTP or your hosting file manager and restores default WordPress paths instantly. We also recommend bookmarking your new login URL the moment you save a new path, and keeping a second admin account with a separate recovery email.

Does WP Ghost replace Wordfence …

WordPress Security Statistics 2025-2026: Vulnerabilities, Attacks, and Prevention Data

… tools will find it.

This is the core premise behind WP Ghost’s hack prevention approach. If bots can not find your WordPress paths, plugins, themes, or login page, you are invisible to these automated scanners. The bot sends a request to /wp-content/plugins/vulnerable-plugin/, gets a 404 error, and moves on. Your site is never added to the target list.

Persistent Infrastructure: The 2025 Shift

Patchstack’s 2025 data revealed a significant strategic shift. Attackers are no longer just exploiting vulnerabilities and moving on. Uploader scripts nearly doubled in volume in June 2025 and maintained elevated presence …

How to Add Files to "Hide WordPress Common Files" in WP Ghost

… your site is running WordPress or expose internal project details.

The filter lets you add any file to WP Ghost’s hidden files list. Once added, the file appears in the WP Ghost dashboard where you can select it and save. Accessing that file directly will then return a 404 error for non-logged visitors.

File Default (Accessible) After Hiding (Secured) wp-cron.php Accessible, confirms WordPress Returns 404 for non-logged visitors wp-trackback.php Accessible, used in trackback spam Returns 404 composer.json Reveals project dependencies Returns 404 Custom PHP files Accessible by URL Returns 404

How to …

How to Set Up WP Ghost in Safe Mode in 3 Minutes - Quick Start Guide

… 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 …

WP Ghost Firewall and Geo Security - Complete Setup Guide

… for blocked paths or using server-level geo blocking.

Block Specific Countries

Navigate to the Blocked Countries section in WP Ghost > Firewall > Geo Security. Search and select the countries you want to block.

Only block countries that pose a real threat, such as those generating frequent failed logins, many 404 errors, or other malicious activity. Re-evaluate your blocked countries periodically to make sure you are not restricting legitimate visitors unnecessarily.

Block Specific Paths

Instead of blocking an entire country from your full site, you can block access only to specific paths like /login or /my-account. This effectively prevents …

Why Has Elementor Stopped Working with WP Ghost Safe or Ghost Mode?

… Save and test the editor again. This way, WP Ghost still hides all paths from visitors and bots, but your admin experience (including Elementor) uses the original paths. See the Security Tweaks tutorial for details.

Still Not Working?

If none of the steps above resolve the issue, check your server error logs for specific 404 or 500 errors. Log out and log back in to refresh your session cookies (especially after changing the admin path). You can also test Elementor’s own Safe Mode by going to Elementor > Tools > Safe Mode, which loads Elementor without any theme or plugin interference …

Fix PDFs and Iframes Not Loading in WordPress - X-Frame-Options Guide

… you embed that point to external sources. If the external source sends its own restrictive X-Frame-Options header, the iframe fails to load on your page too.

What Breaks and What Does Not

Here is a quick reference to help you identify whether your setup is affected.

Scenario X-Frame-Options: SAMEORIGIN Result Local PDF embedded in iframe (same domain) Allowed Loads normally External PDF from Google Drive or Dropbox Blocked by browser Iframe shows blank or error YouTube or Vimeo video embed Usually works These services send permissive headers Third-party booking or payment iframe Depends on …

How to Enable .htaccess in OpenLiteSpeed for WP Ghost Path Security

… Safe Mode or Ghost Mode (Premium).

10. Customize your paths and click Save. WP Ghost writes the rewrite rules to .htaccess automatically.

11. Click the Frontend Login Test to verify your new login path works.

12. Open your site in an incognito browser and confirm the old paths return 404 errors.

If WP Ghost still shows a warning that rewrite rules are being handled by WordPress instead of the server, the .htaccess auto-load is not active. Double-check that you saved the OpenLiteSpeed configuration and performed the restart. For more troubleshooting, see Theme Not Loading Correctly or Website Loads …

Do I Really Need a Security Plugin for WordPress?

… and gets a 404 error, it moves on to the next target. No login page found means no brute force attack, no credential stuffing, no exploit attempt. WP Ghost takes this approach, changing and hiding over 30 WordPress paths including the admin, login, plugins, themes, uploads, and REST API.

Firewall protection. A web application firewall filters incoming requests and blocks malicious patterns before they reach your WordPress core. This stops SQL injection, cross-site scripting (XSS), and other common injection attacks at the server level. WP Ghost includes both 7G and 8G firewall rules as a free feature.

Brute …

Why Style & Buttons Are Not Working With Hide My WP?

… Still Broken?

If none of the four settings above are the cause, the issue is usually server configuration. When WP Ghost changes your paths, the server needs to know how to route requests to the new URLs. If rewrite rules aren’t loaded correctly, CSS and JS files return 404 errors and the theme appears broken.

Start by running the Frontend Test. Go to WP Ghost > Change Paths and click the Frontend Test button in the sidebar. WP Ghost will check whether your new paths are resolving correctly and show you any server configuration steps you need to follow.

For …

How Do I Block WP Content in WordPress? (WP Ghost Guide)

… wp-content path tutorial.

How Do I Hide the Old wp-content Path So Bots Get a 404?

Changing the path creates a new URL, but the original path might still respond if someone types it directly. You need to block access to the old path so bots and scanners hit a dead end.

Still in WP Ghost > Change Paths > WP Core Security, switch on Hide WordPress Common Paths. This blocks direct access to the old , , and other default WordPress directories. Anyone or any bot that tries to access the original path gets a 404 error instead.

You can …

What Is the WP Ghost Security Plugin for WordPress?

… plugins and themes. Once a bot knows your CMS and your plugins, it checks vulnerability databases and attacks automatically.

WP Ghost breaks this cycle at the first step. It changes all those default paths to custom URLs that bots don’t expect. If a bot probes and gets a 404 error, it cannot launch a brute force attack. If it scans for and finds nothing, it cannot target that plugin’s vulnerabilities. The bot moves on to an easier target. That is what hack prevention means: you don’t just react to attacks, you make them impossible to start.

Core …

How to Use WP Ghost on Nginx Hosting Without Editing Config Files

… hosting environments cannot edit config files?

Managed WordPress hosting like Kinsta, WP Engine, Flywheel, and Cloudways managed plans. Also some shared Nginx hosting providers and containerized deployments where the Nginx config is managed by the platform. If your hosting panel does not have an Nginx config editor and your provider says you cannot add custom location blocks, use this guide.

Does this work with WooCommerce?

Yes. All non-rewrite features are fully compatible with WooCommerce on Nginx without config changes. Custom login paths, brute force, firewall, 2FA, and security headers all work with WooCommerce.

Is the Minimal preset a …

What Is the Best Plugin for Cloaking WordPress?

… Tutorial.

To verify the cloaking works, check your site with a theme detector like IsItWP, BuiltWith, or Wappalyzer. If they cannot detect WordPress, your cloaking is working.

Frequently Asked Questions

Is WordPress cloaking the same as “security through obscurity”?

No. WP Ghost uses path security, not obscurity. Obscurity means relying on secrecy as your only defense. WP Ghost changes the actual attack surface: paths that bots probe return 404 errors, the firewall blocks injection attempts, brute force protection limits login attempts, and 2FA secures authentication. Path changes are one layer of a multi-layer defense strategy.

Will cloaking affect …

How Do I Hide the Theme Name in WordPress?

… a randomly generated code. Instead of , the path becomes . No one can identify your theme from the page source. Click Save.

Hide all themes. Switch on Hide All the Themes to also rename inactive theme directories. Inactive themes still sit on your server and can be exploited if they have known vulnerabilities. This option protects them too.

Hide the old themes path. Switch on Hide WordPress Old Themes Path. This returns a 404 error for any request to the original URL, blocking bots that probe the default location.

Rename style.css. Enter a custom name in the Custom Theme …

How to Disable WP Ghost on Specific Pages in WordPress

Moved

This tutorial has moved to the new WP Ghost Knowledge Base where each feature is presented in detail.

View on new site

Table of ContentsWhen You Need to Disable WP Ghost on Specific PagesMethod 1 – Use Whitelist Paths (No Code)Method 2 – Use the hmwp_process_init Filter (Code)Disable on a Specific Page by SlugDisable on Multiple PagesDisable on a Custom Post TypeDisable Based on URL PathWhich Method Should You UseOther Useful WP Ghost FiltersFrequently Asked QuestionsDoes disabling WP Ghost on a page reduce security for that page?Should I add the code to functions.php or wp …

How to Add a Custom Config File for WP Ghost on Nginx Servers

… installation folder (the directory that contains wp-config.php).

4. Make sure the file is writable by the web server user (typically www-data on Ubuntu or nginx on CentOS):

Step 2 – Include the File in Nginx Configuration

5. Open your Nginx server configuration file. Depending on your setup, this is typically at , inside a virtual host file in , or in a custom location specified by your hosting provider.

6. Inside the block for your domain, add an include directive that points to the custom config file:

Replace with the actual absolute path to your WordPress installation folder.

Step …

How to Set Up Plesk to Work as Apache for WP Ghost Path Security

… the Proxy mode checkbox. This enables Nginx to act as a reverse proxy that forwards all requests to Apache.

5. Uncheck the Smart static files processing checkbox. This ensures static files are not handled by Nginx separately.

6. Uncheck the Serve static files directly by nginx checkbox. This tells Nginx to pass all static file requests to Apache for handling.

7. Click Apply to save the changes.

With these settings, Apache handles all content while Nginx acts as a transparent reverse proxy. This is the configuration that gives WP Ghost full control over path security through .htaccess rules.

For …

How Do I Hide My WordPress Site from Hackers and Bots?

Moved

This tutorial has moved to the new WP Ghost Knowledge Base where each feature is presented in detail.

View on new site

To hide your WordPress site from bots, scanners, and theme detectors, you need to change the default paths, remove CMS fingerprints from the HTML source, and block access to common WordPress files. WP Ghost does all of this in a single plugin with 115+ free features. After configuration, tools like BuiltWith, Wappalyzer, and IsItWP cannot identify your site as WordPress.

What “Hiding WordPress” Actually Means

Hiding your WordPress site does not mean making it invisible to visitors …

Can WP Ghost Hide the Plugins and Theme You're Using?

… way. Go to WP Ghost > Change Paths > Themes Security. You can change the themes directory path, hide theme names (replaces each theme directory with a random code), hide all themes (includes inactive themes whose files can still be exploited), hide the old themes path (blocks the original URL), and rename the theme style file (changes to a custom name like ).

Renaming is especially effective. Every theme detector specifically looks for this file because its header contains the theme name, version, and author in a standardized format. Rename it, and that detection method fails completely.

For the full walkthrough, see …

Why Doesn't My Theme Layout Load After Using WP Ghost?

Moved

This tutorial has moved to the new WP Ghost Knowledge Base where each feature is presented in detail.

View on new site

If your theme layout breaks or CSS/JS files fail to load after activating Safe Mode or Ghost Mode in WP Ghost, the issue is almost always a server configuration problem or a stale cache. The new paths need to be recognized by your server before they can serve files correctly. Here is how to diagnose and fix it.

Step 1: Clear All Cache

This is the most common cause and the easiest fix. When WP Ghost …

Cloud Panel Server - WP Ghost Setup Guide (Nginx Vhost Configuration)

… under Settings > Vhost).

3. Find the line in the Vhost configuration.

4. Add the include directive above the line:

Replace the path with your actual WordPress installation directory. The default Cloud Panel path is typically .

5. Save the Vhost file.

Important: The include directive must go above the line, not below. The placeholder is where Cloud Panel injects its own server configuration. Placing the WP Ghost rules above ensures they load before Cloud Panel’s defaults take over.

Step 5: Restart Nginx

Restart Nginx from the Cloud Panel admin interface. You can find the restart option under Services or …

Why Can't I Login to WordPress via wp-admin?

Moved

This tutorial has moved to the new WP Ghost Knowledge Base where each feature is presented in detail.

View on new site

If you can’t access your WordPress dashboard through the usual /wp-admin path, it’s almost certainly because WP Ghost is doing its job. The plugin hides the default wp-admin and wp-login.php paths so bots can’t find them. You need to use your custom login URL instead. This guide explains what happened, how to find your custom path, how to disable the hiding if you prefer, and what to do if you …

Most Popular WordPress Theme Detectors and How to Hide from Them

… in seconds, a hacker bot can do the same thing even faster and immediately launch the matching exploit. This is why path security is not about vanity or hiding from competitors. It is about removing the exact signals that bots use to target your site.

How WP Ghost Makes Your Site Invisible to Theme Detectors

WP Ghost defeats theme detectors by eliminating every signal they rely on. When properly configured, WP Ghost changes all default WordPress paths (/wp-content/, /wp-admin/, /wp-includes/, plugin and theme directory names), removes WordPress fingerprints from the HTML source (generator meta, version tags …