Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to prevent search engines from indexing a single page of my website?

Tags:

html

seo

I don't want the search engines to index my imprint page. How could I do that?

like image 351
Proud Member Avatar asked Oct 29 '10 19:10

Proud Member


People also ask

How do I stop search engines from indexing my site?

You can prevent a page or other resource from appearing in Google Search by including a noindex meta tag or header in the HTTP response. When Googlebot next crawls that page and sees the tag or header, Google will drop that page entirely from Google Search results, regardless of whether other sites link to it.

Can you hide a page from search engine?

There are three ways to hide a website from search results: Use a password. Block crawling. Block indexing.

How do I stop content from showing up in search results?

You can prevent new content from appearing in results by adding the URL slug to a robots. txt file. Search engines use these files to understand how to index a website's content. If search engines have already indexed your content, you can add a "noindex" meta tag to the content's head HTML.


2 Answers

Also you can add following meta tag in HEAD of that page

<meta name="robots" content="noindex,nofollow" /> 
like image 188
seriyPS Avatar answered Sep 28 '22 02:09

seriyPS


You need a simple robots.txt file. Basically, it's a text file that tells search engines not to index particular pages.
You don't need to include it in the header of your page; as long as it's in the root directory of your website it will be picked up by crawlers.
Create it in the root folder of your website and put the following text in:

User-Agent: * Disallow: /imprint-page.htm 

Note that you'd replace imprint-page.html in the example with the actual name of the page (or the directory) that you wish to keep from being indexed.

That's it! If you want to get more advanced, you can check out here, here, or here for a lot more info. Also, you can find free tools online that will generate a robots.txt file for you (for example, here).

like image 37
Donut Avatar answered Sep 28 '22 03:09

Donut