Welcome to the new design! Please report any bugs or issues, thanks :)
Web Dev + WordPress + Security

How to Add Meta Noindex to Your Feeds

Want to make sure that your feeds are not indexed by Google and other compliant search engines? Add the following code to the channel element of your XML-based (RSS, etc.) feeds:

<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />

Here is an example of how I use this tag for Perishable Press feeds (vertical spacing added for emphasis):

<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0">

<channel>
	<title>Perishable Press</title>
	<link>https://perishablepress.com/</link>
	<description>Digital Design and Dialogue ~</description>
	<pubDate>Mon, 29 Oct 2007 21:38:24</pubDate>
	<language>en</language>


	<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />


	<image>
	   <link>https://perishablepress.com/</link>
	   <url>https://perishablepress.com/_/perishable-press.jpeg</url>
	   <title>Perishable Press</title>
	</image>
	<item>
	   <title>Welcome to Perishable Press</title>
	   <link>https://perishablepress.com/</link>
	   <dc:creator>Perishable</dc:creator>
	   <dc:subject>WordPress</dc:subject>
	   .
	   .
	   .

Of course, other meta elements may be added as well, including this one that disallows Yahoo! Pipes from processing your feed:

<meta xmlns="http://pipes.yahoo.com" name="pipes" content="noprocess" />

While we’re at it, what do you think are some other useful meta elements to add to XML/RSS feeds?

Jeff Starr
About the Author
Jeff Starr = Web Developer. Book Author. Secretly Important.
USP Pro: Unlimited front-end forms for user-submitted posts and more.

15 responses to “How to Add Meta Noindex to Your Feeds”

  1. Thanks for the hint with the noindex. So far I’ve had the problem that Google indexes my feed and displays it in the results instead of the correct subpage. Totally weird. I hope the additional noindex-code will solve this problem.

  2. Jeff Starr
    Perishable 2008/05/31 2:19 pm

    Yes, it should definitely solve the problem. If not, there are other ways of keeping your feed (or any other content) out of the search-engine results. In the past, I have employed the following techniques:

    nofollow all local references to the feed URL
    • restricting feed access via the robots.txt file
    • redirect feed-requests from Google et al to the home page

    And of course, adding the noindex directive directly to your feeds is another excellent technique. Hopefully, Google will get will get the picture and begin indexing the correct subpages instead of your feed. Let us know how it goes!

  3. How I add this code into wordpress feed?

    thanks

Comments are closed for this post. Something to add? Let me know.
Welcome
Perishable Press is operated by Jeff Starr, a professional web developer and book author with two decades of experience. Here you will find posts about web development, WordPress, security, and more »
Digging Into WordPress: Take your WordPress skills to the next level.
Thoughts
2 things I hate to see in stylesheets: _ and #
Love VLC media player but it fails miserably when it comes to randomizing large collections of mp3 and other files.
Dashlane redesigned, stating proudly they "removed all filigree". Should have kept it; the app now looks generic and boring. Killed your identity.
Working on integration for setaPDF + EDD on the new books subdomain. Good times.
Toggle visibility of hidden files on Mac: Cmd + Shift + .
Great tool for checking browser caching for web pages and all included files.
The new minimalist design styled by 14KB of CSS (uncompressed and un-minified). That covers 850+ posts and pages spanning 15 years of diverse content.