WordPress Discourage search engines: what it does, how it gets switched on, and how to catch it

WordPress Discourage search engines adds noindex and blocks robots.txt. What switches it on, how to check the live site, and how to fix it.

If Discourage search engines is ticked on a live WordPress site, untick it now: go to Settings → Reading, uncheck “Discourage search engines from indexing this site,” and save. That single checkbox tells search engines to keep the whole site out of their indexes, and while it is on, no amount of content or link work will bring the pages back.

Do not stop at the settings screen, though. The checkbox explains the cause, but only the live site tells you what search engines actually see right now. The rest of this article covers what the setting changes in the output, how it ends up on in production, how to check the live site, how to fix it, and what to verify afterwards.

What does Discourage search engines actually change?

The setting is stored as the blog_public option. When it is set to discourage indexing, WordPress changes two separate outputs at once.

First, WordPress adds a meta robots directive to every page it renders. In current versions that output is noindex, nofollow, printed in the <head> of posts, pages, archives, and every other template. If WordPress generates the page, the directive is there.

Second, WordPress changes the virtual robots.txt file. WordPress generates /robots.txt dynamically when no physical file exists, and with the setting on, that generated file is essentially:

User-agent: *
Disallow: /

That rule asks all crawlers not to visit any URL. The signals differ: robots.txt blocks crawling, so an obedient crawler never fetches the page; noindex blocks indexing, but a crawler must fetch the page to read it. With both in place, a compliant crawler stays away, and known pages are candidates for removal once the noindex is seen.

  • Pages still return 200, look normal, and work for visitors. That is why the problem is silent.
  • The setting does not itself add an X-Robots-Tag header. If noindex appears in response headers, a plugin, host, or CDN rule is adding it. Check headers with the X-Robots-Tag checker; unticking the box will not remove a header set elsewhere.
  • If a physical robots.txt exists, it takes precedence over the virtual one. The checkbox still controls the meta output, but /robots.txt may say something different. Always read the file actually served.

How do you check the live site rather than the setting screen?

Check the setting, by all means: it takes ten seconds in Settings → Reading. But treat it as one data point, not the verdict. Plugins can filter the output, caches can serve an older version of a page, and a physical robots.txt can override the virtual one. The live output is what a crawler receives.

Work through these checks on the live domain, ideally in a private browser window while logged out of WordPress:

  1. View the homepage source and search for robots. Look for <meta name="robots" content="noindex, nofollow"> or any variation containing noindex. Repeat on an inner page and a post, not just the homepage.
  2. Fetch /robots.txt on the live domain and read it exactly as served. Disallow: / under User-agent: * is the blocking rule. Check whether the file mentions a sitemap, and whether what you see matches what you expect from your SEO plugin, if you use one.
  3. Check the response headers for x-robots-tag. You can do this with curl -sI https://example.com/ or with a header checker. A noindex here survives a checkbox fix until its own source is removed.
  4. Run key URLs through a checker. The indexability checker reads the meta tag, headers, canonical, and status code in one request, and the robots.txt tester shows whether a URL is allowed for a given crawler. For larger sites, the bulk checker tests a set of important URLs at once.

Record what you find before changing anything. Knowing whether the block was meta only, robots.txt only, or both tells you later whether the fix cleared everything.

How does it end up switched on in production?

Nobody sensible ticks this box on a live site on purpose. It arrives by being carried from somewhere the setting made sense, or by being set at a moment when the site was not meant to be found. These are the realistic routes.

Staging migrations and site copies

This is the most common route. A staging copy is correctly set to discourage indexing. That is what the setting is for. When its database is migrated to production, the blog_public option travels with it. Content and design look right, so nobody opens Settings → Reading. Migration and cloning tools copy options wholesale unless told to change this one, and many checklists cover URLs and files but not indexing.

One-click installers and host setup flows

Some installers create a new install with indexing discouraged, assuming a site under construction. If the site is built directly on that install (common for small business sites) and nobody revisits the setting at launch, it goes live still asking not to be indexed. The check that would catch it is one glance at Settings → Reading, often skipped because the site “works.”

Careless handover between developers or agencies

A site changes hands. The outgoing developer ticked the box during maintenance or a rebuild. The incoming developer checks that the site loads, forms submit, and the client can log in. Indexing is assumed fine because the site ranked before, so weeks can pass before anyone opens a setting no one in the current team has touched. An agency carrying this risk across client sites usually handles it with a monitor; the Little Warden vs stillindexed comparison prices two of them for exactly this job (October 2026).

Backup restores

Restoring a backup restores the options table as it was then. If the backup was taken in development, mid-migration, or while the site was temporarily discouraged, the restore brings the setting back. The site was fine yesterday, a restore ran overnight after a failed update, and today it is discouraged. The restore is remembered; the checkbox inside it is not.

A deliberate tick that was never reverted

Someone ticks the box “just until we go live” while building pages or importing products. Go-live then happens in a hurry (a domain is pointed, a client approves by phone) and unticking is lost. In every case the change was harmless in its original context, and WordPress does not warn you the context changed. The admin shows an indication to logged-in administrators, but nothing to visitors or crawlers.

How do you fix it?

