Skip to content

Commit 058bdd9

Browse files
Added change log, all brute strings are now case insensitive.
1 parent 4ac0461 commit 058bdd9

File tree

3 files changed

+14
-4
lines changed

3 files changed

+14
-4
lines changed

CHANGELOG.txt

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
v.0.1.2
2+
- Check against any brute string case insensitive
3+
- Added change log
4+
5+
v.0.1.1
6+
- Check against admin string case insensitive
7+
8+
V. 0.1.0
9+
- Initial release

README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,5 @@ do that as well:
1010
http://www.wordfence.com/
1111

1212
The WordFence plugin will provide you with much better protection, and it will
13-
tell you the `brutes` trying to hack their way in to your WordPress setup.
13+
tell you the `brutes` trying to hack their way in to your WordPress setup.
14+

ghobe.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ class ghobe
6060
$HIja;
6161

6262
const
63-
Version = '0.1.1',
63+
Version = '0.1.2',
6464
PoweredBy = "ghobe' Brute Force Blocker";
6565

6666
public function __construct($brutes = null, $header = true)
@@ -69,7 +69,7 @@ public function __construct($brutes = null, $header = true)
6969

7070
$this->HIja = false;
7171
$this->bullies = 'adm aaa developer manager qwerty root support test user';
72-
$this->brutes = array_flip(array_unique(explode(' ', trim($this->bullies . ' ' . $brutes))));
72+
$this->brutes = array_flip(array_unique(explode(' ', strtolower(trim($this->bullies . ' ' . $brutes)))));
7373

7474
$this->findbrute();
7575
$this->checkadmin();
@@ -88,7 +88,7 @@ private function findbrute()
8888
elseif(isset($_POST['log'])) { $brute = $_POST['log']; } // end if
8989
elseif(isset($_GET['log'])) { $brute = $_GET['log']; } // end if
9090

91-
$this->brute = $brute;
91+
$this->brute = strtolower($brute);
9292
} // end findbrute
9393

9494
private function checkadmin()

0 commit comments

Comments
 (0)