Version Description
Fix harmless warning.
Download this release
Release Info
Developer | invisnet |
Plugin | WP fail2ban |
Version | 1.2 |
Comparing to | |
See all releases |
Code changes from version 1.1 to 1.2
- readme.txt +5 -2
- wp-fail2ban.php +2 -2
readme.txt
CHANGED
@@ -4,8 +4,8 @@ Author URI: https://charles.lecklider.org/
|
|
4 |
Plugin URI: https://charles.lecklider.org/wordpress/wp-fail2ban/
|
5 |
Tags: fail2ban, security, syslog, login
|
6 |
Requires at least: 3.4.0
|
7 |
-
Tested up to: 3.
|
8 |
-
Stable tag: 1.
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
@@ -42,6 +42,9 @@ There are no options to configure.
|
|
42 |
|
43 |
== Changelog ==
|
44 |
|
|
|
|
|
|
|
45 |
= 1.1 =
|
46 |
Minor cosmetic updates.
|
47 |
|
4 |
Plugin URI: https://charles.lecklider.org/wordpress/wp-fail2ban/
|
5 |
Tags: fail2ban, security, syslog, login
|
6 |
Requires at least: 3.4.0
|
7 |
+
Tested up to: 3.5
|
8 |
+
Stable tag: 1.2
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
42 |
|
43 |
== Changelog ==
|
44 |
|
45 |
+
= 1.2 =
|
46 |
+
Fix harmless warning.
|
47 |
+
|
48 |
= 1.1 =
|
49 |
Minor cosmetic updates.
|
50 |
|
wp-fail2ban.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: WP fail2ban
|
4 |
Plugin URI: https://charles.lecklider.org/wordpress/wp-fail2ban/
|
5 |
Description: Write all login attempts to syslog for integration with fail2ban.
|
6 |
-
Version: 1.
|
7 |
Author: Charles Lecklider
|
8 |
Author URI: https://charles.lecklider.org/
|
9 |
License: GPL2
|
@@ -31,7 +31,7 @@ add_action( 'wp_login',
|
|
31 |
{
|
32 |
openlog('wordpress('.$_SERVER['HTTP_HOST'].')',LOG_NDELAY|LOG_PID,LOG_AUTH);
|
33 |
syslog(LOG_INFO,"Accepted password for $user_login from {$_SERVER['REMOTE_ADDR']}");
|
34 |
-
});
|
35 |
add_action( 'wp_login_failed',
|
36 |
function($username)
|
37 |
{
|
3 |
Plugin Name: WP fail2ban
|
4 |
Plugin URI: https://charles.lecklider.org/wordpress/wp-fail2ban/
|
5 |
Description: Write all login attempts to syslog for integration with fail2ban.
|
6 |
+
Version: 1.2
|
7 |
Author: Charles Lecklider
|
8 |
Author URI: https://charles.lecklider.org/
|
9 |
License: GPL2
|
31 |
{
|
32 |
openlog('wordpress('.$_SERVER['HTTP_HOST'].')',LOG_NDELAY|LOG_PID,LOG_AUTH);
|
33 |
syslog(LOG_INFO,"Accepted password for $user_login from {$_SERVER['REMOTE_ADDR']}");
|
34 |
+
},10,2);
|
35 |
add_action( 'wp_login_failed',
|
36 |
function($username)
|
37 |
{
|