The fix itself has three short steps, and then the verification matters more than the fix.

  1. In WordPress admin, go to Settings → Reading, uncheck “Discourage search engines from indexing this site,” and click Save Changes.
  2. Clear any page cache, CDN cache, and caching plugin cache, so crawlers and checkers see the new output rather than a stored copy of the old pages.
  3. Re-run the live checks from the previous section: homepage and inner-page source, /robots.txt, and response headers.

If the meta noindex is gone but /robots.txt still shows Disallow: /, look for a physical robots.txt file or an SEO plugin generating its own file. If robots.txt is clean but pages still show noindex, look for a plugin or theme filter adding it independently of the setting. An SEO plugin in a maintenance or staging mode is the usual candidate. If an x-robots-tag: noindex header is present, it was never the checkbox; trace it to the plugin, server config, or CDN rule that sets it.

If you manage WordPress sites for clients, this layered checking is the difference between “we unticked the box” and “the site is actually indexable again.” The general approach to keeping WordPress sites indexable and monitored is worth setting up once, before an incident forces the question.

What should you verify after fixing it?

Unticking the box removes the instruction. It does not instantly restore the site’s previous position, and it does not guarantee every output is clean. Verify these items while the incident is fresh:

  • Templates, not just the homepage. Check a post, a page, an archive, and any shop or product template. Themes and plugins sometimes add their own noindex to specific templates, and you need to know which are intentional.
  • The feed. Check /feed/ and confirm it serves normally, without interference from security or performance plugins.
  • Attachment pages. If the site generates them, check one. Attachment pages often carry a separate noindex decision from a plugin or theme, and nobody visits them directly.
  • The sitemap. Confirm sitemap URLs return 200, are not individually noindex, and are referenced in robots.txt if you rely on that.
  • Redirects and canonicals. A restore or migration that carried the checkbox in may have changed other outputs. Run key URLs through the redirect checker to confirm they resolve in one hop to the expected canonical.
  • Search Console. Once the live site reads clean, use URL Inspection on the homepage and key pages and request indexing. This asks Google to recrawl sooner; it does not guarantee timing. Expect days to weeks for broader reindexing. See why Google Search Console won’t warn you in time.

Search Console may keep showing pages as excluded by noindex or blocked by robots.txt after the fix. That reflects past crawls. Judge the fix by live output; use the report only to confirm Google has caught up.

Why can a plugin update silently change the picture?

The checkbox is not the only thing writing these signals, which is where plugin updates complicate diagnosis.

Most SEO plugins read blog_public but generate their own meta robots output. An update that changes how a plugin composes that output, resets a setting to a new default, or adds a staging mode can change what crawlers see even though nobody touched Settings → Reading. A plugin can also mask the core tag, so pages look clean while the setting (and its robots.txt effect) remains on.

Caching and security plugins have similar reach. A cache can keep serving pages generated while the setting was on, and a security rule can add an X-Robots-Tag header at server or CDN level. Neither appears in the setting screen. “The setting is off” and “the site is indexable” are different claims; only the second matters to a crawler. This is the same class of problem as in accidentally noindexed your site: find and fix it fast.

How do you catch it next time?

The setting gives no external sign. The site loads, direct visits continue, and organic traffic only fades over days as pages drop out. By the time a client notices, the site may have been discouraged for weeks. The site migration SEO monitoring playbook covers the migration case in more depth.

The reliable way to catch it is to check live output on a schedule and compare each check with the last: meta robots, robots.txt, canonicals, and redirects. That is what stillindexed does, checking every 15 to 30 minutes and alerting via Telegram or email when a signal changes. If you look after WordPress sites for clients, you can try it free for 30 days with 3 sites and no card required; see plans and pricing for ongoing costs. For other approaches, see the best SEO monitoring tools.

Whether you monitor with a tool or manually, put Settings → Reading on every launch, migration, and restore checklist. It is one checkbox; the cost of missing it is the whole site’s visibility.

Questions

What does Discourage search engines do in WordPress?
The WordPress Discourage search engines setting sets the site to noindex across every template and serves a robots.txt rule that disallows all crawling. The WordPress Discourage search engines setting does not delete pages or change content, but search engines that obey both signals will drop the site from results and stop visiting it.
How do I check if Discourage search engines is on without logging in?
To check the WordPress Discourage search engines setting from outside WordPress, fetch the homepage source and look for a meta robots tag containing noindex, then fetch /robots.txt and look for Disallow: /. Either signal confirms the WordPress Discourage search engines state is active on the live site, regardless of what anyone remembers setting.
How did Discourage search engines get switched on by itself?
The WordPress Discourage search engines setting rarely switches itself on. The WordPress Discourage search engines option is usually carried into production by a staging migration, a one-click installer default, a backup restore, or a developer who enabled the setting on a copy of the site and whose database was later copied over the live database.
After unchecking Discourage search engines, how long until Google reindexes the site?
After the WordPress Discourage search engines setting is unchecked, Google must recrawl the site before reindexing it. Recrawling after the WordPress Discourage search engines fix typically takes days to weeks depending on crawl rate and site size. Requesting indexing for key URLs in Search Console can prompt earlier visits for those URLs.
Can an SEO plugin override Discourage search engines?
An SEO plugin can replace the meta robots output affected by the WordPress Discourage search engines setting, so pages may show no noindex tag while the setting remains on. The WordPress Discourage search engines setting still controls the core robots.txt output, so an SEO plugin override can hide part of the problem without fixing it.