Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
no DoS protection for intranet mode
Michael Peter Christen88b86afc89a8
diff --git a/htroot/yacysearch.java b/htroot/yacysearch.javaindex f6c3ad896..f7b659cf6 100644--- a/htroot/yacysearch.java+++ b/htroot/yacysearch.java@@ -248,6 +248,7 @@ public class yacysearch {|| sb.getConfigBool(SwitchboardConstants.INDEX_RECEIVE_AUTODISABLED, true)|| clustersearch;global = global && indexReceiveGranted; // if the user does not want indexes from remote peers, it cannot be a global searchnn+ final boolean intranetMode = sb.isIntranetMode() || sb.isAllIPMode();// increase search statistic counterif ( !global ) {@@ -298,7 +299,7 @@ public class yacysearch {Log.logInfo("LOCAL_SEARCH", "ACCESS CONTROL: WHITELISTED CLIENT FROM "+ client+ " gets no search restrictions");- } else if ( !authenticated && !localhostAccess ) {+ } else if ( !authenticated && !localhostAccess && !intranetMode ) {// in case that we do a global search or we want to fetch snippets, we check for DoS casessynchronized ( trackerHandles ) {final int accInThreeSeconds =