An idea could be checking the user agent. If it's a bot (maybe even an automated client such as wget), PM could log it in as a specific user. This user would have the relevant nodelets disabled in the user preferences. Other setting such as max depth could be useful to alter too.

Then the spider could happily start its crawl on the site, free of much noise (for the spider, for its lots of fun for us). Or it could be redirected to a relevant section.

Sure, checking the user agent (when a user is not logged in) might be expensive, but most pages require extensive database usage anyway. Probably the cost of checking the user agent against a certain set of known bots (easy to obtain and maintain from Web server logs) is compesated by much less nodelets requests afterwards.

Maybe it can be done on the homepage only but, since most pages are implemented through index.pl, it may be worth checking every time. That is, every time a request comes from a client which is not logged in.

-- TMTOWTDI


In reply to Re: Re: Why no robots.txt? by trantor
in thread Why no robots.txt? by pileswasp

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.