From b70acc4bce1450a726cf50a2f2f09539d74252b0 Mon Sep 17 00:00:00 2001
From: Horus3
Date: Wed, 16 Apr 2014 13:43:34 +0200
Subject: Improved brutforce protection and added ban page.
---
www/httperror.php | 4 ++++
1 file changed, 4 insertions(+)
(limited to 'www/httperror.php')
diff --git a/www/httperror.php b/www/httperror.php
index 8b1a62a..e22dd28 100755
--- a/www/httperror.php
+++ b/www/httperror.php
@@ -49,6 +49,10 @@
}elseif($_GET['e']==504){
echo '
'.$_GET['e'].'
';
echo 'A server i'm trying to contact is insanely slow. I can't wait forever. I'm sorry!
';
+
+ }elseif($_GET['e']=='ban'){
+ echo 'You are banned!
';
+ echo 'Too many authentication failures.It's not my fault. I swear.
';}
}?>
--
cgit v1.2.3
From e5447d0702de9733f14d5d6ff1e1b46aac9335af Mon Sep 17 00:00:00 2001
From: root
Date: Wed, 16 Apr 2014 13:49:08 +0200
Subject: Comments.
---
www/httperror.php | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
(limited to 'www/httperror.php')
diff --git a/www/httperror.php b/www/httperror.php
index e22dd28..423f0fa 100755
--- a/www/httperror.php
+++ b/www/httperror.php
@@ -6,6 +6,8 @@
500
502
504
+
+ ban -- user is banned and not allowed to log in
404 is displayed if $_GET["e"] is not set.
@@ -52,7 +54,7 @@
}elseif($_GET['e']=='ban'){
echo 'You are banned!
';
- echo 'Too many authentication failures.It's not my fault. I swear.
';}
+ echo 'Too many authentication failures.It's not my fault. I swear.
';
}?>
--
cgit v1.2.3