diff options
author | Thorbjørn Lindeijer <bjorn@lindeijer.nl> | 2009-10-03 22:14:24 +0200 |
---|---|---|
committer | Thorbjørn Lindeijer <bjorn@lindeijer.nl> | 2009-10-03 22:21:41 +0200 |
commit | 4cbf5877c9ca5d3e5754e568fbadd670fe1f7ff6 (patch) | |
tree | e50cdb70ec69af7d7b1af79fbef13b78a4015aca /src/utils/tokencollector.cpp | |
parent | af0d672fcb9fb8da583f014b9875350e7480f467 (diff) | |
download | manaserv-4cbf5877c9ca5d3e5754e568fbadd670fe1f7ff6.tar.gz manaserv-4cbf5877c9ca5d3e5754e568fbadd670fe1f7ff6.tar.bz2 manaserv-4cbf5877c9ca5d3e5754e568fbadd670fe1f7ff6.tar.xz manaserv-4cbf5877c9ca5d3e5754e568fbadd670fe1f7ff6.zip |
Limit login attempt frequency based on IP address
The previous method was broken because it set the "last time" to the
current time when the client connected. So login would fail when the
username and password were sent within a second from connecting, which
is not desirable.
If I'd have fixed this by setting the "last time" to login time minus
one second, then an attacker would just need to reconnect for each login
attempt. So now it uses an IP address based approach, where each IP can
only try to log in once per second.
Diffstat (limited to 'src/utils/tokencollector.cpp')
0 files changed, 0 insertions, 0 deletions