There are several options to prevent your website from being indexed by Google. For the best results, it is highly recommended to use them all. Otherwise, your website may still appear in the search results.
The first is the use of a robots.txt file. Basically, you need to create a file named robots.txt with the following content:
User-agent: *
Disallow: /Next, place this file in the web root for your domain name. Such a robots.txt file is intended to prevent all web crawlers from indexing your website. However, keep in mind that in this case, Google will still index your pages linked from other websites.
The second option is to set a "noindex" meta tag for your pages. If the meta tag you have for the page is "noindex," Google will completely remove the page from the search results. If the page/website is currently indexed, it must be removed the next time it is crawled by Google.
The third option is to use Google Webmaster Tools. Here are step-by-step instructions on how to use them:
- You must create an account with Google Webmaster Tools;
- Sign in to your Google Webmaster Tools account;
- If the account is new, you must add your website;
1. Click on "Add a site".
2. Enter the URL of your website and click on "Continue"
- Now you must open the website removal tool;
- Once you have opened the website removal tool, click on "New removal request";
- On the 'Create a new request' page, select the options that correspond to your removal request, fill in the required fields, and then click the Submit request button.