Skip to content

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

no DoS protection for intranet mode

Michael Peter Christen88b86afc89a8
diff --git a/htroot/yacysearch.java b/htroot/yacysearch.java
index 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 counter
if ( !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 cases
synchronized ( trackerHandles ) {
final int accInThreeSeconds =