WordPress adds a DNS-Prefetch meta tag pointing to s.w.org in your site’s HTML source. This tag is a WordPress identifier that CMS detection tools can use to confirm your site runs WordPress. WP Ghost can remove it with a single toggle. Alternatively, you can remove it with a code snippet in functions.php.
What Is DNS-Prefetch?

DNS-Prefetch is a browser performance hint that resolves domain names before the user clicks a link, reducing page load times for external resources. WordPress adds a DNS-Prefetch tag for s.w.org (WordPress.org’s static files domain) in the <head> section of every page. The tag looks like this: <link rel='dns-prefetch' href='//s.w.org' />. While useful for performance, this tag is a clear WordPress fingerprint that bots and CMS detection tools use to identify WordPress sites.
Remove DNS-Prefetch with WP Ghost
- Go to WP Ghost > Tweaks > Hide Options.
- Switch on Hide WordPress DNS Prefetch Meta Tag.
- Click Save.

Only the WordPress DNS-Prefetch is removed. WP Ghost removes the s.w.org prefetch tag specifically. DNS-Prefetch tags from other plugins, themes, or services are not affected. Your site’s loading speed is not impacted because the s.w.org prefetch is only used for WordPress emoji resources.
Remove DNS-Prefetch with Code
If you prefer a code approach (or don’t use WP Ghost for this), add the following to your child theme’s functions.php file or a code snippets plugin:
add_action('init', function() {
remove_action('wp_head', 'wp_resource_hints', 2, 99);
});The code approach removes all resource hints. Unlike WP Ghost’s toggle (which removes only the WordPress s.w.org prefetch), the code above removes all DNS-Prefetch, preconnect, and prefetch resource hints from your site. This may affect loading speed if your site relies on DNS-Prefetch hints for CDN, font, or analytics domains. The WP Ghost toggle is more precise.
Frequently Asked Questions
Will removing DNS-Prefetch slow down my site?
No. The WordPress s.w.org DNS-Prefetch is only used for loading emoji resources. If you’ve already disabled WordPress emojis (which WP Ghost can do at WP Ghost > Tweaks > Disable Options > Disable Emojis), the prefetch serves no purpose. Even with emojis enabled, the performance impact of removing this single prefetch is negligible.
Does this affect DNS-Prefetch from other services?
WP Ghost’s toggle removes only the WordPress s.w.org tag. DNS-Prefetch tags from Google Fonts, CDN services, analytics, or other plugins are not affected. The code approach is broader and removes all resource hints, which may include prefetch tags from other services.
Does WP Ghost modify WordPress core files?
No. WP Ghost uses WordPress hooks to remove the DNS-Prefetch tag from the HTML output. No core files are modified.
Related Tutorials
Hiding WordPress identity signals:
- Hide WordPress Version – Remove version numbers from source code.
- Simulate Drupal or Joomla CMS – Replace WordPress generator tag with another CMS.
- Change WordPress Paths – Hide wp-content, plugins, and themes paths.
- Text and URL Mapping – Replace WordPress-specific text in page source.