in the network configuration, you can configure a whiteliste and a blacklist
- blacklistet clients cannot search
- whitelistet client get never any search restrictions
- for all other clients: apply DoS search restrictions
Please see the example configuriation in yacy.network.freeworld.unit
by default, all clients from localhosts get whitlistet.
If you have your own YaCy network, please put all the IPs of your peers into the whitelist
git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@5475 6c8d7289-2bf4-0310-a012-ef5d649a1542
serverLog.logWarning("LOCAL_SEARCH","ACCECC CONTROL: CLIENT FROM "+client+": "+accInTenMinutes+" searches in ten minutes, fully blocked (no results generated)");
serverLog.logWarning("LOCAL_SEARCH","ACCECC CONTROL: CLIENT FROM "+client+": "+accInOneMinute+" searches in one minute, fully blocked (no results generated)");
serverLog.logWarning("LOCAL_SEARCH","ACCECC CONTROL: CLIENT FROM "+client+": "+accInThreeSeconds+" searches in three seconds, blocked global search and snippets");
}elseif(accInOneSecond>2){
global=false;
fetchSnippets=false;
block =true;
serverLog.logWarning("LOCAL_SEARCH","ACCECC CONTROL: CLIENT FROM "+client+": "+accInOneSecond+" searches in one second, blocked global search and snippets");
@ -236,6 +238,7 @@ public final class plasmaSwitchboard extends serverAbstractSwitch<IndexingStack.
publicTreeMap<String,String>clusterhashes;// map of peerhash(String)/alternative-local-address as ip:port or only ip (String) or null if address in seed should be used