Can I include a robots meta tag outside of the head in HTML snippets indeded to be SSIed?

Posted by Dan on Pro Webmasters See other posts from Pro Webmasters or by Dan
Published on 2012-10-31T01:19:51Z Indexed on 2012/10/31 5:22 UTC
Read the original article Hit count: 275

I have a number of files in my site which are not intended for independent viewing, but rather to be AJAXed into content within the site. They obviously don't meet HTML standards (no body, head, etc.) as independent entities. I would like to prevent search engines from indexing these pages, but do not have access to /robots.txt (which would be much more ideal).

My question is, could I include the following at the top of these partial HTML files and get the desired results?

<meta name="robots" content="noindex, noarchive">

I guess there are two parts to this question.

  1. Will this cause any rendering issues in any browsers?
  2. Will search engines (at least Google & Bing) interpret this as intended?

© Pro Webmasters or respective owner

Related posts about html

Related posts about robots.txt