Warrior Forum - The #1 Digital Marketing Forum & Marketplace

Warrior Forum - The #1 Digital Marketing Forum & Marketplace (https://www.warriorforum.com/)
-   Programming (https://www.warriorforum.com/programming/)
-   -   Spider Prevention Code (https://www.warriorforum.com/programming/441940-spider-prevention-code.html)

GlenH 30th August 2011 12:44 AM

Spider Prevention Code
 
HI Guys,

Can any one tell me the code you add to a web page which prevents that specific page from ever being cached and spidered by the SE’s.

I believe it’s a series of meta tags that have to be are added.

This is specifically to protect a product download page from every being ranked / displayed in the search results.

Thanks

--Glen

johnnyN 30th August 2011 07:26 AM

Re: Spider Prevention Code
 
<meta name="robots" content="noindex" />

http header tag
X-Robots-Tag: noindex

<meta name="robots" content="noarchive" />

<meta name="googlebot" content="nosnippet" />

don't forget robots.txt

GlenH 30th August 2011 07:41 AM

Re: Spider Prevention Code
 
Thanks for that johnnyN,

So do I put..

<meta name="robots" content="noindex" />

<meta name="robots" content="noarchive" />

<meta name="googlebot" content="nosnippet" />

inside the <head> </head> tags?


I just wasn't to car on what you described

-Gle

ereadergold 30th August 2011 07:46 AM

Re: Spider Prevention Code
 
I think this might explain it better:

The Web Robots Pages

Essentially you need a file called robots.txt to direct spiders away from content you don't want scanned.

Bill

johnnyN 30th August 2011 08:07 AM

Re: Spider Prevention Code
 
Quote:

Originally Posted by GlenH (Post 4573906)
Thanks for that johnnyN,

So do I put..

<meta name="robots" content="noindex" />

<meta name="robots" content="noarchive" />

<meta name="googlebot" content="nosnippet" />

inside the <head> </head> tags?


I just wasn't to car on what you described

-Gle

yes these go in the <head></head> section


All times are GMT -6. The time now is 01:02 PM.