Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
*) Changing robots parser cxclusion policy - crawling is now allowed if server returned a 403 statuscode when trying to download the robots.txt See: http://www.yacy-forum.de/viewtopic.php?t=1612
theli754a35877fd7
diff --git a/source/de/anomic/data/robotsParser.java b/source/de/anomic/data/robotsParser.javaindex f63122503..52a325aa7 100644--- a/source/de/anomic/data/robotsParser.java+++ b/source/de/anomic/data/robotsParser.java@@ -293,7 +293,7 @@ public final class robotsParser{if (modDate != null) reqHeaders.put(httpHeader.IF_MODIFIED_SINCE,httpc.dateString(entry.getModDate()));}- httpc.response res = con.GET(robotsURL.getPath(), reqHeaders);+ httpc.response res = con.GET(robotsURL.getFile(), reqHeaders);if (res.status.startsWith("2")) {if (!res.responseHeader.mime().startsWith("text/plain")) {robotsTxt = null;@@ -336,7 +336,7 @@ public final class robotsParser{"\nRedirecting request to: " + redirectionUrl);return downloadRobotsTxt(redirectionUrl,redirectionCount,entry);- } else if (res.status.startsWith("401") || res.status.startsWith("403")) {+ } else if (res.status.startsWith("401")/* || res.status.startsWith("403") */) {accessCompletelyRestricted = true;serverLog.logFinest("ROBOTS","Access to Robots.txt not allowed on URL '" + robotsURL + "'.");} else {