Version Description
- Fix: Small errors
Download this release
Release Info
Developer | iqpascal |
Plugin | iQ Block Country |
Version | 1.2.18 |
Comparing to | |
See all releases |
Code changes from version 1.2.17 to 1.2.18
- iq-block-country.php +1 -1
- libs/blockcountry-checks.php +2 -2
- libs/blockcountry-validation.php +1 -1
- readme.txt +6 -2
iq-block-country.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
/*
|
3 |
Plugin Name: iQ Block Country
|
4 |
Plugin URI: https://webence.nl/plugins/iq-block-country-the-wordpress-plugin-that-blocks-countries-for-you/
|
5 |
-
Version: 1.2.
|
6 |
Author: Pascal
|
7 |
Author URI: https://webence.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.
|
2 |
/*
|
3 |
Plugin Name: iQ Block Country
|
4 |
Plugin URI: https://webence.nl/plugins/iq-block-country-the-wordpress-plugin-that-blocks-countries-for-you/
|
5 |
+
Version: 1.2.18
|
6 |
Author: Pascal
|
7 |
Author URI: https://webence.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.
|
libs/blockcountry-checks.php
CHANGED
@@ -462,8 +462,8 @@ function iqblockcountry_CheckCountryFrontEnd()
|
|
462 |
|
463 |
|
464 |
$iqbc_blockmessage = get_option('blockcountry_blockmessage');
|
465 |
-
$iqbc_blockredirect =
|
466 |
-
$iqbc_blockredirect_url =
|
467 |
$iqbc_header = get_option('blockcountry_header');
|
468 |
if (!empty($iqbc_header) && ($iqbc_header)) {
|
469 |
// Prevent as much as possible that this error message is cached:
|
462 |
|
463 |
|
464 |
$iqbc_blockmessage = get_option('blockcountry_blockmessage');
|
465 |
+
$iqbc_blockredirect = esc_url(get_option('blockcountry_redirect'));
|
466 |
+
$iqbc_blockredirect_url = esc_url(get_option('blockcountry_redirect_url'));
|
467 |
$iqbc_header = get_option('blockcountry_header');
|
468 |
if (!empty($iqbc_header) && ($iqbc_header)) {
|
469 |
// Prevent as much as possible that this error message is cached:
|
libs/blockcountry-validation.php
CHANGED
@@ -283,7 +283,7 @@ function iqblockcountry_ip_in_ipv4_range( $iqbc_ip, $iqbc_range )
|
|
283 |
$iqbc_ip_decimal = ip2long($iqbc_ip);
|
284 |
$iqbc_wildcard_decimal = pow(2, ( 32 - $iqbc_netmask )) - 1;
|
285 |
$iqbc_netmask_decimal = ~ $iqbc_wildcard_decimal;
|
286 |
-
return ( ( $iqbc_ip_decimal & $
|
287 |
}
|
288 |
|
289 |
function iqblockcountry_ip2long6($iqbc_ip)
|
283 |
$iqbc_ip_decimal = ip2long($iqbc_ip);
|
284 |
$iqbc_wildcard_decimal = pow(2, ( 32 - $iqbc_netmask )) - 1;
|
285 |
$iqbc_netmask_decimal = ~ $iqbc_wildcard_decimal;
|
286 |
+
return ( ( $iqbc_ip_decimal & $iqbc_netmask_decimal ) == ( $iqbc_range_decimal & $iqbc_netmask_decimal ) );
|
287 |
}
|
288 |
|
289 |
function iqblockcountry_ip2long6($iqbc_ip)
|
readme.txt
CHANGED
@@ -3,8 +3,8 @@ Contributors: iqpascal
|
|
3 |
Donate link: https://webence.nl/plugins/donate
|
4 |
Tags: spam, block, country, comments, ban, geo, geo blocking, geo ip, block country, block countries, ban countries, ban country, allow list, block list, security
|
5 |
Requires at least: 3.5.2
|
6 |
-
Tested up to: 6.0
|
7 |
-
Stable tag: 1.2.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
Requires PHP: 7.0
|
@@ -284,6 +284,10 @@ Privacy policy regarding this service specific can be found here: https://webenc
|
|
284 |
|
285 |
== Changelog ==
|
286 |
|
|
|
|
|
|
|
|
|
287 |
= 1.2.17 =
|
288 |
|
289 |
* Fix: Other small error
|
3 |
Donate link: https://webence.nl/plugins/donate
|
4 |
Tags: spam, block, country, comments, ban, geo, geo blocking, geo ip, block country, block countries, ban countries, ban country, allow list, block list, security
|
5 |
Requires at least: 3.5.2
|
6 |
+
Tested up to: 6.0.1
|
7 |
+
Stable tag: 1.2.18
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
Requires PHP: 7.0
|
284 |
|
285 |
== Changelog ==
|
286 |
|
287 |
+
= 1.2.18 =
|
288 |
+
|
289 |
+
* Fix: Small errors
|
290 |
+
|
291 |
= 1.2.17 =
|
292 |
|
293 |
* Fix: Other small error
|