do not Use YaCy-Sites as Referer, if useYacyReferer = false

http://www.yacy-forum.de/viewtopic.php?p=8896#8896


git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@637 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
allo 20 years ago
parent f9eb550fbc
commit 286442fbc5

@ -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" :

@ -515,4 +515,6 @@ crawler.isPaused=false
# maximum number of crawler threads
crawler.MaxActiveThreads = 10
crawler.MaxIdleThreads = 7
crawler.MinIdleThreads = 5
crawler.MinIdleThreads = 5
useYacyReferer = true

Loading…
Cancel
Save