Tutorials

How to discourage search engines from indexing your WordPress site

In most situations, you probably want (or are at least indifferent to) visitors finding their way to your website through search engines like Google. But if you’re still in the process of getting your site up and running, with placeholder content here and a few broken layouts there, you likely want Google to hold off on linking to your site until your site is ready for visitors.

WordPress has a built-in feature for discouraging search engines from listing a website in the results. You can activate it by following the instructions below.

  1. Log in to the administration panel for your site.
  2. Click on “Settings” in the menu on the left, and then on “Reading”.
  3. At the bottom of the page, there’s a checkbox labeled “Discourage search engines from indexing this site”. It’s unchecked by default. Click on it, and then click on the “Save Changes” button. Search engines are now discouraged on the site.

When the checkbox is checked, WordPress adds a small piece of code to every page on your site: a “robots” meta tag with the value noindex, nofollow. It tells search engines like Google not to include the page in their search results, and not to follow the links on it.1

Whether or not search engines follow those instructions is up to them. As it says below the checkbox in the WordPress settings, it’s up to search engines to honor a site’s request not to be indexed. The major search engines generally do, though, so if you check the setting as soon as you’ve set up your new site, you can be pretty sure that it won’t show up on the search engine results page. Just make sure that you uncheck it again when you want the traffic to start flowing.

If your site really needs to stay private, this setting isn’t enough on its own. Protect it with a password or a “coming soon” plugin instead.

If you want to turn off the search on your site instead, I’ve covered that in how to disable search in WordPress.

  1. In older versions of WordPress, the setting worked by blocking crawlers in the site’s robots.txt file instead – a standard developed all the way back in 1994 for telling web crawlers what is and isn’t off limits on a site. The meta tag works better, since a page that’s blocked in robots.txt can still show up in search results if other sites link to it. If you want to make other changes to robots.txt, here’s how to edit robots.txt in WordPress. ↩︎

Published November 2, 2026

Modified December 1, 2026