Uploaded image for project: 'Nutch'
  1. Nutch
  2. NUTCH-1513

Support Robots.txt for Ftp urls

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.7, 2.2
    • 2.3, 1.8
    • None

    Description

      As per [0], a FTP website can have robots.txt like [1]. In the nutch code, Ftp plugin is not parsing the robots file and accepting all urls.

      In "src/plugin/protocol-ftp/src/java/org/apache/nutch/protocol/ftp/Ftp.java"

         public RobotRules getRobotRules(Text url, CrawlDatum datum) {
          return EmptyRobotRules.RULES;
        }

      Its not clear of this was part of design or if its a bug.

      [0] : https://developers.google.com/webmasters/control-crawl-index/docs/robots_txt
      [1] : ftp://example.com/robots.txt

      Attachments

        1. NUTCH-1513.trunk.v2.patch
          7 kB
          Tejas Patil
        2. NUTCH-1513.trunk.patch
          6 kB
          Tejas Patil
        3. NUTCH-1513.2.x.v2.patch
          6 kB
          Tejas Patil

        Activity

          People

            tejasp Tejas Patil
            tejas.patil Tejas Patil
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: