iQ Block Country - Version 1.1.48

Version Description

  • Bugfix: Fixed small bug
Download this release

Release Info

Developer iqpascal
Plugin Icon 128x128 iQ Block Country
Version 1.1.48
Comparing to
See all releases

Code changes from version 1.1.47 to 1.1.48

iq-block-country.php CHANGED
@@ -2,7 +2,7 @@
2
  /*
3
  Plugin Name: iQ Block Country
4
  Plugin URI: https://www.webence.nl/plugins/iq-block-country-the-wordpress-plugin-that-blocks-countries-for-you/
5
- Version: 1.1.47
6
  Author: Pascal
7
  Author URI: https://www.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.
@@ -250,7 +250,7 @@ define("GEOIPAPIURLASIA","https://us2.geoip.webence.nl/geoipapi.php");
250
  define("GEOIPAPICHECKURL","https://eu.geoip.webence.nl/geoipapi-keycheck.php");
251
  define("ADMINAPICHECKURL","https://tracking.webence.nl/adminapi-keycheck.php");
252
  define("IPLOOKUPURL",'https://geoip.webence.nl/iplookup/iplookup.php');
253
- define("VERSION","1.1.47");
254
  define("DBVERSION","122");
255
  define("PLUGINPATH",plugin_dir_path( __FILE__ ));
256
 
2
  /*
3
  Plugin Name: iQ Block Country
4
  Plugin URI: https://www.webence.nl/plugins/iq-block-country-the-wordpress-plugin-that-blocks-countries-for-you/
5
+ Version: 1.1.48
6
  Author: Pascal
7
  Author URI: https://www.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.
250
  define("GEOIPAPICHECKURL","https://eu.geoip.webence.nl/geoipapi-keycheck.php");
251
  define("ADMINAPICHECKURL","https://tracking.webence.nl/adminapi-keycheck.php");
252
  define("IPLOOKUPURL",'https://geoip.webence.nl/iplookup/iplookup.php');
253
+ define("VERSION","1.1.48");
254
  define("DBVERSION","122");
255
  define("PLUGINPATH",plugin_dir_path( __FILE__ ));
256
 
libs/blockcountry-validation.php CHANGED
@@ -357,7 +357,7 @@ function iqblockcountry_validate_ip_in_list($ipaddress,$ipv4list,$ipv6list,$ipli
357
  {
358
 
359
  $match = FALSE;
360
- if (iqblockcountry_is_valid_ipv4($ipaddress))
361
  {
362
  foreach ($ipv4list AS $iprange)
363
  {
@@ -367,7 +367,7 @@ function iqblockcountry_validate_ip_in_list($ipaddress,$ipv4list,$ipv6list,$ipli
367
  }
368
  }
369
  }
370
- elseif (iqblockcountry_is_valid_ipv6($ipaddress))
371
  {
372
  foreach ($ipv6list AS $iprange)
373
  {
@@ -379,7 +379,7 @@ function iqblockcountry_validate_ip_in_list($ipaddress,$ipv4list,$ipv6list,$ipli
379
  }
380
 
381
  }
382
- if (iqblockcountry_is_valid_ipv4($ipaddress) || iqblockcountry_is_valid_ipv6($ipaddress))
383
  {
384
  if (in_array($ipaddress,$iplist))
385
  {
357
  {
358
 
359
  $match = FALSE;
360
+ if (iqblockcountry_is_valid_ipv4($ipaddress) && is_array($ipv4list))
361
  {
362
  foreach ($ipv4list AS $iprange)
363
  {
367
  }
368
  }
369
  }
370
+ elseif (iqblockcountry_is_valid_ipv6($ipaddress) && is_array($ipv6list))
371
  {
372
  foreach ($ipv6list AS $iprange)
373
  {
379
  }
380
 
381
  }
382
+ if ((iqblockcountry_is_valid_ipv4($ipaddress) || iqblockcountry_is_valid_ipv6($ipaddress)) && is_array($iplist))
383
  {
384
  if (in_array($ipaddress,$iplist))
385
  {
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.webence.nl/plugins/donate
4
  Tags: spam, block, country, comments, ban, geo, geo blocking, geo ip, block country, block countries, ban countries, ban country, blacklist, whitelist, security
5
  Requires at least: 3.5.2
6
  Tested up to: 4.9.4
7
- Stable tag: 1.1.47
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -206,6 +206,10 @@ As the basic rule is to block all and every post you have to configure this in a
206
 
207
  == Changelog ==
208
 
 
 
 
 
209
  = 1.1.47 =
210
 
211
  * Change: You can now also enter IP Ranges in the black & whitelist in CIDR format.
4
  Tags: spam, block, country, comments, ban, geo, geo blocking, geo ip, block country, block countries, ban countries, ban country, blacklist, whitelist, security
5
  Requires at least: 3.5.2
6
  Tested up to: 4.9.4
7
+ Stable tag: 1.1.48
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
206
 
207
  == Changelog ==
208
 
209
+ = 1.1.48 =
210
+
211
+ * Bugfix: Fixed small bug
212
+
213
  = 1.1.47 =
214
 
215
  * Change: You can now also enter IP Ranges in the black & whitelist in CIDR format.