Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
* Robots.txt: don't interpret Crawl-Delays for other robots fixes: http://forum.yacy-websuche.de/viewtopic.php?f=5&t=1647
f1ori0881190b197f
diff --git a/source/de/anomic/crawler/robotsParser.java b/source/de/anomic/crawler/robotsParser.javaindex 97b9648f0..74f49c91a 100644--- a/source/de/anomic/crawler/robotsParser.java+++ b/source/de/anomic/crawler/robotsParser.java@@ -147,15 +147,18 @@ public final class robotsParser {if (isRule4YaCyAgent) rule4YaCyFound = true;}} else if (lineUpper.startsWith(ROBOTS_CRAWL_DELAY)) {- pos = line.indexOf(" ");- if (pos != -1) {- try {- // the crawl delay can be a float number and means number of seconds- crawlDelayMillis = (long) (1000.0 * Float.parseFloat(line.substring(pos).trim()));- } catch (final NumberFormatException e) {- // invalid crawling delay- }- }+ inBlock = true;+ if (isRule4YaCyAgent || isRule4AllAgents) {+ pos = line.indexOf(" ");+ if (pos != -1) {+ try {+ // the crawl delay can be a float number and means number of seconds+ crawlDelayMillis = (long) (1000.0 * Float.parseFloat(line.substring(pos).trim()));+ } catch (final NumberFormatException e) {+ // invalid crawling delay+ }+ }+ }} else if (lineUpper.startsWith(ROBOTS_DISALLOW) ||lineUpper.startsWith(ROBOTS_ALLOW)) {inBlock = true;