- Protect Web UI authentication against brute forcing (IP are banned after 3 failed attempts)

This commit is contained in:
Christophe Dumez
2010-01-14 20:40:06 +00:00
parent 2bf8e2d2d7
commit 9c4c5e2d1a
2 changed files with 17 additions and 4 deletions

View File

@@ -35,6 +35,7 @@
#include <QPair>
#include <QTcpServer>
#include <QByteArray>
#include <QHash>
class Bittorrent;
class QTimer;
@@ -56,6 +57,7 @@ class HttpServer : public QTcpServer {
void setAuthorization(QString username, QString password_md5);
bool isAuthorized(QByteArray auth) const;
EventManager *eventManager() const;
QHash<QString, int> client_failed_attempts;
private slots:
void newHttpConnection();