Version Description
- Changed working directory for the GeoIP database to /wp-content/uploads
Download this release
Release Info
Developer | iqpascal |
Plugin | iQ Block Country |
Version | 1.1.18 |
Comparing to | |
See all releases |
Code changes from version 1.1.17 to 1.1.18
- iq-block-country.php +5 -4
- readme.txt +10 -6
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.
|
@@ -177,16 +177,17 @@ function iqblockcountry_upgrade()
|
|
177 |
/*
|
178 |
* Main plugin works.
|
179 |
*/
|
|
|
180 |
define("CHOSENJS", plugins_url('/chosen.jquery.js', __FILE__));
|
181 |
define("CHOSENCSS", plugins_url('/chosen.css', __FILE__));
|
182 |
define("IPV6DB","http://geolite.maxmind.com/download/geoip/database/GeoIPv6.dat.gz"); // Used to display download location.
|
183 |
define("IPV4DB","http://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP.dat.gz"); // Used to display download location.
|
184 |
-
define("IPV4DBFILE"
|
185 |
-
define("IPV6DBFILE"
|
186 |
define("TRACKINGURL","http://tracking.webence.nl/iq-block-country-tracking.php");
|
187 |
define("BANLISTRETRIEVEURL","http://tracking.webence.nl/iq-block-country-retrieve.php");
|
188 |
define("GEOIPAPIURL","http://geoip.webence.nl/geoipapi.php");
|
189 |
-
define("VERSION","1.1.
|
190 |
define("DBVERSION","121");
|
191 |
define("PLUGINPATH",plugin_dir_path( __FILE__ ));
|
192 |
|
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.18
|
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.
|
177 |
/*
|
178 |
* Main plugin works.
|
179 |
*/
|
180 |
+
$upload_dir = wp_upload_dir();
|
181 |
define("CHOSENJS", plugins_url('/chosen.jquery.js', __FILE__));
|
182 |
define("CHOSENCSS", plugins_url('/chosen.css', __FILE__));
|
183 |
define("IPV6DB","http://geolite.maxmind.com/download/geoip/database/GeoIPv6.dat.gz"); // Used to display download location.
|
184 |
define("IPV4DB","http://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP.dat.gz"); // Used to display download location.
|
185 |
+
define("IPV4DBFILE",$upload_dir['basedir'] . "/GeoIP.dat");
|
186 |
+
define("IPV6DBFILE",$upload_dir['basedir'] . "/GeoIPv6.dat");
|
187 |
define("TRACKINGURL","http://tracking.webence.nl/iq-block-country-tracking.php");
|
188 |
define("BANLISTRETRIEVEURL","http://tracking.webence.nl/iq-block-country-retrieve.php");
|
189 |
define("GEOIPAPIURL","http://geoip.webence.nl/geoipapi.php");
|
190 |
+
define("VERSION","1.1.18");
|
191 |
define("DBVERSION","121");
|
192 |
define("PLUGINPATH",plugin_dir_path( __FILE__ ));
|
193 |
|
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.1
|
7 |
-
Stable tag: 1.1.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -37,9 +37,9 @@ The Wordpress license does not allow this plugin to download the MaxMind Geo dat
|
|
37 |
|
38 |
1. Unzip the archive and put the `iq-block-country` folder into your plugins folder (/wp-content/plugins/).
|
39 |
2. Download the IPv4 database from: http://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP.dat.gz
|
40 |
-
3. Unzip the GeoIP database and upload it to /wp-content/
|
41 |
4. Download the IPv6 database if you have a website running on IPv6 from: http://geolite.maxmind.com/download/geoip/database/GeoIPv6.dat.gz
|
42 |
-
5. Unzip the GeoIP database and upload it to /wp-content/
|
43 |
6. If you do not want to or cannot download the MaxMind GeoIP database you can use the GeoIP API.
|
44 |
7. Activate the plugin through the 'Plugins' menu in WordPress
|
45 |
8. Go to the settings page and choose which countries you want to ban. Use the ctrl key to select multiple countries
|
@@ -130,9 +130,9 @@ Perhaps also a handy function is that you can type in a part of the name of the
|
|
130 |
You can download the database(s) directly from MaxMind and upload them to your website.
|
131 |
|
132 |
1. Download the IPv4 database from: http://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP.dat.gz
|
133 |
-
2. Unzip the GeoIP database and upload it to /wp-content/
|
134 |
3. Download the IPv6 database if you have a website running on IPv6 from: http://geolite.maxmind.com/download/geoip/database/GeoIPv6.dat.gz
|
135 |
-
4. Unzip the GeoIP database and upload it to /wp-content/
|
136 |
|
137 |
Maxmind updates the GeoLite database every month.
|
138 |
|
@@ -159,6 +159,10 @@ You can select the option on the home tab "Do not log IP addresses" to stop iQ B
|
|
159 |
|
160 |
== Changelog ==
|
161 |
|
|
|
|
|
|
|
|
|
162 |
= 1.1.17 =
|
163 |
|
164 |
* Due to a conflict of the license where Wordpress is released under and the license the MaxMind databases are released under I was forced to remove all auto downloads of the GeoIP databases. You now have to manually download the databases and upload them yourself.
|
@@ -324,6 +328,6 @@ You can select the option on the home tab "Do not log IP addresses" to stop iQ B
|
|
324 |
|
325 |
== Upgrade Notice ==
|
326 |
|
327 |
-
= 1.1.
|
328 |
|
329 |
This plugin no longer downloads the MaxMind database. You have to download manually or use the GeoIP API.
|
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.1
|
7 |
+
Stable tag: 1.1.18
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
37 |
|
38 |
1. Unzip the archive and put the `iq-block-country` folder into your plugins folder (/wp-content/plugins/).
|
39 |
2. Download the IPv4 database from: http://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP.dat.gz
|
40 |
+
3. Unzip the GeoIP database and upload it to your upload dir usually /wp-content/uploads/GeoIP.dat
|
41 |
4. Download the IPv6 database if you have a website running on IPv6 from: http://geolite.maxmind.com/download/geoip/database/GeoIPv6.dat.gz
|
42 |
+
5. Unzip the GeoIP database and upload it to your upload dir usually /wp-content/uploads/GeoIPv6.dat
|
43 |
6. If you do not want to or cannot download the MaxMind GeoIP database you can use the GeoIP API.
|
44 |
7. Activate the plugin through the 'Plugins' menu in WordPress
|
45 |
8. Go to the settings page and choose which countries you want to ban. Use the ctrl key to select multiple countries
|
130 |
You can download the database(s) directly from MaxMind and upload them to your website.
|
131 |
|
132 |
1. Download the IPv4 database from: http://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP.dat.gz
|
133 |
+
2. Unzip the GeoIP database and upload it to your upload dir usually /wp-content/uploads/GeoIP.dat
|
134 |
3. Download the IPv6 database if you have a website running on IPv6 from: http://geolite.maxmind.com/download/geoip/database/GeoIPv6.dat.gz
|
135 |
+
4. Unzip the GeoIP database and upload it to your upload dir usually /wp-content/uploads/GeoIPv6.dat
|
136 |
|
137 |
Maxmind updates the GeoLite database every month.
|
138 |
|
159 |
|
160 |
== Changelog ==
|
161 |
|
162 |
+
= 1.1.18 =
|
163 |
+
|
164 |
+
* Changed working directory for the GeoIP database to /wp-content/uploads
|
165 |
+
|
166 |
= 1.1.17 =
|
167 |
|
168 |
* Due to a conflict of the license where Wordpress is released under and the license the MaxMind databases are released under I was forced to remove all auto downloads of the GeoIP databases. You now have to manually download the databases and upload them yourself.
|
328 |
|
329 |
== Upgrade Notice ==
|
330 |
|
331 |
+
= 1.1.18 =
|
332 |
|
333 |
This plugin no longer downloads the MaxMind database. You have to download manually or use the GeoIP API.
|