Blocking Search Engine Spiders From Indexing

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
108
Regular
Posts: 16
Joined: Fri May 13, 2011 9:15 am

Blocking Search Engine Spiders From Indexing

Post by 108 »

Hi,

I want to block all search engine spiders from indexing my blog pages. Where do I place the norobots code to accomplish this, and is there more effective code to use than the norobots parameter?

Thanks!
108
Don Chambers
Regular
Posts: 3657
Joined: Mon Feb 13, 2006 2:40 am
Location: Chicago, IL, USA
Contact:

Re: Blocking Search Engine Spiders From Indexing

Post by Don Chambers »

There is no guarantee it will always work, but you could put the following into your <head>:

Code: Select all

<meta name="robots" content="noindex, nofollow" />
You can edit your template's index.tpl file to do that, or you can use the event plugin "HTML-Code inside head (HTML-Head Nugget)" (serendipity_event_head_nugget)
=Don=
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Blocking Search Engine Spiders From Indexing

Post by garvinhicking »

Hi!

If you want do disallow all, create a robots.txt file with "Disallow: /" - no need to create any HTML headers.

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
108
Regular
Posts: 16
Joined: Fri May 13, 2011 9:15 am

Re: Blocking Search Engine Spiders From Indexing

Post by 108 »

Thank you!
Post Reply