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 or search engines. It means removing every signal that tells bots and attackers your site runs on WordPress. Every default installation leaks dozens of fingerprints: paths like /wp-admin, /wp-login.php, /wp-content/plugins/, and /wp-includes/ in the page source, the generator meta tag in the HTML head, version numbers on CSS and JS files, the /xmlrpc.php and /wp-json/ endpoints, and directory names that match known plugins and themes.

Bots scan for these signals to confirm a target is WordPress, then check vulnerability databases for exploits matching your specific plugins and theme versions. Hiding WordPress removes those signals so bots find nothing to confirm and nothing to target. Your site continues working normally for visitors. Only the attack surface changes.

How to Hide WordPress with WP Ghost

WP Ghost handles WordPress hiding through multiple layers. Here is the approach, from the broadest protection to the finest details.

Change all default paths. Go to WP Ghost > Change Paths and activate Safe Mode or Ghost Mode. This changes the admin path, login path, wp-content path, plugins path (including individual plugin names), themes path (including individual theme names), uploads path, wp-includes path, REST API path, author path, and admin-ajax.php. Bots probing any standard WordPress URL get a 404 error. Ghost Mode provides the most aggressive path changes. For a step-by-step guide, see the Customize Paths tutorial.

Hide WordPress common paths and files. Changing paths creates new URLs, but the old paths may still respond unless you block them. In WP Ghost > Change Paths > WP Core Security, enable Hide WordPress Common Paths (blocks /wp-content/, /wp-content/plugins/, /wp-content/themes/) and Hide WordPress Common Files (blocks /readme.html, /license.txt, /wp-config.php). Non-logged-in visitors get a 404 on all default paths.

Remove version numbers and meta tags. Go to WP Ghost > Tweaks > Hide Options and enable: Hide Version from Images, CSS and JS (strips ?ver= parameters), Hide WordPress Generator META Tags (removes the <meta name="generator"> tag), Hide WordPress DNS Prefetch META Tags, Hide HTML Comments, Hide Emoji Icons, and Disable Embed Scripts. Each of these removes a secondary fingerprint that scanners fall back on when paths are hidden. For details, see the Hide WordPress Version tutorial.

Disable directory browsing. WP Ghost includes a one-click option to prevent anyone from browsing your site’s directory structure. This is under WP Ghost > Tweaks > Disable Options. When enabled, any attempt to list directory contents returns a 403 Forbidden error instead of showing your files.

Block theme detector crawlers. Go to WP Ghost > Firewall and enable Block Theme Detectors Crawlers. This blocks requests from known detector IPs and user agents at the firewall level before they can scan your site. For an additional layer, activate the CMS Simulator from WP Ghost > Change Paths to make detectors report Drupal or Joomla instead of WordPress. See the Hide from WordPress Theme Detectors tutorial for the complete checklist.

Add firewall and security headers. Path security handles the hiding, but a complete setup also includes the 7G/8G firewall (blocks SQL injection, XSS, and malicious payloads), security headers (HSTS, CSP, X-Frame-Options), and brute force protection. These layers protect against attacks that go beyond CMS detection. See the Firewall and Security Headers tutorials.

Verify Your Site Is Hidden

After configuration, run the Security Check at WP Ghost > Security Check to verify all paths are changed and common files are blocked. Then check your site with external tools: run your URL through BuiltWith, Wappalyzer, IsItWP, and WhatWPThemeIsThat. If none of them detect WordPress, your site is fully hidden. You can also view your page source in an incognito browser and search for “wp-” to confirm no default WordPress paths remain.

Frequently Asked Questions

Will hiding WordPress affect my SEO?

No. WP Ghost changes asset paths (CSS, JS, images) and admin paths, not your public page URLs. Your posts, pages, sitemaps, canonical URLs, and media files continue working normally. WP Ghost also updates paths in sitemaps and robots.txt automatically.

Can I hide WordPress without a plugin?

Technically yes, but it requires extensive manual editing of .htaccess or Nginx config files, functions.php modifications, and ongoing maintenance every time WordPress or a plugin updates. WP Ghost automates all of this and covers over 30 paths and fingerprints that would take hours to configure manually. One mistake in a manual setup can break your site or leave gaps.

Does hiding WordPress make my site completely secure?

Hiding WordPress eliminates the largest attack vector: automated bot reconnaissance. But no single measure makes a site “completely secure.” WP Ghost adds multiple additional layers, including a firewall, brute force protection, 2FA, and security headers. For the best results, also keep WordPress, plugins, and themes updated, use strong passwords, and maintain regular backups. See the Best Practice guide for the recommended configuration.

Does this work with WooCommerce and page builders?

Yes. WP Ghost is fully compatible with WooCommerce, Elementor, Divi, and all major page builders and caching plugins. Product pages, cart, checkout, editors, and front-end functionality all work normally with path security enabled. See the compatible plugins list for specific guides.

Does WP Ghost modify WordPress core files?

No. WP Ghost uses rewrite rules, WordPress filters, and output buffering to hide your site at runtime. No WordPress core files, plugin files, or theme files are modified. Deactivating WP Ghost restores all original paths and fingerprints instantly.