Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
do not Use YaCy-Sites as Referer, if useYacyReferer = false http://www.yacy-forum.de/viewtopic.php?p=8896#8896
allo286442fbc5ce
diff --git a/source/de/anomic/http/httpc.java b/source/de/anomic/http/httpc.javaindex 36d404081..b0cf142f8 100644--- a/source/de/anomic/http/httpc.java+++ b/source/de/anomic/http/httpc.java@@ -559,7 +559,8 @@ public final class httpc {}// advertise a little bit...- if ((!(header.containsKey(httpHeader.REFERER))) || (((String) header.get(httpHeader.REFERER)).trim().length() == 0)) {+ plasmaSwitchboard sb = plasmaSwitchboard.getSwitchboard();+ if ( (!(header.containsKey(httpHeader.REFERER))) || (((String) header.get(httpHeader.REFERER)).trim().length() == 0)&& sb.getConfig("useYacyReferer", "true").equals("true") ) {header.put(httpHeader.REFERER,(((System.currentTimeMillis() >> 10) & 1) == 0) ?"http://www.anomic.de" :diff --git a/yacy.init b/yacy.initindex 75484fba0..be2fb9ee8 100644--- a/yacy.init+++ b/yacy.init@@ -515,4 +515,6 @@ crawler.isPaused=false# maximum number of crawler threadscrawler.MaxActiveThreads = 10crawler.MaxIdleThreads = 7-crawler.MinIdleThreads = 5\ No newline at end of file+crawler.MinIdleThreads = 5++useYacyReferer = true