Version Description
- Bugfix: Altered checking for Simple Security Firewall
Download this release
Release Info
Developer | iqpascal |
Plugin | iQ Block Country |
Version | 1.1.25 |
Comparing to | |
See all releases |
Code changes from version 1.1.24 to 1.1.25
- iq-block-country.php +1 -3
- libs/blockcountry-checks.php +6 -3
- readme.txt +6 -2
iq-block-country.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
/*
|
3 |
Plugin Name: iQ Block Country
|
4 |
Plugin URI: http://www.redeo.nl/2013/12/iq-block-country-wordpress-plugin-blocks-countries/
|
5 |
-
Version: 1.1.
|
6 |
Author: Pascal
|
7 |
Author URI: http://www.redeo.nl/
|
8 |
Description: Block visitors from visiting your website and backend website based on which country their IP address is from. The Maxmind GeoIP lite database is used for looking up from which country an ip address is from.
|
@@ -230,8 +230,6 @@ $backendblacklistcheck = FALSE;
|
|
230 |
|
231 |
$blockcountry_is_login_page = iqblockcountry_is_login_page();
|
232 |
|
233 |
-
$blockcountry_is_login_page = iqblockcountry_is_login_page();
|
234 |
-
|
235 |
register_activation_hook(__file__, 'iqblockcountry_this_plugin_first');
|
236 |
register_activation_hook(__file__, 'iqblockcountry_set_defaults');
|
237 |
register_uninstall_hook(__file__, 'iqblockcountry_uninstall');
|
2 |
/*
|
3 |
Plugin Name: iQ Block Country
|
4 |
Plugin URI: http://www.redeo.nl/2013/12/iq-block-country-wordpress-plugin-blocks-countries/
|
5 |
+
Version: 1.1.25
|
6 |
Author: Pascal
|
7 |
Author URI: http://www.redeo.nl/
|
8 |
Description: Block visitors from visiting your website and backend website based on which country their IP address is from. The Maxmind GeoIP lite database is used for looking up from which country an ip address is from.
|
230 |
|
231 |
$blockcountry_is_login_page = iqblockcountry_is_login_page();
|
232 |
|
|
|
|
|
233 |
register_activation_hook(__file__, 'iqblockcountry_this_plugin_first');
|
234 |
register_activation_hook(__file__, 'iqblockcountry_set_defaults');
|
235 |
register_uninstall_hook(__file__, 'iqblockcountry_uninstall');
|
libs/blockcountry-checks.php
CHANGED
@@ -373,17 +373,20 @@ function iqblockcountry_is_login_page() {
|
|
373 |
include_once( ABSPATH . 'wp-admin/includes/plugin.php' );
|
374 |
if ( is_plugin_active( 'all-in-one-wp-security-and-firewall/wp-security.php' ) ) {
|
375 |
$aio = get_option('aio_wp_security_configs');
|
376 |
-
|
|
|
377 |
}
|
378 |
|
379 |
if ( is_plugin_active( 'lockdown-wp-admin/lockdown-wp-admin.php' ) ) {
|
380 |
$ld = get_option('ld_login_base');
|
381 |
-
|
|
|
382 |
}
|
383 |
|
384 |
if ( is_plugin_active( 'wp-simple-firewall/icwp-wpsf.php' ) ) {
|
385 |
$wpsf = get_option('icwp_wpsf_loginprotect_options');
|
386 |
-
|
|
|
387 |
}
|
388 |
|
389 |
|
373 |
include_once( ABSPATH . 'wp-admin/includes/plugin.php' );
|
374 |
if ( is_plugin_active( 'all-in-one-wp-security-and-firewall/wp-security.php' ) ) {
|
375 |
$aio = get_option('aio_wp_security_configs');
|
376 |
+
if (!empty($aio)) {
|
377 |
+
$pos2 = strpos( $_SERVER['REQUEST_URI'], $aio['aiowps_login_page_slug'] ); }
|
378 |
}
|
379 |
|
380 |
if ( is_plugin_active( 'lockdown-wp-admin/lockdown-wp-admin.php' ) ) {
|
381 |
$ld = get_option('ld_login_base');
|
382 |
+
if (!empty($ld)) {
|
383 |
+
$pos2 = strpos( $_SERVER['REQUEST_URI'], $ld); }
|
384 |
}
|
385 |
|
386 |
if ( is_plugin_active( 'wp-simple-firewall/icwp-wpsf.php' ) ) {
|
387 |
$wpsf = get_option('icwp_wpsf_loginprotect_options');
|
388 |
+
if (!empty($wpsf['rename_wplogin_path'])) {
|
389 |
+
$pos2 = strpos( $_SERVER['REQUEST_URI'], $wpsf['rename_wplogin_path'] ); }
|
390 |
}
|
391 |
|
392 |
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: http://www.redeo.nl/plugins/donate
|
|
4 |
Tags: spam, block, countries, country, comments, ban, geo, geo blocking, geo ip, block country, block countries, ban countries, ban country, blacklist, whitelist
|
5 |
Requires at least: 3.5.2
|
6 |
Tested up to: 4.4
|
7 |
-
Stable tag: 1.1.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -169,10 +169,14 @@ You can select the option on the home tab "Do not log IP addresses" to stop iQ B
|
|
169 |
|
170 |
== Changelog ==
|
171 |
|
|
|
|
|
|
|
|
|
172 |
= 1.1.24 =
|
173 |
|
174 |
* New: Added support for Lockdown WordPress Admin
|
175 |
-
* New: Added support for WordPress Security Firewall
|
176 |
* Change: Various small changes
|
177 |
|
178 |
= 1.1.23 =
|
4 |
Tags: spam, block, countries, country, comments, ban, geo, geo blocking, geo ip, block country, block countries, ban countries, ban country, blacklist, whitelist
|
5 |
Requires at least: 3.5.2
|
6 |
Tested up to: 4.4
|
7 |
+
Stable tag: 1.1.25
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
169 |
|
170 |
== Changelog ==
|
171 |
|
172 |
+
= 1.1.25 =
|
173 |
+
|
174 |
+
* Bugfix: Altered checking for Simple Security Firewall
|
175 |
+
|
176 |
= 1.1.24 =
|
177 |
|
178 |
* New: Added support for Lockdown WordPress Admin
|
179 |
+
* New: Added support for WordPress Security Firewall (Simple Security Firewall)
|
180 |
* Change: Various small changes
|
181 |
|
182 |
= 1.1.23 =
|