Skip to content

Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance

*) more correct robots.txt validation - isDisallowed now uses getFile instead of getPath

theli734d18f283d9
diff --git a/source/de/anomic/data/robotsParser.java b/source/de/anomic/data/robotsParser.java
index 8c120ed4a..d591a7de4 100644
--- a/source/de/anomic/data/robotsParser.java
+++ b/source/de/anomic/data/robotsParser.java
@@ -67,6 +67,11 @@ import de.anomic.server.logging.serverLog;
* It only parses the Deny Part, yet.
* *
* http://www.robotstxt.org/wc/norobots-rfc.html
+ *
+ * TODO:
+ * - On the request attempt resulted in temporary failure a robot
+ * should defer visits to the site until such time as the resource
+ * can be retrieved.
*/
public final class robotsParser{
@@ -263,7 +268,7 @@ public final class robotsParser{
}
}
- if (robotsTxt4Host.isDisallowed(nexturl.getPath())) {
+ if (robotsTxt4Host.isDisallowed(nexturl.getFile())) {
return true;
}
return false;