diff --git a/defaults/yacy.network.freeworld.unit b/defaults/yacy.network.freeworld.unit index 0c85027b5..3244ccf3e 100644 --- a/defaults/yacy.network.freeworld.unit +++ b/defaults/yacy.network.freeworld.unit @@ -18,7 +18,6 @@ network.unit.bootstrap.seedlist0 = http://www.yacy.net/seed.txt network.unit.bootstrap.seedlist1 = http://home.arcor.de/hermens/yacy/seed.txt network.unit.bootstrap.seedlist2 = http://low.audioattack.de/yacy/seed.txt network.unit.bootstrap.seedlist3 = http://www.lulabad.de/seed.txt -network.unit.bootstrap.seedlist4 = http://www.marcelhenseler.de/yacy/seed.txt # each network may use different yacy distributions. # the auto-updater can access network-specific update locations diff --git a/htroot/AccessTracker_p.html b/htroot/AccessTracker_p.html index 0f15e6f45..7c8517eea 100644 --- a/htroot/AccessTracker_p.html +++ b/htroot/AccessTracker_p.html @@ -9,8 +9,7 @@ #%env/templates/submenuAccessTracker.template%# #(page)#

Server Access Overview

-

This is a list of requests to the local http server within the last hour.

-

Showing #[num]# requests.

+

This is a list of #[num]# requests to the local http server within the last hour.

@@ -32,6 +31,19 @@ #{/list}#
Host
+

The following hosts are registered as source for brute-force requests to protected pages

+ + + + + + #{bflist}# + + + + + #{/bflist}# +
HostAccess Times
#[host]##[accesstimes]#
::

Server Access Details

This is a list of requests to the local http server within the last hour.

diff --git a/htroot/AccessTracker_p.java b/htroot/AccessTracker_p.java index 0c43702c1..dace6959f 100644 --- a/htroot/AccessTracker_p.java +++ b/htroot/AccessTracker_p.java @@ -37,6 +37,7 @@ import de.anomic.http.httpHeader; import de.anomic.net.natLib; import de.anomic.plasma.plasmaSearchQuery; import de.anomic.plasma.plasmaSwitchboard; +import de.anomic.server.serverCore; import de.anomic.server.serverDate; import de.anomic.server.serverObjects; import de.anomic.server.serverSwitch; @@ -82,6 +83,17 @@ public class AccessTracker_p { } } catch (ConcurrentModificationException e) {} // we dont want to synchronize this prop.put("page_list", entCount); + + entCount = 0; + try { + for (Map.Entry bfe: serverCore.bfHost.entrySet()) { + prop.putHTML("page_bflist_" + entCount + "_host", bfe.getKey()); + prop.putNum("page_bflist_" + entCount + "_countSecond", bfe.getValue()); + entCount++; + } + } catch (ConcurrentModificationException e) {} // we dont want to synchronize this + prop.put("page_vflist", entCount); + prop.put("page_num", entCount); } if (page == 1) { diff --git a/source/de/anomic/server/serverCore.java b/source/de/anomic/server/serverCore.java index 61f7d95ea..37f0395e2 100644 --- a/source/de/anomic/server/serverCore.java +++ b/source/de/anomic/server/serverCore.java @@ -123,7 +123,7 @@ public final class serverCore extends serverAbstractBusyThread implements server /** * for brute-force prevention */ - public static HashMap bfHost = new HashMap(); + public static ConcurrentHashMap bfHost = new ConcurrentHashMap(); // class variables /**