Forum Moderators: open
Of course you can also include nofollow and noindex in the same tag:
<meta name="googlebot" content="noindex,nofollow,noarchive">
A lot of people also mentioned the robot.txt file. A point to note is that google will follow the meta tag over the robots.txt file if both are presend. Not a lot of people realise that...
Now for my question: If you use include files, say for a header or footer and want thes files excluded from search engines (you wouldn't want them popping up on saerch engines after all!) and you set a noindex, nofollow, noarchive tag and/or exclude them in the robot.txt file, will the "main" page which call these include files still be indexed on google etc.? Does that make sense?!
I'll give you an example. My main page index.php has the robots meta tag set to all, because it wants to be found by google etc. However, It calls header.php at the top of the page (but below the meta tags) and footer.php at the bottom of the page. Both of these have the robots meta set to nofollow, noindex etc. as they don't want to be indexed individualy. If you were to then load index.php and look at the source, it would allow the robots at the top of the code, but further down it would block the robots! Which would it follow.
Or is it the case that the header.php and footer.php files don't need to have any meta tags set, as they are only called via and include command and are not hyperlinked anywhere? If this is the case maybe it's prudent to get rid of all meta tags on them but exclude them via the robot.txt file?
I'm not expecting one answer to all of this, I just wanted to start a discussion on it really!
Thanks all!