Table of contents
Get the industry’s fastest hosting for WordPress ◦ 99.999% uptime
◦ Comprehensive security
◦ 24/7 support

WordPress GuideSEO → Discourage Search Engines Indexing Site

Discourage search engines from indexing this site: Why & how

Don’t want your site showing up in Google search results? Whether you’re still building your WordPress site or working on something private, there are simple ways to keep search engines out.

Let’s break down exactly how to discourage indexing—and why you might want to.

Quick answer: How to discourage search engines

The fastest way to block search engines in WordPress is to go to Settings > Reading > Search engine visibility and check the box for Discourage search engines from indexing this site. It adds a special rule to your site’s code (via robots.txt), to tell search engines to skip indexing your site. 

Note that this setting doesn’t guarantee full privacy—so if you need stronger protection, keep reading.

Why would you discourage indexing?

There are several good reasons to keep search engines away—at least temporarily:

How to use the WordPress feature

To enable the built-in setting:

That’s it. WordPress updates your virtual robots.txt file automatically.

How to use the ‘noindex’ meta tag

The noindex meta tag tells search engines to skip indexing a specific page, even if the rest of your site is visible. It’s a precise way to hide select content from search results without blocking the entire site.

To add a noindex tag manually:

How to discourage indexing with the robots.txt file

If you want full control, you can create or modify a robots.txt file yourself.

Remember: Search engines can ignore this file. It’s a guideline, not a restriction.

How to discourage indexing with password protection

Password protection adds a harder barrier. If crawlers can’t access a page, they can’t index it.

Here are two simple ways to do this:

Password protection blocks bots, users, and anyone who doesn’t have access credentials.

How to discourage indexing with a plugin

Several SEO and privacy plugins make it easy to manage indexing settings.

Popular options include:

Plugins offer more granular control—like noindex settings per page, sitemaps, and canonical tags.

How to use Temporary Removals to discourage indexing

If a page is already indexed and you need to hide it quickly, Google Search Console’s Temporary Removals tool is your friend.

This removes it from search results for about six months. In the meantime, update the page to include a noindex meta tag or restrict access entirely.

Bonus tip: Use a staging site for WordPress development

If you’re making major changes to your WordPress site, don’t do it live.

Instead, use a staging environment. Managed hosts like Liquid Web include one-click staging so you can build, test, and revise without affecting your live site—or risking accidental indexing.

You can also set up staging manually using a subdomain (like staging.example.com) and discourage indexing via robots.txt or password protection.

Additional resources

Comprehensive guide to securing WordPress with ModSecurity

This guide provides a comprehensive overview of how to use ModSecurity to enhance the security of your WordPress site.

Optimizing Largest Contentful Paint (LCP) in WordPress →

Improve Largest Contentful Paint for better performance and Core Web Vitals scores.

Why security matters for WordPress enterprise hosting

Use the blog as your guide to attacks to watch out for, security best practices, and steps to improve the WordPress protection you already have.

Originally from Albuquerque, New Mexico, Leslie Bowman has hopped around the country since graduating from undergrad. She focused on English and Latin American History in college and eventually attended graduate school in New York City. There, she developed a passion for short, persuasive arguments. Bowman found a love of copywriting and is now a Senior Copywriter at Liquid Web.