While poring over our access logs, I was wondering whether it would make sense to ask the crawlers not to look at our "print" and "xml" views of the pages. These don't provide any additional information.

The code to patch lives in Everything/HTML.pm. linkNode needs to learn about another parameter which will contain a hashref of HTML attributes to append (in addition to the implicit href= attribute). Then superdoc title chooser would need to be patched to use the new parameter to prevent crawlers from following these views.

Replies are listed 'Best First'.
Re: Make "print" and "xml" links rel="nofollow"?
by jdporter (Paladin) on Sep 28, 2008 at 13:20 UTC
    Makes sense to me.
Re: Make "print" and "xml" links rel="nofollow"?
by smiffy (Pilgrim) on Sep 29, 2008 at 06:23 UTC

    If what you are using does not currently support the rel attribute, yes, it would certainly be worthwhile adding that support.

    However, for greatest flexibility, might it not be an idea to add support for arbitrary attribute name-value pairs rather than just rel="foo"? This would solve both your problem and others as yet unforeseen.