Version Description
- Change: Added/Changed some services.
- Bugfix: Security issue fixed which could only be abused by people with administrator rights.
Download this release
Release Info
Developer | iqpascal |
Plugin | iQ Block Country |
Version | 1.2.12 |
Comparing to | |
See all releases |
Code changes from version 1.2.11 to 1.2.12
- iq-block-country.php +1 -1
- libs/blockcountry-search-engines.php +7 -1
- libs/blockcountry-settings.php +9 -1
- readme.txt +7 -2
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.2.
|
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.
|
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.2.12
|
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.
|
libs/blockcountry-search-engines.php
CHANGED
@@ -15,13 +15,19 @@ $searchengines = array(
|
|
15 |
"Feedly" => "Feedly",
|
16 |
"Facebook" => "facebookexternalhit",
|
17 |
"Feedburner" => "FeedBurner",
|
18 |
-
"Google" => "
|
19 |
"Google Ads" => "AdsBot-Google",
|
|
|
20 |
"Google Ads (Mediapartners)" => "Mediapartners-Google",
|
21 |
"Google Feed" => "Feedfetcher-Google",
|
|
|
|
|
22 |
"Google Page Speed Insight" => "Google Page Speed Insight",
|
|
|
23 |
"Google Search Console" => "Google Search Console",
|
24 |
"Google Site Verification" => "Google-Site-Verification",
|
|
|
|
|
25 |
"Jetpack" => "Jetpack by WordPress.com",
|
26 |
"Link checker" => "W3C-checklink",
|
27 |
"MOZ" => "rogerbot",
|
15 |
"Feedly" => "Feedly",
|
16 |
"Facebook" => "facebookexternalhit",
|
17 |
"Feedburner" => "FeedBurner",
|
18 |
+
"Google" => "Googlebot",
|
19 |
"Google Ads" => "AdsBot-Google",
|
20 |
+
"Google AdsBot Mobile Web " => "AdsBot-Google-Mobile",
|
21 |
"Google Ads (Mediapartners)" => "Mediapartners-Google",
|
22 |
"Google Feed" => "Feedfetcher-Google",
|
23 |
+
"Google Images" => "Googlebot-Image",
|
24 |
+
"Google News" => "Googlebot-News",
|
25 |
"Google Page Speed Insight" => "Google Page Speed Insight",
|
26 |
+
"Google Read Aloud" => "Google-Read-Aloud",
|
27 |
"Google Search Console" => "Google Search Console",
|
28 |
"Google Site Verification" => "Google-Site-Verification",
|
29 |
+
"Google StoreBot" => "Storebot-Google",
|
30 |
+
"Google Video" => "Googlebot-Video",
|
31 |
"Jetpack" => "Jetpack by WordPress.com",
|
32 |
"Link checker" => "W3C-checklink",
|
33 |
"MOZ" => "rogerbot",
|
libs/blockcountry-settings.php
CHANGED
@@ -887,7 +887,15 @@ function iqblockcountry_settings_importexport() {
|
|
887 |
}
|
888 |
else {
|
889 |
echo "<div class='notice notice-error'><p>" . __("Invalid file.", 'iq-block-country') ."</p></div>";
|
890 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
891 |
}
|
892 |
}
|
893 |
}
|
887 |
}
|
888 |
else {
|
889 |
echo "<div class='notice notice-error'><p>" . __("Invalid file.", 'iq-block-country') ."</p></div>";
|
890 |
+
}
|
891 |
+
foreach ($unzipped as $zipfile)
|
892 |
+
{
|
893 |
+
if (file_exists($zipfile['filename']))
|
894 |
+
{
|
895 |
+
unlink($zipfile['filename']);
|
896 |
+
}
|
897 |
+
}
|
898 |
+
if (file_exists($dir['path'] . $_FILES['import']['name'])) { unlink($dir['path'] . $_FILES['import']['name']); }
|
899 |
}
|
900 |
}
|
901 |
}
|
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: 5.7
|
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: 5.6
|
@@ -241,6 +241,11 @@ be used.
|
|
241 |
|
242 |
== Changelog ==
|
243 |
|
|
|
|
|
|
|
|
|
|
|
244 |
= 1.2.11 =
|
245 |
|
246 |
* Change: Minor UI fix
|
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: 5.7.2
|
7 |
+
Stable tag: 1.2.12
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
Requires PHP: 5.6
|
241 |
|
242 |
== Changelog ==
|
243 |
|
244 |
+
= 1.2.12 =
|
245 |
+
|
246 |
+
* Change: Added/Changed some services.
|
247 |
+
* Bugfix: Security issue fixed which could only be abused by people with administrator rights.
|
248 |
+
|
249 |
= 1.2.11 =
|
250 |
|
251 |
* Change: Minor UI fix
|