Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
changed order of robots and double-check
orbiterc6d2f50375f4
diff --git a/source/de/anomic/plasma/plasmaSwitchboard.java b/source/de/anomic/plasma/plasmaSwitchboard.javaindex 023360a28..b84065f4e 100644--- a/source/de/anomic/plasma/plasmaSwitchboard.java+++ b/source/de/anomic/plasma/plasmaSwitchboard.java@@ -1195,8 +1195,9 @@ public final class plasmaSwitchboard extends serverAbstractSwitch implements ser// filter denyif ((currentdepth > 0) && (profile != null) && (!(nexturlString.matches(profile.generalFilter())))) {reason = "denied_(does_not_match_filter)";+ /*urlPool.errorURL.newEntry(nexturl, referrerHash, initiatorHash, yacyCore.seedDB.mySeed.hash,- name, reason, new bitfield(plasmaURL.urlFlagLength), false);+ name, reason, new bitfield(plasmaURL.urlFlagLength), false);*/log.logFine("URL '" + nexturlString + "' does not match crawling filter '" + profile.generalFilter() + "'.");return reason;}@@ -1204,8 +1205,9 @@ public final class plasmaSwitchboard extends serverAbstractSwitch implements ser// deny cgiif (plasmaHTCache.isCGI(nexturlString)) {reason = "denied_(cgi_url)";+ /*urlPool.errorURL.newEntry(nexturl, referrerHash, initiatorHash, yacyCore.seedDB.mySeed.hash,- name, reason, new bitfield(plasmaURL.urlFlagLength), false);+ name, reason, new bitfield(plasmaURL.urlFlagLength), false);*/log.logFine("URL '" + nexturlString + "' is cgi URL.");return reason;}@@ -1213,33 +1215,35 @@ public final class plasmaSwitchboard extends serverAbstractSwitch implements ser// deny post propertiesif ((plasmaHTCache.isPOST(nexturlString)) && (profile != null) && (!(profile.crawlingQ()))) {reason = "denied_(post_url)";+ /*urlPool.errorURL.newEntry(nexturl, referrerHash, initiatorHash, yacyCore.seedDB.mySeed.hash,- name, reason, new bitfield(plasmaURL.urlFlagLength), false);+ name, reason, new bitfield(plasmaURL.urlFlagLength), false);*/log.logFine("URL '" + nexturlString + "' is post URL.");return reason;}- // checking robots.txt- if (robotsParser.isDisallowed(nexturl)) {- reason = "denied_(robots.txt)";- urlPool.errorURL.newEntry(nexturl, referrerHash, initiatorHash, yacyCore.seedDB.mySeed.hash,- name, reason, new bitfield(plasmaURL.urlFlagLength), false);- log.logFine("Crawling of URL '" + nexturlString + "' disallowed by robots.txt.");- return reason;- }--String nexturlhash = plasmaURL.urlHash(nexturl);String dbocc = "";if ((dbocc = urlPool.exists(nexturlhash)) != null) {// DISTIGUISH OLD/RE-SEARCH CASES HERE!reason = "double_(registered_in_" + dbocc + ")";+ /*urlPool.errorURL.newEntry(nexturl, referrerHash, initiatorHash, yacyCore.seedDB.mySeed.hash,- name, reason, new bitfield(plasmaURL.urlFlagLength), false);+ name, reason, new bitfield(plasmaURL.urlFlagLength), false);*/log.logFine("URL '" + nexturlString + "' is double registered in '" + dbocc + "'.");return reason;}+ // checking robots.txt+ if (robotsParser.isDisallowed(nexturl)) {+ reason = "denied_(robots.txt)";+ /*+ urlPool.errorURL.newEntry(nexturl, referrerHash, initiatorHash, yacyCore.seedDB.mySeed.hash,+ name, reason, new bitfield(plasmaURL.urlFlagLength), false);*/+ log.logFine("Crawling of URL '" + nexturlString + "' disallowed by robots.txt.");+ return reason;+ }+// store informationboolean local = ((initiatorHash.equals(plasmaURL.dummyHash)) || (initiatorHash.equals(yacyCore.seedDB.mySeed.hash)));boolean global =