Hosting

To request search engines to not index your website via the WordPress Dashboard, you need to log into your WordPress website as an administrator and navigate to the Settings > Readings section. Under the Search engine visibility option, select the checkbox next to Discourage search engines from indexing this site, and press the Save Changes button.


Search engine visibility

Discouraging search engines from indexing or crawling WordPress via the hosting Control Panel > WordPress Manager

You can enable the Discourage search engines from indexing this site option for your WordPress website very easily through the hosting Control Panel. All you need to do is open the management page for your WordPress installation through the hosting Control Panel > WordPress Manager and click on the Enable button next to Discourage search engine indexing from the Tools section.

Discourage serach engine indexing

Enable the Discourage search engine indexing option for WordPress via WP-CLI

To send information to search engines or crawlers that your WordPress website should not be indexed via WP-CLI (the command-line interface for the management of WordPress websites), you need to enable SSH access for your account. After that, connect to it through SSH, and navigate to the directory of your WordPress installation. For example, you will need to go to the ~/www/www directory of your account if WordPress is installed on your main domain. The exact command to do that is:

cd ~/www/www
To enable the Discourage search engine indexing option for your WordPress blog, use this WP-CLI command:

wp option set blog_public 0