Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to Hide a Particular website page URL from Search engines?

  1. My project is an E-commerce website that It contains lot of static and dynamic pages. I want to hide only one page from Search engines. If any one search that text then it need not display on search engine like "Google","Yahoo" etc.

http://www.mysitename.com/users/download/id

The above url need to hide in search engines.

If any one searching my mysitename then above link also displaying in Google search as of now. what i can do for this ?

like image 332
AnNaMaLaI Avatar asked Aug 23 '12 09:08

AnNaMaLaI


2 Answers

Add a file robots.txt in your website root directory with the following contents:

User-agent: *
Disallow: /users/download/id

This approach basically tells the Search Engine not to index /users/download/id.

This doesn't mean every Search Engine will do that, but most of the modern Search Engines will take in consideration that file.

like image 148
Mihai Iorga Avatar answered Sep 19 '22 12:09

Mihai Iorga


You can use Seo technique...

There is code you can put into your HTML which will prevent the bots from spidering your page(s). This code is put in the header of your web page(s) (meaning between the and tags), in the form of a meta tag (and you thought meta tags were for keywords only).

Here are four examples of how this code will look;

<meta name="robots" content="index,follow">
<meta name="robots" content="noindex,follow">
<meta name="robots" content="index,nofollow">
<meta name="robots" content="noindex,nofollow">
like image 36
Pank Avatar answered Sep 18 '22 12:09

Pank