Search Engine Visibility Status
Show a persistent admin notice and admin bar indicator when “Discourage search engines from indexing this site” is enabled. Never accidentally launch a site that Google can’t find.
Use Cases
- Prevent Launch Mistakes: See a prominent warning before going live with search engines blocked
- Team Awareness: Alert all admins and editors that the site isn’t being indexed
- Quick Status Check: See indexing status in admin bar without visiting Settings
The Problem This Solves
WordPress has a checkbox in Settings → Reading:
Discourage search engines from indexing this site
This setting:
- Adds
noindexto your site - Blocks search engines via robots.txt
- Is often enabled during development
- Is very easy to forget when launching
Many sites have launched with this accidentally checked, leading to weeks of wondering why Google isn’t showing their content.
How It Works
When the setting is enabled, this module displays:
- Admin Notice: A yellow warning banner on all admin pages
- Admin Bar Item: A “Search Engines Blocked” indicator
Both link directly to the Reading Settings page for quick access.
What You’ll See
Admin Notice (All Admin Pages)
Warning: Search Engine Visibility: Your site is currently discouraging search engines from indexing.
[Change this setting] [Dismiss]The notice appears at the top of every WordPress admin page until the setting is changed or the notice is dismissed.
Admin Bar Indicator
In the black admin bar at the top:
Search Engines BlockedClicking it takes you directly to Settings → Reading.
Dismissing the Notice
If you intentionally have search engines blocked (e.g., staging site), you can dismiss the admin notice:
- Click the X or Dismiss button on the notice
- The notice will be hidden for your user account
- The admin bar indicator will still show (as a subtle reminder)
- The notice will reappear if:
- A different admin user logs in (each user can dismiss independently)
- You disable and re-enable the module
This allows you to acknowledge the warning while keeping the intentional setting.
When Warnings Appear
| Setting Status | Admin Notice | Admin Bar |
|---|---|---|
| “Discourage search engines” checked | Shows (unless dismissed) | Shows |
| “Discourage search engines” unchecked | Hidden | Hidden |
Who Sees the Warnings
The warnings only appear for users who can manage options (Administrators). Editors, Authors, and other roles don’t see the notice.
When to Keep Search Engines Blocked
There are legitimate reasons to block indexing:
- Development/staging sites - Don’t index test content
- Membership sites - Content behind paywalls shouldn’t be indexed
- Private intranets - Internal company sites
- Temporary maintenance - Brief periods when content isn’t ready
In these cases, dismiss the notice to acknowledge you’re aware of the setting, while the admin bar indicator serves as a subtle ongoing reminder.
Checking Your Current Setting
To verify your search engine visibility:
- Go to Settings → Reading
- Scroll to the bottom
- Look for “Search engine visibility”
- Check/uncheck as needed
- Save changes
Technical Details
How WordPress Blocks Search Engines
When enabled, WordPress:
- Adds meta tag:
<meta name='robots' content='noindex, nofollow' /> - Adds to robots.txt:
Disallow: / - Sets
blog_publicoption to0
This module checks the blog_public option value.
Dismiss State Storage
When you dismiss the notice, the preference is stored in your user meta. This means:
- Each admin user can dismiss independently
- The setting persists across sessions
- Resetting requires disabling/re-enabling the module
Module Impact
- Minimal database changes (user meta for dismiss state)
- No additional files
- Minimal performance impact (single option check)
- Works immediately when enabled
Related Settings
Full SEO Control
For more comprehensive SEO and indexing control, consider:
- Robots.txt module: Customize your robots.txt file
- Individual page noindex: Most SEO plugins offer per-page control
- Sitemap management: Control what appears in XML sitemaps
HTTPS and Indexing
Search engines prefer HTTPS sites. If your site isn’t using HTTPS, that may also affect indexing quality (though not blocking it entirely).
FAQ
Does this actually block search engines?
The module doesn’t block or unblock anything. It only shows a warning when WordPress’s built-in search engine discourage setting is enabled. The actual blocking is done by WordPress itself.Will my site instantly appear in Google when I uncheck the setting?
No. Removing the block allows search engines to index your site, but:
- Google needs to recrawl your site
- This can take days to weeks
- Submit your sitemap to Google Search Console to speed this up
Can I hide the warning?
Yes! You can dismiss the admin notice by clicking the X button. This is useful for staging sites where blocking is intentional. The admin bar indicator will still show as a subtle reminder. Alternatively, you can:
- Uncheck “Discourage search engines” in Settings → Reading
- Disable this Switchboard module
I dismissed the notice but want it back. How?
Disable and re-enable the module in Switchboard settings. This will reset the dismiss state for all users.Does this affect Google Search Console?
Google Search Console will show that your site hasnoindex directives when this setting is enabled. This isn’t an error - it’s correctly reporting your configuration. Remove the block when you want to be indexed.Get access to all 147 modules with a single license