Version Description
- Added select box on how many rows to display on the logging tab
- Redirect blocked users to a specific page instead of displaying the block message.
- Added blacklist and whitelist of IP addresses to the backend.
- Adjusted some text
- Minor bugfixes
Download this release
Release Info
Developer | iqpascal |
Plugin | iQ Block Country |
Version | 1.1.11 |
Comparing to | |
See all releases |
Code changes from version 1.1.9 to 1.1.11
- iq-block-country.php +40 -24
- lang/en_EN.mo +0 -0
- lang/en_EN.po +144 -105
- lang/iqblockcountry-nl_NL.mo +0 -0
- lang/iqblockcountry-nl_NL.po +150 -106
- libs/blockcountry-checks.php +62 -9
- libs/blockcountry-logging.php +2 -2
- libs/blockcountry-settings.php +80 -10
- libs/geoip.inc +41 -2
- readme.txt +20 -3
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.
|
@@ -52,7 +52,7 @@ function iqblockcountry_this_plugin_first()
|
|
52 |
}
|
53 |
|
54 |
/*
|
55 |
-
*
|
56 |
*/
|
57 |
function iqblockcountry_schedule_tracking($old_value, $new_value)
|
58 |
{
|
@@ -71,6 +71,21 @@ function iqblockcountry_schedule_tracking($old_value, $new_value)
|
|
71 |
}
|
72 |
|
73 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
74 |
/*
|
75 |
* iQ Block Tracking
|
76 |
*/
|
@@ -249,13 +264,14 @@ function iqblockcountry_upgrade()
|
|
249 |
{
|
250 |
/* Check if update is necessary */
|
251 |
$dbversion = get_option( 'blockcountry_version' );
|
|
|
252 |
|
253 |
-
if ($dbversion != "" && version_compare($dbversion, "1.
|
|
|
|
|
|
|
|
|
254 |
{
|
255 |
-
iqblockcountry_install_db();
|
256 |
-
add_option( "blockcountry_dbversion", DBVERSION );
|
257 |
-
// Get banlist option and convert to backend banlist
|
258 |
-
update_option('blockcountry_version',VERSION);
|
259 |
$frontendbanlist = get_option('blockcountry_banlist');
|
260 |
update_option('blockcountry_backendbanlist',$frontendbanlist);
|
261 |
update_option('blockcountry_backendnrblocks', 0);
|
@@ -265,17 +281,9 @@ function iqblockcountry_upgrade()
|
|
265 |
elseif ($dbversion != "" && version_compare($dbversion, "1.0.10", '=') )
|
266 |
{
|
267 |
iqblockcountry_install_db();
|
268 |
-
add_option( "blockcountry_dbversion", DBVERSION );
|
269 |
update_option('blockcountry_backendnrblocks', 0);
|
270 |
update_option('blockcountry_frontendnrblocks', 0);
|
271 |
update_option('blockcountry_header', 'on');
|
272 |
-
update_option('blockcountry_version',VERSION);
|
273 |
-
}
|
274 |
-
elseif ($dbversion != "" && version_compare($dbversion, "1.0.11", '=') )
|
275 |
-
{
|
276 |
-
iqblockcountry_install_db();
|
277 |
-
add_option( "blockcountry_dbversion", DBVERSION );
|
278 |
-
update_option('blockcountry_version',VERSION);
|
279 |
}
|
280 |
elseif ($dbversion == "")
|
281 |
{
|
@@ -290,10 +298,7 @@ function iqblockcountry_upgrade()
|
|
290 |
$frontendbanlist = get_option('blockcountry_banlist');
|
291 |
update_option('blockcountry_backendbanlist',$frontendbanlist);
|
292 |
}
|
293 |
-
|
294 |
-
{
|
295 |
-
update_option('blockcountry_version',VERSION);
|
296 |
-
}
|
297 |
iqblockcountry_update_db_check();
|
298 |
|
299 |
}
|
@@ -305,6 +310,7 @@ require_once('libs/blockcountry-checks.php');
|
|
305 |
require_once('libs/blockcountry-settings.php');
|
306 |
require_once('libs/blockcountry-validation.php');
|
307 |
require_once('libs/blockcountry-logging.php');
|
|
|
308 |
|
309 |
|
310 |
/*
|
@@ -317,10 +323,13 @@ define("IPV4DB","http://geolite.maxmind.com/download/geoip/database/GeoLiteCount
|
|
317 |
define("IPV4DBFILE",WP_PLUGIN_DIR . "/" . dirname ( plugin_basename ( __FILE__ ) ) . "/GeoIP.dat");
|
318 |
define("IPV6DBFILE",WP_PLUGIN_DIR . "/" . dirname ( plugin_basename ( __FILE__ ) ) . "/GeoIPv6.dat");
|
319 |
define("TRACKINGURL","http://tracking.webence.nl/iq-block-country-tracking.php");
|
320 |
-
define("VERSION","1.1.
|
321 |
-
define("DBVERSION","
|
322 |
define("PLUGINPATH",plugin_dir_path( __FILE__ ));
|
323 |
|
|
|
|
|
|
|
324 |
|
325 |
register_activation_hook(__file__, 'iqblockcountry_this_plugin_first');
|
326 |
register_activation_hook(__file__, 'iqblockcountry_set_defaults');
|
@@ -328,7 +337,10 @@ register_uninstall_hook(__file__, 'iqblockcountry_uninstall');
|
|
328 |
|
329 |
// Check if upgrade is necessary
|
330 |
iqblockcountry_upgrade();
|
331 |
-
|
|
|
|
|
|
|
332 |
/* Clean logging database */
|
333 |
iqblockcountry_clean_db();
|
334 |
|
@@ -352,7 +364,11 @@ add_action ( 'admin_menu', 'iqblockcountry_create_menu' );
|
|
352 |
add_action ( 'admin_init', 'iqblockcountry_checkupdatedb' );
|
353 |
add_filter ( 'update_option_blockcountry_tracking', 'iqblockcountry_schedule_tracking', 10, 2);
|
354 |
add_filter ( 'add_option_blockcountry_tracking', 'iqblockcountry_schedule_tracking', 10, 2);
|
|
|
|
|
355 |
add_action ( 'blockcountry_tracking', 'iqblockcountry_tracking' );
|
|
|
|
|
|
|
356 |
|
357 |
-
|
358 |
-
?>
|
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.11
|
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.
|
52 |
}
|
53 |
|
54 |
/*
|
55 |
+
* Schedule tracking if this option was set in the admin panel
|
56 |
*/
|
57 |
function iqblockcountry_schedule_tracking($old_value, $new_value)
|
58 |
{
|
71 |
}
|
72 |
|
73 |
|
74 |
+
/*
|
75 |
+
* Attempt on output buffering to protect against headers already send mistakes
|
76 |
+
*/
|
77 |
+
function iqblockcountry_buffer() {
|
78 |
+
ob_start();
|
79 |
+
}
|
80 |
+
|
81 |
+
/*
|
82 |
+
* Attempt on output buffering to protect against headers already send mistakes
|
83 |
+
*/
|
84 |
+
function iqblockcountry_buffer_flush() {
|
85 |
+
ob_end_flush();
|
86 |
+
}
|
87 |
+
|
88 |
+
|
89 |
/*
|
90 |
* iQ Block Tracking
|
91 |
*/
|
264 |
{
|
265 |
/* Check if update is necessary */
|
266 |
$dbversion = get_option( 'blockcountry_version' );
|
267 |
+
update_option('blockcountry_version',VERSION);
|
268 |
|
269 |
+
if ($dbversion != "" && version_compare($dbversion, "1.1.11", '<') )
|
270 |
+
{
|
271 |
+
update_option('blockcountry_nrstatistics', 15);
|
272 |
+
}
|
273 |
+
elseif ($dbversion != "" && version_compare($dbversion, "1.0.10", '<') )
|
274 |
{
|
|
|
|
|
|
|
|
|
275 |
$frontendbanlist = get_option('blockcountry_banlist');
|
276 |
update_option('blockcountry_backendbanlist',$frontendbanlist);
|
277 |
update_option('blockcountry_backendnrblocks', 0);
|
281 |
elseif ($dbversion != "" && version_compare($dbversion, "1.0.10", '=') )
|
282 |
{
|
283 |
iqblockcountry_install_db();
|
|
|
284 |
update_option('blockcountry_backendnrblocks', 0);
|
285 |
update_option('blockcountry_frontendnrblocks', 0);
|
286 |
update_option('blockcountry_header', 'on');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
287 |
}
|
288 |
elseif ($dbversion == "")
|
289 |
{
|
298 |
$frontendbanlist = get_option('blockcountry_banlist');
|
299 |
update_option('blockcountry_backendbanlist',$frontendbanlist);
|
300 |
}
|
301 |
+
|
|
|
|
|
|
|
302 |
iqblockcountry_update_db_check();
|
303 |
|
304 |
}
|
310 |
require_once('libs/blockcountry-settings.php');
|
311 |
require_once('libs/blockcountry-validation.php');
|
312 |
require_once('libs/blockcountry-logging.php');
|
313 |
+
//require_once('libs/blockcountry-tracking.php');
|
314 |
|
315 |
|
316 |
/*
|
323 |
define("IPV4DBFILE",WP_PLUGIN_DIR . "/" . dirname ( plugin_basename ( __FILE__ ) ) . "/GeoIP.dat");
|
324 |
define("IPV6DBFILE",WP_PLUGIN_DIR . "/" . dirname ( plugin_basename ( __FILE__ ) ) . "/GeoIPv6.dat");
|
325 |
define("TRACKINGURL","http://tracking.webence.nl/iq-block-country-tracking.php");
|
326 |
+
define("VERSION","1.1.11");
|
327 |
+
define("DBVERSION","120");
|
328 |
define("PLUGINPATH",plugin_dir_path( __FILE__ ));
|
329 |
|
330 |
+
global $apiblacklist;
|
331 |
+
$apiblacklist = FALSE;
|
332 |
+
|
333 |
|
334 |
register_activation_hook(__file__, 'iqblockcountry_this_plugin_first');
|
335 |
register_activation_hook(__file__, 'iqblockcountry_set_defaults');
|
337 |
|
338 |
// Check if upgrade is necessary
|
339 |
iqblockcountry_upgrade();
|
340 |
+
|
341 |
+
/* Check retrieve XML schedule */
|
342 |
+
// iqblockcountry_schedule_retrievebanlist();
|
343 |
+
|
344 |
/* Clean logging database */
|
345 |
iqblockcountry_clean_db();
|
346 |
|
364 |
add_action ( 'admin_init', 'iqblockcountry_checkupdatedb' );
|
365 |
add_filter ( 'update_option_blockcountry_tracking', 'iqblockcountry_schedule_tracking', 10, 2);
|
366 |
add_filter ( 'add_option_blockcountry_tracking', 'iqblockcountry_schedule_tracking', 10, 2);
|
367 |
+
//add_filter ( 'update_option_blockcountry_apikey', 'iqblockcountry_schedule_retrieving', 10, 2);
|
368 |
+
//add_filter ( 'add_option_blockcountry_apikey', 'iqblockcountry_schedule_retrieving', 10, 2);
|
369 |
add_action ( 'blockcountry_tracking', 'iqblockcountry_tracking' );
|
370 |
+
add_action ( 'blockcountry_retrievebanlist', 'iqblockcountry_tracking_retrieve_xml');
|
371 |
+
add_action ( 'init', 'iqblockcountry_buffer',1);
|
372 |
+
add_action ( 'wp_footer', 'iqblockcountry_buffer_flush');
|
373 |
|
374 |
+
?>
|
|
lang/en_EN.mo
CHANGED
Binary file
|
lang/en_EN.po
CHANGED
@@ -1,8 +1,8 @@
|
|
1 |
msgid ""
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: iQ Block Country\n"
|
4 |
-
"POT-Creation-Date: 2014-
|
5 |
-
"PO-Revision-Date: 2014-
|
6 |
"Last-Translator: \n"
|
7 |
"Language-Team: iQ Block Country <info@redeo.nl>\n"
|
8 |
"Language: English\n"
|
@@ -15,309 +15,340 @@ msgstr ""
|
|
15 |
"X-Poedit-SearchPath-0: libs\n"
|
16 |
"X-Poedit-SearchPath-1: .\n"
|
17 |
|
18 |
-
#: libs/blockcountry-settings.php:
|
19 |
msgid ""
|
20 |
"Check which country belongs to an IP Address according to the current "
|
21 |
"database."
|
22 |
msgstr ""
|
23 |
|
24 |
-
#: libs/blockcountry-settings.php:
|
25 |
msgid "IP Address to check:"
|
26 |
msgstr ""
|
27 |
|
28 |
-
#: libs/blockcountry-settings.php:
|
29 |
msgid "No country for"
|
30 |
msgstr ""
|
31 |
|
32 |
-
#: libs/blockcountry-settings.php:
|
33 |
msgid "could be found. Or"
|
34 |
msgstr ""
|
35 |
|
36 |
-
#: libs/blockcountry-settings.php:
|
37 |
msgid "is not a valid IPv4 or IPv6 IP address"
|
38 |
msgstr ""
|
39 |
|
40 |
-
#: libs/blockcountry-settings.php:
|
41 |
msgid "IP Adress"
|
42 |
msgstr ""
|
43 |
|
44 |
-
#: libs/blockcountry-settings.php:
|
45 |
msgid "belongs to"
|
46 |
msgstr ""
|
47 |
|
48 |
-
#: libs/blockcountry-settings.php:
|
49 |
msgid "This country is not permitted to visit the frontend of this website."
|
50 |
msgstr ""
|
51 |
|
52 |
-
#: libs/blockcountry-settings.php:
|
53 |
msgid "This country is not permitted to visit the backend of this website."
|
54 |
msgstr ""
|
55 |
|
56 |
-
#: libs/blockcountry-settings.php:
|
57 |
msgid "Check IP address"
|
58 |
msgstr ""
|
59 |
|
60 |
-
#: libs/blockcountry-settings.php:
|
61 |
msgid "Download GeoIP database"
|
62 |
msgstr ""
|
63 |
|
64 |
-
#: libs/blockcountry-settings.php:
|
65 |
msgid "The GeoIP database is updated once a month. Last update: "
|
66 |
msgstr ""
|
67 |
|
68 |
-
#: libs/blockcountry-settings.php:
|
69 |
msgid "If you need a manual update please press buttons below to update."
|
70 |
msgstr ""
|
71 |
|
72 |
-
#: libs/blockcountry-settings.php:
|
73 |
msgid "Download new GeoIP IPv4 Database"
|
74 |
msgstr ""
|
75 |
|
76 |
-
#: libs/blockcountry-settings.php:
|
77 |
msgid "Download new GeoIP IPv6 Database"
|
78 |
msgstr ""
|
79 |
|
80 |
-
#: libs/blockcountry-settings.php:
|
81 |
msgid "Downloading..."
|
82 |
msgstr ""
|
83 |
|
84 |
-
#: libs/blockcountry-settings.php:
|
85 |
msgid "Active plugins"
|
86 |
msgstr ""
|
87 |
|
88 |
-
#: libs/blockcountry-settings.php:
|
89 |
msgid "Plugin name"
|
90 |
msgstr ""
|
91 |
|
92 |
-
#: libs/blockcountry-settings.php:
|
93 |
msgid "Version"
|
94 |
msgstr ""
|
95 |
|
96 |
-
#: libs/blockcountry-settings.php:
|
97 |
-
#: libs/blockcountry-settings.php:
|
98 |
msgid "URL"
|
99 |
msgstr ""
|
100 |
|
101 |
-
#: libs/blockcountry-settings.php:
|
102 |
msgid "Export"
|
103 |
msgstr ""
|
104 |
|
105 |
-
#: libs/blockcountry-settings.php:
|
106 |
msgid ""
|
107 |
"When you click on <tt>Backup all settings</tt> button a backup of the iQ "
|
108 |
"Block Country configuration will be created."
|
109 |
msgstr ""
|
110 |
|
111 |
-
#: libs/blockcountry-settings.php:
|
112 |
msgid ""
|
113 |
"After exporting, you can either use the backup file to restore your settings "
|
114 |
"on this site again or copy the settings to another WordPress site."
|
115 |
msgstr ""
|
116 |
|
117 |
-
#: libs/blockcountry-settings.php:
|
118 |
msgid "Backup all settings"
|
119 |
msgstr ""
|
120 |
|
121 |
-
#: libs/blockcountry-settings.php:
|
122 |
msgid "Import"
|
123 |
msgstr ""
|
124 |
|
125 |
-
#: libs/blockcountry-settings.php:
|
126 |
msgid "Click the browse button and choose a zip file that you exported before."
|
127 |
msgstr ""
|
128 |
|
129 |
-
#: libs/blockcountry-settings.php:
|
130 |
msgid "Press Restore settings button, and let WordPress do the magic for you."
|
131 |
msgstr ""
|
132 |
|
133 |
-
#: libs/blockcountry-settings.php:
|
134 |
msgid "Restore settings"
|
135 |
msgstr ""
|
136 |
|
137 |
-
#: libs/blockcountry-settings.php:
|
138 |
-
#: libs/blockcountry-settings.php:
|
139 |
msgid "Something went wrong exporting this file"
|
140 |
msgstr ""
|
141 |
|
142 |
-
#: libs/blockcountry-settings.php:
|
143 |
msgid "Exporting settings..."
|
144 |
msgstr ""
|
145 |
|
146 |
-
#: libs/blockcountry-settings.php:
|
147 |
msgid "Something went wrong importing this file"
|
148 |
msgstr ""
|
149 |
|
150 |
-
#: libs/blockcountry-settings.php:
|
151 |
msgid "All options are restored successfully."
|
152 |
msgstr ""
|
153 |
|
154 |
-
#: libs/blockcountry-settings.php:
|
155 |
msgid "Invalid file."
|
156 |
msgstr ""
|
157 |
|
158 |
-
#: libs/blockcountry-settings.php:
|
159 |
msgid "No correct import or export option given."
|
160 |
msgstr ""
|
161 |
|
162 |
-
#: libs/blockcountry-settings.php:
|
163 |
msgid "Select which pages are blocked."
|
164 |
msgstr ""
|
165 |
|
166 |
-
#: libs/blockcountry-settings.php:
|
167 |
msgid "Do you want to block individual pages:"
|
168 |
msgstr ""
|
169 |
|
170 |
-
#: libs/blockcountry-settings.php:
|
171 |
msgid "If you do not select this option all pages will be blocked."
|
172 |
msgstr ""
|
173 |
|
174 |
-
#: libs/blockcountry-settings.php:
|
175 |
msgid "Select pages you want to block:"
|
176 |
msgstr ""
|
177 |
|
178 |
-
#: libs/blockcountry-settings.php:
|
179 |
-
#: libs/blockcountry-settings.php:
|
180 |
-
#: libs/blockcountry-settings.php:
|
181 |
msgid "Save Changes"
|
182 |
msgstr ""
|
183 |
|
184 |
-
#: libs/blockcountry-settings.php:
|
185 |
msgid "Select which categories are blocked."
|
186 |
msgstr ""
|
187 |
|
188 |
-
#: libs/blockcountry-settings.php:
|
189 |
msgid "Do you want to block individual categories:"
|
190 |
msgstr ""
|
191 |
|
192 |
-
#: libs/blockcountry-settings.php:
|
193 |
msgid "If you do not select this option all blog articles will be blocked."
|
194 |
msgstr ""
|
195 |
|
196 |
-
#: libs/blockcountry-settings.php:
|
197 |
msgid "Do you want to block the homepage:"
|
198 |
msgstr ""
|
199 |
|
200 |
-
#: libs/blockcountry-settings.php:
|
201 |
msgid ""
|
202 |
"If you do not select this option visitors will not be blocked from your "
|
203 |
"homepage regardless of the categories you select."
|
204 |
msgstr ""
|
205 |
|
206 |
-
#: libs/blockcountry-settings.php:
|
207 |
msgid "Select categories you want to block:"
|
208 |
msgstr ""
|
209 |
|
210 |
-
#: libs/blockcountry-settings.php:
|
211 |
msgid "Frontend options"
|
212 |
msgstr ""
|
213 |
|
214 |
-
#: libs/blockcountry-settings.php:
|
215 |
msgid ""
|
216 |
"Do not block visitors that are logged in from visiting frontend website:"
|
217 |
msgstr ""
|
218 |
|
219 |
-
#: libs/blockcountry-settings.php:
|
220 |
msgid "Block visitors from visiting the frontend of your website:"
|
221 |
msgstr ""
|
222 |
|
223 |
-
#: libs/blockcountry-settings.php:
|
224 |
msgid ""
|
225 |
"Select the countries that should be blocked from visiting your frontend:"
|
226 |
msgstr ""
|
227 |
|
228 |
-
#: libs/blockcountry-settings.php:
|
229 |
msgid "Use the CTRL key to select multiple countries"
|
230 |
msgstr ""
|
231 |
|
232 |
-
#: libs/blockcountry-settings.php:
|
233 |
msgid "Frontend whitelist IPv4 and/or IPv6 addresses:"
|
234 |
msgstr ""
|
235 |
|
236 |
-
#: libs/blockcountry-settings.php:
|
|
|
237 |
msgid "Use a semicolon (;) to separate IP addresses"
|
238 |
msgstr ""
|
239 |
|
240 |
-
#: libs/blockcountry-settings.php:
|
241 |
msgid "Frontend blacklist IPv4 and/or IPv6 addresses:"
|
242 |
msgstr ""
|
243 |
|
244 |
-
#: libs/blockcountry-settings.php:
|
245 |
msgid "Backend Options"
|
246 |
msgstr ""
|
247 |
|
248 |
-
#: libs/blockcountry-settings.php:
|
249 |
msgid ""
|
250 |
"Block visitors from visiting the backend (administrator) of your website:"
|
251 |
msgstr ""
|
252 |
|
253 |
-
#: libs/blockcountry-settings.php:
|
254 |
msgid "Your IP address is"
|
255 |
msgstr ""
|
256 |
|
257 |
-
#: libs/blockcountry-settings.php:
|
258 |
msgid "The country that is listed for this IP address is"
|
259 |
msgstr ""
|
260 |
|
261 |
-
#: libs/blockcountry-settings.php:
|
262 |
msgid ""
|
263 |
"Do <strong>NOT</strong> set the 'Block visitors from visiting the backend "
|
264 |
"(administrator) of your website' and also select"
|
265 |
msgstr ""
|
266 |
|
267 |
-
#: libs/blockcountry-settings.php:
|
268 |
msgid "below."
|
269 |
msgstr ""
|
270 |
|
271 |
-
#: libs/blockcountry-settings.php:
|
272 |
msgid ""
|
273 |
"You will NOT be able to login the next time if you DO block your own country "
|
274 |
"from visiting the backend."
|
275 |
msgstr ""
|
276 |
|
277 |
-
#: libs/blockcountry-settings.php:
|
278 |
msgid "Select the countries that should be blocked from visiting your backend:"
|
279 |
msgstr ""
|
280 |
|
281 |
-
#: libs/blockcountry-settings.php:
|
282 |
msgid "Use the x behind the country to remove a country from this blocklist."
|
283 |
msgstr ""
|
284 |
|
285 |
-
#: libs/blockcountry-settings.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
286 |
msgid "Overall statistics since start"
|
287 |
msgstr ""
|
288 |
|
289 |
-
#: libs/blockcountry-settings.php:
|
290 |
msgid "visitors blocked from the backend."
|
291 |
msgstr ""
|
292 |
|
293 |
-
#: libs/blockcountry-settings.php:
|
294 |
msgid "visitors blocked from the frontend."
|
295 |
msgstr ""
|
296 |
|
297 |
-
#: libs/blockcountry-settings.php:
|
298 |
msgid "Basic Options"
|
299 |
msgstr ""
|
300 |
|
301 |
-
#: libs/blockcountry-settings.php:
|
302 |
msgid "Message to display when people are blocked:"
|
303 |
msgstr ""
|
304 |
|
305 |
-
#: libs/blockcountry-settings.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
306 |
msgid "Send headers when user is blocked:"
|
307 |
msgstr ""
|
308 |
|
309 |
-
#: libs/blockcountry-settings.php:
|
310 |
msgid ""
|
311 |
"Under normal circumstances you should keep this selected! Only if you have "
|
312 |
"\"Cannot modify header information - headers already sent\" errors or if you "
|
313 |
"know what you are doing uncheck this."
|
314 |
msgstr ""
|
315 |
|
316 |
-
#: libs/blockcountry-settings.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
317 |
msgid "Allow tracking:"
|
318 |
msgstr ""
|
319 |
|
320 |
-
#: libs/blockcountry-settings.php:
|
321 |
msgid ""
|
322 |
"This sends only the IP address and the number of attempts this ip address "
|
323 |
"tried to login to your backend and was blocked doing so to a central server. "
|
@@ -325,112 +356,120 @@ msgid ""
|
|
325 |
"countries."
|
326 |
msgstr ""
|
327 |
|
328 |
-
#: libs/blockcountry-settings.php:
|
329 |
-
msgid "
|
330 |
msgstr ""
|
331 |
|
332 |
-
#: libs/blockcountry-settings.php:
|
|
|
|
|
|
|
|
|
333 |
msgid "Date / Time"
|
334 |
msgstr ""
|
335 |
|
336 |
-
#: libs/blockcountry-settings.php:
|
337 |
msgid "IP Address"
|
338 |
msgstr ""
|
339 |
|
340 |
-
#: libs/blockcountry-settings.php:
|
341 |
msgid "Hostname"
|
342 |
msgstr ""
|
343 |
|
344 |
-
#: libs/blockcountry-settings.php:
|
345 |
msgid "Country"
|
346 |
msgstr ""
|
347 |
|
348 |
-
#: libs/blockcountry-settings.php:
|
349 |
msgid "Frontend/Backend"
|
350 |
msgstr ""
|
351 |
|
352 |
-
#: libs/blockcountry-settings.php:
|
353 |
msgid "Frontend"
|
354 |
msgstr ""
|
355 |
|
356 |
-
#: libs/blockcountry-settings.php:
|
|
|
|
|
|
|
|
|
357 |
msgid "Backend"
|
358 |
msgstr ""
|
359 |
|
360 |
-
#: libs/blockcountry-settings.php:
|
361 |
msgid "Top countries that are blocked"
|
362 |
msgstr ""
|
363 |
|
364 |
-
#: libs/blockcountry-settings.php:
|
365 |
-
#: libs/blockcountry-settings.php:
|
366 |
msgid "# of blocked attempts"
|
367 |
msgstr ""
|
368 |
|
369 |
-
#: libs/blockcountry-settings.php:
|
370 |
msgid "Top hosts that are blocked"
|
371 |
msgstr ""
|
372 |
|
373 |
-
#: libs/blockcountry-settings.php:
|
374 |
msgid "Top URLs that are blocked"
|
375 |
msgstr ""
|
376 |
|
377 |
-
#: libs/blockcountry-settings.php:
|
378 |
msgid "Home"
|
379 |
msgstr ""
|
380 |
|
381 |
-
#: libs/blockcountry-settings.php:
|
382 |
msgid "Pages"
|
383 |
msgstr ""
|
384 |
|
385 |
-
#: libs/blockcountry-settings.php:
|
386 |
msgid "Categories"
|
387 |
msgstr ""
|
388 |
|
389 |
-
#: libs/blockcountry-settings.php:
|
390 |
msgid "Tools"
|
391 |
msgstr ""
|
392 |
|
393 |
-
#: libs/blockcountry-settings.php:
|
394 |
msgid "Logging"
|
395 |
msgstr ""
|
396 |
|
397 |
-
#: libs/blockcountry-settings.php:
|
398 |
msgid "Import/Export"
|
399 |
msgstr ""
|
400 |
|
401 |
-
#: libs/blockcountry-settings.php:
|
402 |
msgid "GeoIP database does not exists. Trying to download it..."
|
403 |
msgstr ""
|
404 |
|
405 |
-
#: iq-block-country.php:
|
406 |
msgid "Error occured: Could not download the GeoIP database from"
|
407 |
msgstr ""
|
408 |
|
409 |
-
#: iq-block-country.php:
|
410 |
msgid ""
|
411 |
"MaxMind has blocked requests from your IP address for 24 hours. Please check "
|
412 |
"again in 24 hours or download this file from your own PC"
|
413 |
msgstr ""
|
414 |
|
415 |
-
#: iq-block-country.php:
|
416 |
msgid "Unzip this file and upload it (via FTP for instance) to:"
|
417 |
msgstr ""
|
418 |
|
419 |
-
#: iq-block-country.php:
|
420 |
msgid ""
|
421 |
"Please download this file from your own PC unzip this file and upload it "
|
422 |
"(via FTP for instance) to:"
|
423 |
msgstr ""
|
424 |
|
425 |
-
#: iq-block-country.php:
|
426 |
msgid "Finished downloading"
|
427 |
msgstr ""
|
428 |
|
429 |
-
#: iq-block-country.php:
|
430 |
msgid "Fatal error: GeoIP"
|
431 |
msgstr ""
|
432 |
|
433 |
-
#: iq-block-country.php:
|
434 |
msgid ""
|
435 |
"database does not exists. This plugin will not work until the database file "
|
436 |
"is present."
|
1 |
msgid ""
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: iQ Block Country\n"
|
4 |
+
"POT-Creation-Date: 2014-05-28 19:11+0100\n"
|
5 |
+
"PO-Revision-Date: 2014-05-28 19:11+0100\n"
|
6 |
"Last-Translator: \n"
|
7 |
"Language-Team: iQ Block Country <info@redeo.nl>\n"
|
8 |
"Language: English\n"
|
15 |
"X-Poedit-SearchPath-0: libs\n"
|
16 |
"X-Poedit-SearchPath-1: .\n"
|
17 |
|
18 |
+
#: libs/blockcountry-settings.php:121
|
19 |
msgid ""
|
20 |
"Check which country belongs to an IP Address according to the current "
|
21 |
"database."
|
22 |
msgstr ""
|
23 |
|
24 |
+
#: libs/blockcountry-settings.php:125
|
25 |
msgid "IP Address to check:"
|
26 |
msgstr ""
|
27 |
|
28 |
+
#: libs/blockcountry-settings.php:135
|
29 |
msgid "No country for"
|
30 |
msgstr ""
|
31 |
|
32 |
+
#: libs/blockcountry-settings.php:135
|
33 |
msgid "could be found. Or"
|
34 |
msgstr ""
|
35 |
|
36 |
+
#: libs/blockcountry-settings.php:135
|
37 |
msgid "is not a valid IPv4 or IPv6 IP address"
|
38 |
msgstr ""
|
39 |
|
40 |
+
#: libs/blockcountry-settings.php:140
|
41 |
msgid "IP Adress"
|
42 |
msgstr ""
|
43 |
|
44 |
+
#: libs/blockcountry-settings.php:140
|
45 |
msgid "belongs to"
|
46 |
msgstr ""
|
47 |
|
48 |
+
#: libs/blockcountry-settings.php:143
|
49 |
msgid "This country is not permitted to visit the frontend of this website."
|
50 |
msgstr ""
|
51 |
|
52 |
+
#: libs/blockcountry-settings.php:148
|
53 |
msgid "This country is not permitted to visit the backend of this website."
|
54 |
msgstr ""
|
55 |
|
56 |
+
#: libs/blockcountry-settings.php:154
|
57 |
msgid "Check IP address"
|
58 |
msgstr ""
|
59 |
|
60 |
+
#: libs/blockcountry-settings.php:160
|
61 |
msgid "Download GeoIP database"
|
62 |
msgstr ""
|
63 |
|
64 |
+
#: libs/blockcountry-settings.php:167
|
65 |
msgid "The GeoIP database is updated once a month. Last update: "
|
66 |
msgstr ""
|
67 |
|
68 |
+
#: libs/blockcountry-settings.php:168
|
69 |
msgid "If you need a manual update please press buttons below to update."
|
70 |
msgstr ""
|
71 |
|
72 |
+
#: libs/blockcountry-settings.php:174
|
73 |
msgid "Download new GeoIP IPv4 Database"
|
74 |
msgstr ""
|
75 |
|
76 |
+
#: libs/blockcountry-settings.php:181
|
77 |
msgid "Download new GeoIP IPv6 Database"
|
78 |
msgstr ""
|
79 |
|
80 |
+
#: libs/blockcountry-settings.php:186 libs/blockcountry-settings.php:190
|
81 |
msgid "Downloading..."
|
82 |
msgstr ""
|
83 |
|
84 |
+
#: libs/blockcountry-settings.php:196
|
85 |
msgid "Active plugins"
|
86 |
msgstr ""
|
87 |
|
88 |
+
#: libs/blockcountry-settings.php:203
|
89 |
msgid "Plugin name"
|
90 |
msgstr ""
|
91 |
|
92 |
+
#: libs/blockcountry-settings.php:203
|
93 |
msgid "Version"
|
94 |
msgstr ""
|
95 |
|
96 |
+
#: libs/blockcountry-settings.php:203 libs/blockcountry-settings.php:785
|
97 |
+
#: libs/blockcountry-settings.php:828
|
98 |
msgid "URL"
|
99 |
msgstr ""
|
100 |
|
101 |
+
#: libs/blockcountry-settings.php:228
|
102 |
msgid "Export"
|
103 |
msgstr ""
|
104 |
|
105 |
+
#: libs/blockcountry-settings.php:229
|
106 |
msgid ""
|
107 |
"When you click on <tt>Backup all settings</tt> button a backup of the iQ "
|
108 |
"Block Country configuration will be created."
|
109 |
msgstr ""
|
110 |
|
111 |
+
#: libs/blockcountry-settings.php:230
|
112 |
msgid ""
|
113 |
"After exporting, you can either use the backup file to restore your settings "
|
114 |
"on this site again or copy the settings to another WordPress site."
|
115 |
msgstr ""
|
116 |
|
117 |
+
#: libs/blockcountry-settings.php:234
|
118 |
msgid "Backup all settings"
|
119 |
msgstr ""
|
120 |
|
121 |
+
#: libs/blockcountry-settings.php:241
|
122 |
msgid "Import"
|
123 |
msgstr ""
|
124 |
|
125 |
+
#: libs/blockcountry-settings.php:242
|
126 |
msgid "Click the browse button and choose a zip file that you exported before."
|
127 |
msgstr ""
|
128 |
|
129 |
+
#: libs/blockcountry-settings.php:243
|
130 |
msgid "Press Restore settings button, and let WordPress do the magic for you."
|
131 |
msgstr ""
|
132 |
|
133 |
+
#: libs/blockcountry-settings.php:248
|
134 |
msgid "Restore settings"
|
135 |
msgstr ""
|
136 |
|
137 |
+
#: libs/blockcountry-settings.php:271 libs/blockcountry-settings.php:274
|
138 |
+
#: libs/blockcountry-settings.php:283
|
139 |
msgid "Something went wrong exporting this file"
|
140 |
msgstr ""
|
141 |
|
142 |
+
#: libs/blockcountry-settings.php:286
|
143 |
msgid "Exporting settings..."
|
144 |
msgstr ""
|
145 |
|
146 |
+
#: libs/blockcountry-settings.php:301
|
147 |
msgid "Something went wrong importing this file"
|
148 |
msgstr ""
|
149 |
|
150 |
+
#: libs/blockcountry-settings.php:318
|
151 |
msgid "All options are restored successfully."
|
152 |
msgstr ""
|
153 |
|
154 |
+
#: libs/blockcountry-settings.php:321
|
155 |
msgid "Invalid file."
|
156 |
msgstr ""
|
157 |
|
158 |
+
#: libs/blockcountry-settings.php:326
|
159 |
msgid "No correct import or export option given."
|
160 |
msgstr ""
|
161 |
|
162 |
+
#: libs/blockcountry-settings.php:335
|
163 |
msgid "Select which pages are blocked."
|
164 |
msgstr ""
|
165 |
|
166 |
+
#: libs/blockcountry-settings.php:342
|
167 |
msgid "Do you want to block individual pages:"
|
168 |
msgstr ""
|
169 |
|
170 |
+
#: libs/blockcountry-settings.php:343
|
171 |
msgid "If you do not select this option all pages will be blocked."
|
172 |
msgstr ""
|
173 |
|
174 |
+
#: libs/blockcountry-settings.php:348
|
175 |
msgid "Select pages you want to block:"
|
176 |
msgstr ""
|
177 |
|
178 |
+
#: libs/blockcountry-settings.php:370 libs/blockcountry-settings.php:424
|
179 |
+
#: libs/blockcountry-settings.php:519 libs/blockcountry-settings.php:623
|
180 |
+
#: libs/blockcountry-settings.php:757
|
181 |
msgid "Save Changes"
|
182 |
msgstr ""
|
183 |
|
184 |
+
#: libs/blockcountry-settings.php:383
|
185 |
msgid "Select which categories are blocked."
|
186 |
msgstr ""
|
187 |
|
188 |
+
#: libs/blockcountry-settings.php:390
|
189 |
msgid "Do you want to block individual categories:"
|
190 |
msgstr ""
|
191 |
|
192 |
+
#: libs/blockcountry-settings.php:391
|
193 |
msgid "If you do not select this option all blog articles will be blocked."
|
194 |
msgstr ""
|
195 |
|
196 |
+
#: libs/blockcountry-settings.php:396
|
197 |
msgid "Do you want to block the homepage:"
|
198 |
msgstr ""
|
199 |
|
200 |
+
#: libs/blockcountry-settings.php:397
|
201 |
msgid ""
|
202 |
"If you do not select this option visitors will not be blocked from your "
|
203 |
"homepage regardless of the categories you select."
|
204 |
msgstr ""
|
205 |
|
206 |
+
#: libs/blockcountry-settings.php:402
|
207 |
msgid "Select categories you want to block:"
|
208 |
msgstr ""
|
209 |
|
210 |
+
#: libs/blockcountry-settings.php:438
|
211 |
msgid "Frontend options"
|
212 |
msgstr ""
|
213 |
|
214 |
+
#: libs/blockcountry-settings.php:473
|
215 |
msgid ""
|
216 |
"Do not block visitors that are logged in from visiting frontend website:"
|
217 |
msgstr ""
|
218 |
|
219 |
+
#: libs/blockcountry-settings.php:479
|
220 |
msgid "Block visitors from visiting the frontend of your website:"
|
221 |
msgstr ""
|
222 |
|
223 |
+
#: libs/blockcountry-settings.php:485
|
224 |
msgid ""
|
225 |
"Select the countries that should be blocked from visiting your frontend:"
|
226 |
msgstr ""
|
227 |
|
228 |
+
#: libs/blockcountry-settings.php:486
|
229 |
msgid "Use the CTRL key to select multiple countries"
|
230 |
msgstr ""
|
231 |
|
232 |
+
#: libs/blockcountry-settings.php:502
|
233 |
msgid "Frontend whitelist IPv4 and/or IPv6 addresses:"
|
234 |
msgstr ""
|
235 |
|
236 |
+
#: libs/blockcountry-settings.php:502 libs/blockcountry-settings.php:510
|
237 |
+
#: libs/blockcountry-settings.php:606 libs/blockcountry-settings.php:614
|
238 |
msgid "Use a semicolon (;) to separate IP addresses"
|
239 |
msgstr ""
|
240 |
|
241 |
+
#: libs/blockcountry-settings.php:510
|
242 |
msgid "Frontend blacklist IPv4 and/or IPv6 addresses:"
|
243 |
msgstr ""
|
244 |
|
245 |
+
#: libs/blockcountry-settings.php:539
|
246 |
msgid "Backend Options"
|
247 |
msgstr ""
|
248 |
|
249 |
+
#: libs/blockcountry-settings.php:573
|
250 |
msgid ""
|
251 |
"Block visitors from visiting the backend (administrator) of your website:"
|
252 |
msgstr ""
|
253 |
|
254 |
+
#: libs/blockcountry-settings.php:581
|
255 |
msgid "Your IP address is"
|
256 |
msgstr ""
|
257 |
|
258 |
+
#: libs/blockcountry-settings.php:581
|
259 |
msgid "The country that is listed for this IP address is"
|
260 |
msgstr ""
|
261 |
|
262 |
+
#: libs/blockcountry-settings.php:582
|
263 |
msgid ""
|
264 |
"Do <strong>NOT</strong> set the 'Block visitors from visiting the backend "
|
265 |
"(administrator) of your website' and also select"
|
266 |
msgstr ""
|
267 |
|
268 |
+
#: libs/blockcountry-settings.php:582
|
269 |
msgid "below."
|
270 |
msgstr ""
|
271 |
|
272 |
+
#: libs/blockcountry-settings.php:583
|
273 |
msgid ""
|
274 |
"You will NOT be able to login the next time if you DO block your own country "
|
275 |
"from visiting the backend."
|
276 |
msgstr ""
|
277 |
|
278 |
+
#: libs/blockcountry-settings.php:588
|
279 |
msgid "Select the countries that should be blocked from visiting your backend:"
|
280 |
msgstr ""
|
281 |
|
282 |
+
#: libs/blockcountry-settings.php:589
|
283 |
msgid "Use the x behind the country to remove a country from this blocklist."
|
284 |
msgstr ""
|
285 |
|
286 |
+
#: libs/blockcountry-settings.php:606
|
287 |
+
msgid "Backend whitelist IPv4 and/or IPv6 addresses:"
|
288 |
+
msgstr ""
|
289 |
+
|
290 |
+
#: libs/blockcountry-settings.php:614
|
291 |
+
msgid "Backend blacklist IPv4 and/or IPv6 addresses:"
|
292 |
+
msgstr ""
|
293 |
+
|
294 |
+
#: libs/blockcountry-settings.php:644
|
295 |
msgid "Overall statistics since start"
|
296 |
msgstr ""
|
297 |
|
298 |
+
#: libs/blockcountry-settings.php:647
|
299 |
msgid "visitors blocked from the backend."
|
300 |
msgstr ""
|
301 |
|
302 |
+
#: libs/blockcountry-settings.php:649
|
303 |
msgid "visitors blocked from the frontend."
|
304 |
msgstr ""
|
305 |
|
306 |
+
#: libs/blockcountry-settings.php:653
|
307 |
msgid "Basic Options"
|
308 |
msgstr ""
|
309 |
|
310 |
+
#: libs/blockcountry-settings.php:688
|
311 |
msgid "Message to display when people are blocked:"
|
312 |
msgstr ""
|
313 |
|
314 |
+
#: libs/blockcountry-settings.php:698
|
315 |
+
msgid "Page to redirect to:"
|
316 |
+
msgstr ""
|
317 |
+
|
318 |
+
#: libs/blockcountry-settings.php:699
|
319 |
+
msgid ""
|
320 |
+
"If you select a page here blocked visitors will be redirected to this page "
|
321 |
+
"instead of displaying above block message."
|
322 |
+
msgstr ""
|
323 |
+
|
324 |
+
#: libs/blockcountry-settings.php:705
|
325 |
+
msgid "Choose a page..."
|
326 |
+
msgstr ""
|
327 |
+
|
328 |
+
#: libs/blockcountry-settings.php:720
|
329 |
msgid "Send headers when user is blocked:"
|
330 |
msgstr ""
|
331 |
|
332 |
+
#: libs/blockcountry-settings.php:721
|
333 |
msgid ""
|
334 |
"Under normal circumstances you should keep this selected! Only if you have "
|
335 |
"\"Cannot modify header information - headers already sent\" errors or if you "
|
336 |
"know what you are doing uncheck this."
|
337 |
msgstr ""
|
338 |
|
339 |
+
#: libs/blockcountry-settings.php:727
|
340 |
+
msgid "Number of rows on statistics page:"
|
341 |
+
msgstr ""
|
342 |
+
|
343 |
+
#: libs/blockcountry-settings.php:728
|
344 |
+
msgid "How many rows do you want to display on each tab the statistics page."
|
345 |
+
msgstr ""
|
346 |
+
|
347 |
+
#: libs/blockcountry-settings.php:743
|
348 |
msgid "Allow tracking:"
|
349 |
msgstr ""
|
350 |
|
351 |
+
#: libs/blockcountry-settings.php:744
|
352 |
msgid ""
|
353 |
"This sends only the IP address and the number of attempts this ip address "
|
354 |
"tried to login to your backend and was blocked doing so to a central server. "
|
356 |
"countries."
|
357 |
msgstr ""
|
358 |
|
359 |
+
#: libs/blockcountry-settings.php:750
|
360 |
+
msgid "API Key:"
|
361 |
msgstr ""
|
362 |
|
363 |
+
#: libs/blockcountry-settings.php:775
|
364 |
+
msgid "Last blocked visits"
|
365 |
+
msgstr ""
|
366 |
+
|
367 |
+
#: libs/blockcountry-settings.php:785
|
368 |
msgid "Date / Time"
|
369 |
msgstr ""
|
370 |
|
371 |
+
#: libs/blockcountry-settings.php:785 libs/blockcountry-settings.php:817
|
372 |
msgid "IP Address"
|
373 |
msgstr ""
|
374 |
|
375 |
+
#: libs/blockcountry-settings.php:785 libs/blockcountry-settings.php:817
|
376 |
msgid "Hostname"
|
377 |
msgstr ""
|
378 |
|
379 |
+
#: libs/blockcountry-settings.php:785 libs/blockcountry-settings.php:804
|
380 |
msgid "Country"
|
381 |
msgstr ""
|
382 |
|
383 |
+
#: libs/blockcountry-settings.php:785
|
384 |
msgid "Frontend/Backend"
|
385 |
msgstr ""
|
386 |
|
387 |
+
#: libs/blockcountry-settings.php:795 libs/blockcountry-settings.php:856
|
388 |
msgid "Frontend"
|
389 |
msgstr ""
|
390 |
|
391 |
+
#: libs/blockcountry-settings.php:795
|
392 |
+
msgid "Backend banlist"
|
393 |
+
msgstr ""
|
394 |
+
|
395 |
+
#: libs/blockcountry-settings.php:795 libs/blockcountry-settings.php:857
|
396 |
msgid "Backend"
|
397 |
msgstr ""
|
398 |
|
399 |
+
#: libs/blockcountry-settings.php:802
|
400 |
msgid "Top countries that are blocked"
|
401 |
msgstr ""
|
402 |
|
403 |
+
#: libs/blockcountry-settings.php:804 libs/blockcountry-settings.php:817
|
404 |
+
#: libs/blockcountry-settings.php:828
|
405 |
msgid "# of blocked attempts"
|
406 |
msgstr ""
|
407 |
|
408 |
+
#: libs/blockcountry-settings.php:815
|
409 |
msgid "Top hosts that are blocked"
|
410 |
msgstr ""
|
411 |
|
412 |
+
#: libs/blockcountry-settings.php:826
|
413 |
msgid "Top URLs that are blocked"
|
414 |
msgstr ""
|
415 |
|
416 |
+
#: libs/blockcountry-settings.php:855
|
417 |
msgid "Home"
|
418 |
msgstr ""
|
419 |
|
420 |
+
#: libs/blockcountry-settings.php:858
|
421 |
msgid "Pages"
|
422 |
msgstr ""
|
423 |
|
424 |
+
#: libs/blockcountry-settings.php:859
|
425 |
msgid "Categories"
|
426 |
msgstr ""
|
427 |
|
428 |
+
#: libs/blockcountry-settings.php:860
|
429 |
msgid "Tools"
|
430 |
msgstr ""
|
431 |
|
432 |
+
#: libs/blockcountry-settings.php:861
|
433 |
msgid "Logging"
|
434 |
msgstr ""
|
435 |
|
436 |
+
#: libs/blockcountry-settings.php:862
|
437 |
msgid "Import/Export"
|
438 |
msgstr ""
|
439 |
|
440 |
+
#: libs/blockcountry-settings.php:912
|
441 |
msgid "GeoIP database does not exists. Trying to download it..."
|
442 |
msgstr ""
|
443 |
|
444 |
+
#: iq-block-country.php:157 iq-block-country.php:167
|
445 |
msgid "Error occured: Could not download the GeoIP database from"
|
446 |
msgstr ""
|
447 |
|
448 |
+
#: iq-block-country.php:158
|
449 |
msgid ""
|
450 |
"MaxMind has blocked requests from your IP address for 24 hours. Please check "
|
451 |
"again in 24 hours or download this file from your own PC"
|
452 |
msgstr ""
|
453 |
|
454 |
+
#: iq-block-country.php:159
|
455 |
msgid "Unzip this file and upload it (via FTP for instance) to:"
|
456 |
msgstr ""
|
457 |
|
458 |
+
#: iq-block-country.php:168
|
459 |
msgid ""
|
460 |
"Please download this file from your own PC unzip this file and upload it "
|
461 |
"(via FTP for instance) to:"
|
462 |
msgstr ""
|
463 |
|
464 |
+
#: iq-block-country.php:194
|
465 |
msgid "Finished downloading"
|
466 |
msgstr ""
|
467 |
|
468 |
+
#: iq-block-country.php:200
|
469 |
msgid "Fatal error: GeoIP"
|
470 |
msgstr ""
|
471 |
|
472 |
+
#: iq-block-country.php:200
|
473 |
msgid ""
|
474 |
"database does not exists. This plugin will not work until the database file "
|
475 |
"is present."
|
lang/iqblockcountry-nl_NL.mo
CHANGED
Binary file
|
lang/iqblockcountry-nl_NL.po
CHANGED
@@ -1,8 +1,8 @@
|
|
1 |
msgid ""
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: iQ Block Country\n"
|
4 |
-
"POT-Creation-Date: 2014-
|
5 |
-
"PO-Revision-Date: 2014-
|
6 |
"Last-Translator: \n"
|
7 |
"Language-Team: iQ Block Country <info@redeo.nl>\n"
|
8 |
"Language: Dutch\n"
|
@@ -15,99 +15,99 @@ msgstr ""
|
|
15 |
"X-Poedit-SearchPath-0: libs\n"
|
16 |
"X-Poedit-SearchPath-1: .\n"
|
17 |
|
18 |
-
#: libs/blockcountry-settings.php:
|
19 |
msgid ""
|
20 |
"Check which country belongs to an IP Address according to the current "
|
21 |
"database."
|
22 |
msgstr ""
|
23 |
"Controleer welk land behoort tot een IP adres volgens de huidige database."
|
24 |
|
25 |
-
#: libs/blockcountry-settings.php:
|
26 |
msgid "IP Address to check:"
|
27 |
msgstr "IP adres om te controleren:"
|
28 |
|
29 |
-
#: libs/blockcountry-settings.php:
|
30 |
msgid "No country for"
|
31 |
msgstr "Geen land voor"
|
32 |
|
33 |
-
#: libs/blockcountry-settings.php:
|
34 |
msgid "could be found. Or"
|
35 |
msgstr "gevonden. Of"
|
36 |
|
37 |
-
#: libs/blockcountry-settings.php:
|
38 |
msgid "is not a valid IPv4 or IPv6 IP address"
|
39 |
msgstr "is geen valide IPv4 of IPv6 ip adres."
|
40 |
|
41 |
-
#: libs/blockcountry-settings.php:
|
42 |
msgid "IP Adress"
|
43 |
msgstr "IP Adres"
|
44 |
|
45 |
-
#: libs/blockcountry-settings.php:
|
46 |
msgid "belongs to"
|
47 |
msgstr "behoort tot"
|
48 |
|
49 |
-
#: libs/blockcountry-settings.php:
|
50 |
msgid "This country is not permitted to visit the frontend of this website."
|
51 |
msgstr ""
|
52 |
"Dit land wordt niet toegestaan om de voorkant van deze website te bezoeken."
|
53 |
|
54 |
-
#: libs/blockcountry-settings.php:
|
55 |
msgid "This country is not permitted to visit the backend of this website."
|
56 |
msgstr ""
|
57 |
"Dit land wordt niet toegestaan om de achterkant van deze website te bezoeken."
|
58 |
|
59 |
-
#: libs/blockcountry-settings.php:
|
60 |
msgid "Check IP address"
|
61 |
msgstr "Controleer IP adres"
|
62 |
|
63 |
-
#: libs/blockcountry-settings.php:
|
64 |
msgid "Download GeoIP database"
|
65 |
msgstr "Download GeoIP database"
|
66 |
|
67 |
-
#: libs/blockcountry-settings.php:
|
68 |
msgid "The GeoIP database is updated once a month. Last update: "
|
69 |
msgstr ""
|
70 |
"De GeoIP database wordt eenmaal per maand bijgewerkt. Laatste keer "
|
71 |
"bijgewerkt:"
|
72 |
|
73 |
-
#: libs/blockcountry-settings.php:
|
74 |
msgid "If you need a manual update please press buttons below to update."
|
75 |
msgstr "Indien je handmatig wilt bijwerken druk je op de knoppen hier beneden."
|
76 |
|
77 |
-
#: libs/blockcountry-settings.php:
|
78 |
msgid "Download new GeoIP IPv4 Database"
|
79 |
msgstr "Download nieuwe GeoIP IPv4 database"
|
80 |
|
81 |
-
#: libs/blockcountry-settings.php:
|
82 |
msgid "Download new GeoIP IPv6 Database"
|
83 |
msgstr "Download nieuwe GeoIP IPv6 database"
|
84 |
|
85 |
-
#: libs/blockcountry-settings.php:
|
86 |
msgid "Downloading..."
|
87 |
msgstr "Downloading..."
|
88 |
|
89 |
-
#: libs/blockcountry-settings.php:
|
90 |
msgid "Active plugins"
|
91 |
msgstr "Actieve plugins"
|
92 |
|
93 |
-
#: libs/blockcountry-settings.php:
|
94 |
msgid "Plugin name"
|
95 |
msgstr "Plugin naam"
|
96 |
|
97 |
-
#: libs/blockcountry-settings.php:
|
98 |
msgid "Version"
|
99 |
msgstr "Versie"
|
100 |
|
101 |
-
#: libs/blockcountry-settings.php:
|
102 |
-
#: libs/blockcountry-settings.php:
|
103 |
msgid "URL"
|
104 |
msgstr "URL"
|
105 |
|
106 |
-
#: libs/blockcountry-settings.php:
|
107 |
msgid "Export"
|
108 |
msgstr "Exporteren"
|
109 |
|
110 |
-
#: libs/blockcountry-settings.php:
|
111 |
msgid ""
|
112 |
"When you click on <tt>Backup all settings</tt> button a backup of the iQ "
|
113 |
"Block Country configuration will be created."
|
@@ -115,7 +115,7 @@ msgstr ""
|
|
115 |
"Wanneer je klikt op de <tt>Backup alle instellingen</tt> knop zal een backup "
|
116 |
"van alle iQ Block Country instellingen worden gecreerd."
|
117 |
|
118 |
-
#: libs/blockcountry-settings.php:
|
119 |
msgid ""
|
120 |
"After exporting, you can either use the backup file to restore your settings "
|
121 |
"on this site again or copy the settings to another WordPress site."
|
@@ -124,95 +124,95 @@ msgstr ""
|
|
124 |
"te herstellen of je kunt het bestand gebruiken om je instellingen naar een "
|
125 |
"andere WordPress site te exporteren."
|
126 |
|
127 |
-
#: libs/blockcountry-settings.php:
|
128 |
msgid "Backup all settings"
|
129 |
msgstr "Backup alle instellingen"
|
130 |
|
131 |
-
#: libs/blockcountry-settings.php:
|
132 |
msgid "Import"
|
133 |
msgstr "Importeer"
|
134 |
|
135 |
-
#: libs/blockcountry-settings.php:
|
136 |
msgid "Click the browse button and choose a zip file that you exported before."
|
137 |
msgstr ""
|
138 |
"Klik op de Browse button and selecteer een zip file welke je eerder hebt "
|
139 |
"geexporteerd."
|
140 |
|
141 |
-
#: libs/blockcountry-settings.php:
|
142 |
msgid "Press Restore settings button, and let WordPress do the magic for you."
|
143 |
msgstr ""
|
144 |
"Druk op de herstel instellingen knop en laat WordPress haar magie voor je "
|
145 |
"doen."
|
146 |
|
147 |
-
#: libs/blockcountry-settings.php:
|
148 |
msgid "Restore settings"
|
149 |
msgstr "Herstel instellingen"
|
150 |
|
151 |
-
#: libs/blockcountry-settings.php:
|
152 |
-
#: libs/blockcountry-settings.php:
|
153 |
msgid "Something went wrong exporting this file"
|
154 |
msgstr "Er is iets verkeerd gegaan met het exporteren van het bestand."
|
155 |
|
156 |
-
#: libs/blockcountry-settings.php:
|
157 |
msgid "Exporting settings..."
|
158 |
msgstr "Exporteer instellingen"
|
159 |
|
160 |
-
#: libs/blockcountry-settings.php:
|
161 |
msgid "Something went wrong importing this file"
|
162 |
msgstr "Er is iets verkeerd gegaan met het importeren van dit bestand"
|
163 |
|
164 |
-
#: libs/blockcountry-settings.php:
|
165 |
msgid "All options are restored successfully."
|
166 |
msgstr "Alle opties zijn succesvol hersteld"
|
167 |
|
168 |
-
#: libs/blockcountry-settings.php:
|
169 |
msgid "Invalid file."
|
170 |
msgstr "Ongeldig bestand"
|
171 |
|
172 |
-
#: libs/blockcountry-settings.php:
|
173 |
msgid "No correct import or export option given."
|
174 |
msgstr "Geen correcte importeer of exporteer optie gegeven."
|
175 |
|
176 |
-
#: libs/blockcountry-settings.php:
|
177 |
msgid "Select which pages are blocked."
|
178 |
msgstr "Selecteer welke pagina's geblokkeerd worden."
|
179 |
|
180 |
-
#: libs/blockcountry-settings.php:
|
181 |
msgid "Do you want to block individual pages:"
|
182 |
msgstr "Wil je individuele pagina's blokkeren:"
|
183 |
|
184 |
-
#: libs/blockcountry-settings.php:
|
185 |
msgid "If you do not select this option all pages will be blocked."
|
186 |
msgstr "Indien je deze optie niet selecteert worden alle pagina's geblokkeerd."
|
187 |
|
188 |
-
#: libs/blockcountry-settings.php:
|
189 |
msgid "Select pages you want to block:"
|
190 |
msgstr "Selecteer welke pagina's je wil blokkeren."
|
191 |
|
192 |
-
#: libs/blockcountry-settings.php:
|
193 |
-
#: libs/blockcountry-settings.php:
|
194 |
-
#: libs/blockcountry-settings.php:
|
195 |
msgid "Save Changes"
|
196 |
msgstr "Bewaar wijzigingen"
|
197 |
|
198 |
-
#: libs/blockcountry-settings.php:
|
199 |
msgid "Select which categories are blocked."
|
200 |
msgstr "Selecteer welke categorieen geblokkeerd worden."
|
201 |
|
202 |
-
#: libs/blockcountry-settings.php:
|
203 |
msgid "Do you want to block individual categories:"
|
204 |
msgstr "Wil je individuele categorieen blokkeren:"
|
205 |
|
206 |
-
#: libs/blockcountry-settings.php:
|
207 |
msgid "If you do not select this option all blog articles will be blocked."
|
208 |
msgstr ""
|
209 |
"Indien je deze optie niet selecteert worden alle blog artikelen geblokkeerd."
|
210 |
|
211 |
-
#: libs/blockcountry-settings.php:
|
212 |
msgid "Do you want to block the homepage:"
|
213 |
msgstr "Wil je je homepage blokkeren:"
|
214 |
|
215 |
-
#: libs/blockcountry-settings.php:
|
216 |
msgid ""
|
217 |
"If you do not select this option visitors will not be blocked from your "
|
218 |
"homepage regardless of the categories you select."
|
@@ -221,69 +221,70 @@ msgstr ""
|
|
221 |
"geblokkeerd van het bezoeken van je homepagina ongeacht welke categorieen je "
|
222 |
"selecteert."
|
223 |
|
224 |
-
#: libs/blockcountry-settings.php:
|
225 |
msgid "Select categories you want to block:"
|
226 |
msgstr "Selecteer welke categorieen je wil blokkeren."
|
227 |
|
228 |
-
#: libs/blockcountry-settings.php:
|
229 |
msgid "Frontend options"
|
230 |
msgstr "Voorkant opties"
|
231 |
|
232 |
-
#: libs/blockcountry-settings.php:
|
233 |
msgid ""
|
234 |
"Do not block visitors that are logged in from visiting frontend website:"
|
235 |
msgstr ""
|
236 |
"Blokkeer geen bezoekers welke ingelogd zijn van het bezoeken van de voorkant:"
|
237 |
|
238 |
-
#: libs/blockcountry-settings.php:
|
239 |
msgid "Block visitors from visiting the frontend of your website:"
|
240 |
msgstr "Blokkeer bezoekers van het bezoeken van de voorkant van je website:"
|
241 |
|
242 |
-
#: libs/blockcountry-settings.php:
|
243 |
msgid ""
|
244 |
"Select the countries that should be blocked from visiting your frontend:"
|
245 |
msgstr ""
|
246 |
"Selecteer de landen welke geblokkeerd moeten worden voor het bezoeken van de "
|
247 |
"voorkant van je website:"
|
248 |
|
249 |
-
#: libs/blockcountry-settings.php:
|
250 |
msgid "Use the CTRL key to select multiple countries"
|
251 |
msgstr "Gebruik de CTRL toets om meerdere landen te selecteren"
|
252 |
|
253 |
-
#: libs/blockcountry-settings.php:
|
254 |
msgid "Frontend whitelist IPv4 and/or IPv6 addresses:"
|
255 |
msgstr ""
|
256 |
"Whitelist van IPv4 of IPv6 IP adressen voor de voorkant van je website:"
|
257 |
|
258 |
-
#: libs/blockcountry-settings.php:
|
|
|
259 |
msgid "Use a semicolon (;) to separate IP addresses"
|
260 |
msgstr "Gebruik een puntkomma (;) om adressen van elkaar te scheiden"
|
261 |
|
262 |
-
#: libs/blockcountry-settings.php:
|
263 |
msgid "Frontend blacklist IPv4 and/or IPv6 addresses:"
|
264 |
msgstr ""
|
265 |
"Blacklist van IPv4 of IPv6 IP adressen voor de voorkant van je website:"
|
266 |
|
267 |
-
#: libs/blockcountry-settings.php:
|
268 |
msgid "Backend Options"
|
269 |
msgstr "Achterkant opties"
|
270 |
|
271 |
-
#: libs/blockcountry-settings.php:
|
272 |
msgid ""
|
273 |
"Block visitors from visiting the backend (administrator) of your website:"
|
274 |
msgstr ""
|
275 |
"Blokkeer bezoekers van het bezoeken van de achterkant (administratie "
|
276 |
"gedeelte) van je website:"
|
277 |
|
278 |
-
#: libs/blockcountry-settings.php:
|
279 |
msgid "Your IP address is"
|
280 |
msgstr "Je IP adres is"
|
281 |
|
282 |
-
#: libs/blockcountry-settings.php:
|
283 |
msgid "The country that is listed for this IP address is"
|
284 |
msgstr "Het land waar dit adres toe behoort is"
|
285 |
|
286 |
-
#: libs/blockcountry-settings.php:
|
287 |
msgid ""
|
288 |
"Do <strong>NOT</strong> set the 'Block visitors from visiting the backend "
|
289 |
"(administrator) of your website' and also select"
|
@@ -291,11 +292,11 @@ msgstr ""
|
|
291 |
"Selecteer <strong>NIET</strong> \"Blokkeer bezoekers van het bezoeken van de "
|
292 |
"achterkant (administratie gedeelte) van je website\" en"
|
293 |
|
294 |
-
#: libs/blockcountry-settings.php:
|
295 |
msgid "below."
|
296 |
msgstr "hier beneden."
|
297 |
|
298 |
-
#: libs/blockcountry-settings.php:
|
299 |
msgid ""
|
300 |
"You will NOT be able to login the next time if you DO block your own country "
|
301 |
"from visiting the backend."
|
@@ -303,42 +304,69 @@ msgstr ""
|
|
303 |
"Het zal daarna niet meer mogelijk zijn om nog in te loggen als je je eigen "
|
304 |
"land blokkeert van het bezoeken van de achterkant van je website."
|
305 |
|
306 |
-
#: libs/blockcountry-settings.php:
|
307 |
msgid "Select the countries that should be blocked from visiting your backend:"
|
308 |
msgstr ""
|
309 |
"Selecteer de landen welke geblokkeerd moeten worden voor het bezoeken van de "
|
310 |
"achterkant (administratie gedeelte) van je website:"
|
311 |
|
312 |
-
#: libs/blockcountry-settings.php:
|
313 |
msgid "Use the x behind the country to remove a country from this blocklist."
|
314 |
msgstr ""
|
315 |
"Gebruik de x achter een land om het land te verwijderen uit deze lijst."
|
316 |
|
317 |
-
#: libs/blockcountry-settings.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
318 |
msgid "Overall statistics since start"
|
319 |
msgstr "Statistieken sinds het begin"
|
320 |
|
321 |
-
#: libs/blockcountry-settings.php:
|
322 |
msgid "visitors blocked from the backend."
|
323 |
msgstr "bezoekers geblokkeerd op de achterkant."
|
324 |
|
325 |
-
#: libs/blockcountry-settings.php:
|
326 |
msgid "visitors blocked from the frontend."
|
327 |
msgstr "bezoekers geblokkeerd op de voorkant."
|
328 |
|
329 |
-
#: libs/blockcountry-settings.php:
|
330 |
msgid "Basic Options"
|
331 |
msgstr "Standaard opties"
|
332 |
|
333 |
-
#: libs/blockcountry-settings.php:
|
334 |
msgid "Message to display when people are blocked:"
|
335 |
msgstr "Welk bericht wil je tonen aan bezoekers welke geblokkeerd worden:"
|
336 |
|
337 |
-
#: libs/blockcountry-settings.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
338 |
msgid "Send headers when user is blocked:"
|
339 |
msgstr "Stuur headers wanneer een gebruiker is geblokkeerd:"
|
340 |
|
341 |
-
#: libs/blockcountry-settings.php:
|
342 |
msgid ""
|
343 |
"Under normal circumstances you should keep this selected! Only if you have "
|
344 |
"\"Cannot modify header information - headers already sent\" errors or if you "
|
@@ -348,11 +376,19 @@ msgstr ""
|
|
348 |
"deze alleen indien je \"Cannot modify header information - headers already "
|
349 |
"sent\" foutmeldingen krijgt of indien je weet wat je doet."
|
350 |
|
351 |
-
#: libs/blockcountry-settings.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
352 |
msgid "Allow tracking:"
|
353 |
msgstr "Sta traceren toe:"
|
354 |
|
355 |
-
#: libs/blockcountry-settings.php:
|
356 |
msgid ""
|
357 |
"This sends only the IP address and the number of attempts this ip address "
|
358 |
"tried to login to your backend and was blocked doing so to a central server. "
|
@@ -365,89 +401,97 @@ msgstr ""
|
|
365 |
"ons om beter inzicht te krijgen in de landen waarvandaan een hoop hack "
|
366 |
"pogingen worden gedaan. "
|
367 |
|
368 |
-
#: libs/blockcountry-settings.php:
|
369 |
-
msgid "
|
370 |
-
msgstr "
|
|
|
|
|
|
|
|
|
371 |
|
372 |
-
#: libs/blockcountry-settings.php:
|
373 |
msgid "Date / Time"
|
374 |
msgstr "Datum / Tijd"
|
375 |
|
376 |
-
#: libs/blockcountry-settings.php:
|
377 |
msgid "IP Address"
|
378 |
msgstr "IP adres"
|
379 |
|
380 |
-
#: libs/blockcountry-settings.php:
|
381 |
msgid "Hostname"
|
382 |
msgstr "Hostnaam"
|
383 |
|
384 |
-
#: libs/blockcountry-settings.php:
|
385 |
msgid "Country"
|
386 |
msgstr "Land"
|
387 |
|
388 |
-
#: libs/blockcountry-settings.php:
|
389 |
msgid "Frontend/Backend"
|
390 |
msgstr "Voorkant/Achterkant"
|
391 |
|
392 |
-
#: libs/blockcountry-settings.php:
|
393 |
msgid "Frontend"
|
394 |
msgstr "Voorkant"
|
395 |
|
396 |
-
#: libs/blockcountry-settings.php:
|
|
|
|
|
|
|
|
|
397 |
msgid "Backend"
|
398 |
msgstr "Achterkant"
|
399 |
|
400 |
-
#: libs/blockcountry-settings.php:
|
401 |
msgid "Top countries that are blocked"
|
402 |
msgstr "Top landen welke zijn geblokkeerd"
|
403 |
|
404 |
-
#: libs/blockcountry-settings.php:
|
405 |
-
#: libs/blockcountry-settings.php:
|
406 |
msgid "# of blocked attempts"
|
407 |
msgstr "# of geblokkeerde pogingen"
|
408 |
|
409 |
-
#: libs/blockcountry-settings.php:
|
410 |
msgid "Top hosts that are blocked"
|
411 |
msgstr "Top hosts welke geblokkeerd zijn"
|
412 |
|
413 |
-
#: libs/blockcountry-settings.php:
|
414 |
msgid "Top URLs that are blocked"
|
415 |
msgstr "Top URLs welke geblokkeerd zijn"
|
416 |
|
417 |
-
#: libs/blockcountry-settings.php:
|
418 |
msgid "Home"
|
419 |
msgstr "Home"
|
420 |
|
421 |
-
#: libs/blockcountry-settings.php:
|
422 |
msgid "Pages"
|
423 |
msgstr "Pagina's"
|
424 |
|
425 |
-
#: libs/blockcountry-settings.php:
|
426 |
msgid "Categories"
|
427 |
msgstr "Categorieen"
|
428 |
|
429 |
-
#: libs/blockcountry-settings.php:
|
430 |
#, fuzzy
|
431 |
msgid "Tools"
|
432 |
msgstr "Gereedschap"
|
433 |
|
434 |
-
#: libs/blockcountry-settings.php:
|
435 |
msgid "Logging"
|
436 |
msgstr "Statistieken"
|
437 |
|
438 |
-
#: libs/blockcountry-settings.php:
|
439 |
msgid "Import/Export"
|
440 |
msgstr "Importeren/Exporteren"
|
441 |
|
442 |
-
#: libs/blockcountry-settings.php:
|
443 |
msgid "GeoIP database does not exists. Trying to download it..."
|
444 |
msgstr "GeoIP database bestaat niet. Probeer om nieuwe versie te downloaden"
|
445 |
|
446 |
-
#: iq-block-country.php:
|
447 |
msgid "Error occured: Could not download the GeoIP database from"
|
448 |
msgstr "Uh oh: Kon de GeoIP database niet downloaden van"
|
449 |
|
450 |
-
#: iq-block-country.php:
|
451 |
msgid ""
|
452 |
"MaxMind has blocked requests from your IP address for 24 hours. Please check "
|
453 |
"again in 24 hours or download this file from your own PC"
|
@@ -455,11 +499,11 @@ msgstr ""
|
|
455 |
"MaxMind heeft alle verzoeken vanaf dit IP adres voor 24 uur geblokkeerd. "
|
456 |
"Controleer nogmaals na 24 uur of download dit bestand via je eigen pc"
|
457 |
|
458 |
-
#: iq-block-country.php:
|
459 |
msgid "Unzip this file and upload it (via FTP for instance) to:"
|
460 |
msgstr "Pak dit bestand uit en upload deze (via FTP bijvoorbeeld) naar:"
|
461 |
|
462 |
-
#: iq-block-country.php:
|
463 |
msgid ""
|
464 |
"Please download this file from your own PC unzip this file and upload it "
|
465 |
"(via FTP for instance) to:"
|
@@ -467,15 +511,15 @@ msgstr ""
|
|
467 |
"Download dit bestand alsjeblieft naar je eigen PC. Pak het bestand daar uit "
|
468 |
"en upload deze (bijvoorbeeld via FTP) naar:"
|
469 |
|
470 |
-
#: iq-block-country.php:
|
471 |
msgid "Finished downloading"
|
472 |
msgstr "Klaar met downloaden"
|
473 |
|
474 |
-
#: iq-block-country.php:
|
475 |
msgid "Fatal error: GeoIP"
|
476 |
msgstr "Fatale fout: GeoIP"
|
477 |
|
478 |
-
#: iq-block-country.php:
|
479 |
msgid ""
|
480 |
"database does not exists. This plugin will not work until the database file "
|
481 |
"is present."
|
1 |
msgid ""
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: iQ Block Country\n"
|
4 |
+
"POT-Creation-Date: 2014-05-28 19:11+0100\n"
|
5 |
+
"PO-Revision-Date: 2014-05-28 19:23+0100\n"
|
6 |
"Last-Translator: \n"
|
7 |
"Language-Team: iQ Block Country <info@redeo.nl>\n"
|
8 |
"Language: Dutch\n"
|
15 |
"X-Poedit-SearchPath-0: libs\n"
|
16 |
"X-Poedit-SearchPath-1: .\n"
|
17 |
|
18 |
+
#: libs/blockcountry-settings.php:121
|
19 |
msgid ""
|
20 |
"Check which country belongs to an IP Address according to the current "
|
21 |
"database."
|
22 |
msgstr ""
|
23 |
"Controleer welk land behoort tot een IP adres volgens de huidige database."
|
24 |
|
25 |
+
#: libs/blockcountry-settings.php:125
|
26 |
msgid "IP Address to check:"
|
27 |
msgstr "IP adres om te controleren:"
|
28 |
|
29 |
+
#: libs/blockcountry-settings.php:135
|
30 |
msgid "No country for"
|
31 |
msgstr "Geen land voor"
|
32 |
|
33 |
+
#: libs/blockcountry-settings.php:135
|
34 |
msgid "could be found. Or"
|
35 |
msgstr "gevonden. Of"
|
36 |
|
37 |
+
#: libs/blockcountry-settings.php:135
|
38 |
msgid "is not a valid IPv4 or IPv6 IP address"
|
39 |
msgstr "is geen valide IPv4 of IPv6 ip adres."
|
40 |
|
41 |
+
#: libs/blockcountry-settings.php:140
|
42 |
msgid "IP Adress"
|
43 |
msgstr "IP Adres"
|
44 |
|
45 |
+
#: libs/blockcountry-settings.php:140
|
46 |
msgid "belongs to"
|
47 |
msgstr "behoort tot"
|
48 |
|
49 |
+
#: libs/blockcountry-settings.php:143
|
50 |
msgid "This country is not permitted to visit the frontend of this website."
|
51 |
msgstr ""
|
52 |
"Dit land wordt niet toegestaan om de voorkant van deze website te bezoeken."
|
53 |
|
54 |
+
#: libs/blockcountry-settings.php:148
|
55 |
msgid "This country is not permitted to visit the backend of this website."
|
56 |
msgstr ""
|
57 |
"Dit land wordt niet toegestaan om de achterkant van deze website te bezoeken."
|
58 |
|
59 |
+
#: libs/blockcountry-settings.php:154
|
60 |
msgid "Check IP address"
|
61 |
msgstr "Controleer IP adres"
|
62 |
|
63 |
+
#: libs/blockcountry-settings.php:160
|
64 |
msgid "Download GeoIP database"
|
65 |
msgstr "Download GeoIP database"
|
66 |
|
67 |
+
#: libs/blockcountry-settings.php:167
|
68 |
msgid "The GeoIP database is updated once a month. Last update: "
|
69 |
msgstr ""
|
70 |
"De GeoIP database wordt eenmaal per maand bijgewerkt. Laatste keer "
|
71 |
"bijgewerkt:"
|
72 |
|
73 |
+
#: libs/blockcountry-settings.php:168
|
74 |
msgid "If you need a manual update please press buttons below to update."
|
75 |
msgstr "Indien je handmatig wilt bijwerken druk je op de knoppen hier beneden."
|
76 |
|
77 |
+
#: libs/blockcountry-settings.php:174
|
78 |
msgid "Download new GeoIP IPv4 Database"
|
79 |
msgstr "Download nieuwe GeoIP IPv4 database"
|
80 |
|
81 |
+
#: libs/blockcountry-settings.php:181
|
82 |
msgid "Download new GeoIP IPv6 Database"
|
83 |
msgstr "Download nieuwe GeoIP IPv6 database"
|
84 |
|
85 |
+
#: libs/blockcountry-settings.php:186 libs/blockcountry-settings.php:190
|
86 |
msgid "Downloading..."
|
87 |
msgstr "Downloading..."
|
88 |
|
89 |
+
#: libs/blockcountry-settings.php:196
|
90 |
msgid "Active plugins"
|
91 |
msgstr "Actieve plugins"
|
92 |
|
93 |
+
#: libs/blockcountry-settings.php:203
|
94 |
msgid "Plugin name"
|
95 |
msgstr "Plugin naam"
|
96 |
|
97 |
+
#: libs/blockcountry-settings.php:203
|
98 |
msgid "Version"
|
99 |
msgstr "Versie"
|
100 |
|
101 |
+
#: libs/blockcountry-settings.php:203 libs/blockcountry-settings.php:785
|
102 |
+
#: libs/blockcountry-settings.php:828
|
103 |
msgid "URL"
|
104 |
msgstr "URL"
|
105 |
|
106 |
+
#: libs/blockcountry-settings.php:228
|
107 |
msgid "Export"
|
108 |
msgstr "Exporteren"
|
109 |
|
110 |
+
#: libs/blockcountry-settings.php:229
|
111 |
msgid ""
|
112 |
"When you click on <tt>Backup all settings</tt> button a backup of the iQ "
|
113 |
"Block Country configuration will be created."
|
115 |
"Wanneer je klikt op de <tt>Backup alle instellingen</tt> knop zal een backup "
|
116 |
"van alle iQ Block Country instellingen worden gecreerd."
|
117 |
|
118 |
+
#: libs/blockcountry-settings.php:230
|
119 |
msgid ""
|
120 |
"After exporting, you can either use the backup file to restore your settings "
|
121 |
"on this site again or copy the settings to another WordPress site."
|
124 |
"te herstellen of je kunt het bestand gebruiken om je instellingen naar een "
|
125 |
"andere WordPress site te exporteren."
|
126 |
|
127 |
+
#: libs/blockcountry-settings.php:234
|
128 |
msgid "Backup all settings"
|
129 |
msgstr "Backup alle instellingen"
|
130 |
|
131 |
+
#: libs/blockcountry-settings.php:241
|
132 |
msgid "Import"
|
133 |
msgstr "Importeer"
|
134 |
|
135 |
+
#: libs/blockcountry-settings.php:242
|
136 |
msgid "Click the browse button and choose a zip file that you exported before."
|
137 |
msgstr ""
|
138 |
"Klik op de Browse button and selecteer een zip file welke je eerder hebt "
|
139 |
"geexporteerd."
|
140 |
|
141 |
+
#: libs/blockcountry-settings.php:243
|
142 |
msgid "Press Restore settings button, and let WordPress do the magic for you."
|
143 |
msgstr ""
|
144 |
"Druk op de herstel instellingen knop en laat WordPress haar magie voor je "
|
145 |
"doen."
|
146 |
|
147 |
+
#: libs/blockcountry-settings.php:248
|
148 |
msgid "Restore settings"
|
149 |
msgstr "Herstel instellingen"
|
150 |
|
151 |
+
#: libs/blockcountry-settings.php:271 libs/blockcountry-settings.php:274
|
152 |
+
#: libs/blockcountry-settings.php:283
|
153 |
msgid "Something went wrong exporting this file"
|
154 |
msgstr "Er is iets verkeerd gegaan met het exporteren van het bestand."
|
155 |
|
156 |
+
#: libs/blockcountry-settings.php:286
|
157 |
msgid "Exporting settings..."
|
158 |
msgstr "Exporteer instellingen"
|
159 |
|
160 |
+
#: libs/blockcountry-settings.php:301
|
161 |
msgid "Something went wrong importing this file"
|
162 |
msgstr "Er is iets verkeerd gegaan met het importeren van dit bestand"
|
163 |
|
164 |
+
#: libs/blockcountry-settings.php:318
|
165 |
msgid "All options are restored successfully."
|
166 |
msgstr "Alle opties zijn succesvol hersteld"
|
167 |
|
168 |
+
#: libs/blockcountry-settings.php:321
|
169 |
msgid "Invalid file."
|
170 |
msgstr "Ongeldig bestand"
|
171 |
|
172 |
+
#: libs/blockcountry-settings.php:326
|
173 |
msgid "No correct import or export option given."
|
174 |
msgstr "Geen correcte importeer of exporteer optie gegeven."
|
175 |
|
176 |
+
#: libs/blockcountry-settings.php:335
|
177 |
msgid "Select which pages are blocked."
|
178 |
msgstr "Selecteer welke pagina's geblokkeerd worden."
|
179 |
|
180 |
+
#: libs/blockcountry-settings.php:342
|
181 |
msgid "Do you want to block individual pages:"
|
182 |
msgstr "Wil je individuele pagina's blokkeren:"
|
183 |
|
184 |
+
#: libs/blockcountry-settings.php:343
|
185 |
msgid "If you do not select this option all pages will be blocked."
|
186 |
msgstr "Indien je deze optie niet selecteert worden alle pagina's geblokkeerd."
|
187 |
|
188 |
+
#: libs/blockcountry-settings.php:348
|
189 |
msgid "Select pages you want to block:"
|
190 |
msgstr "Selecteer welke pagina's je wil blokkeren."
|
191 |
|
192 |
+
#: libs/blockcountry-settings.php:370 libs/blockcountry-settings.php:424
|
193 |
+
#: libs/blockcountry-settings.php:519 libs/blockcountry-settings.php:623
|
194 |
+
#: libs/blockcountry-settings.php:757
|
195 |
msgid "Save Changes"
|
196 |
msgstr "Bewaar wijzigingen"
|
197 |
|
198 |
+
#: libs/blockcountry-settings.php:383
|
199 |
msgid "Select which categories are blocked."
|
200 |
msgstr "Selecteer welke categorieen geblokkeerd worden."
|
201 |
|
202 |
+
#: libs/blockcountry-settings.php:390
|
203 |
msgid "Do you want to block individual categories:"
|
204 |
msgstr "Wil je individuele categorieen blokkeren:"
|
205 |
|
206 |
+
#: libs/blockcountry-settings.php:391
|
207 |
msgid "If you do not select this option all blog articles will be blocked."
|
208 |
msgstr ""
|
209 |
"Indien je deze optie niet selecteert worden alle blog artikelen geblokkeerd."
|
210 |
|
211 |
+
#: libs/blockcountry-settings.php:396
|
212 |
msgid "Do you want to block the homepage:"
|
213 |
msgstr "Wil je je homepage blokkeren:"
|
214 |
|
215 |
+
#: libs/blockcountry-settings.php:397
|
216 |
msgid ""
|
217 |
"If you do not select this option visitors will not be blocked from your "
|
218 |
"homepage regardless of the categories you select."
|
221 |
"geblokkeerd van het bezoeken van je homepagina ongeacht welke categorieen je "
|
222 |
"selecteert."
|
223 |
|
224 |
+
#: libs/blockcountry-settings.php:402
|
225 |
msgid "Select categories you want to block:"
|
226 |
msgstr "Selecteer welke categorieen je wil blokkeren."
|
227 |
|
228 |
+
#: libs/blockcountry-settings.php:438
|
229 |
msgid "Frontend options"
|
230 |
msgstr "Voorkant opties"
|
231 |
|
232 |
+
#: libs/blockcountry-settings.php:473
|
233 |
msgid ""
|
234 |
"Do not block visitors that are logged in from visiting frontend website:"
|
235 |
msgstr ""
|
236 |
"Blokkeer geen bezoekers welke ingelogd zijn van het bezoeken van de voorkant:"
|
237 |
|
238 |
+
#: libs/blockcountry-settings.php:479
|
239 |
msgid "Block visitors from visiting the frontend of your website:"
|
240 |
msgstr "Blokkeer bezoekers van het bezoeken van de voorkant van je website:"
|
241 |
|
242 |
+
#: libs/blockcountry-settings.php:485
|
243 |
msgid ""
|
244 |
"Select the countries that should be blocked from visiting your frontend:"
|
245 |
msgstr ""
|
246 |
"Selecteer de landen welke geblokkeerd moeten worden voor het bezoeken van de "
|
247 |
"voorkant van je website:"
|
248 |
|
249 |
+
#: libs/blockcountry-settings.php:486
|
250 |
msgid "Use the CTRL key to select multiple countries"
|
251 |
msgstr "Gebruik de CTRL toets om meerdere landen te selecteren"
|
252 |
|
253 |
+
#: libs/blockcountry-settings.php:502
|
254 |
msgid "Frontend whitelist IPv4 and/or IPv6 addresses:"
|
255 |
msgstr ""
|
256 |
"Whitelist van IPv4 of IPv6 IP adressen voor de voorkant van je website:"
|
257 |
|
258 |
+
#: libs/blockcountry-settings.php:502 libs/blockcountry-settings.php:510
|
259 |
+
#: libs/blockcountry-settings.php:606 libs/blockcountry-settings.php:614
|
260 |
msgid "Use a semicolon (;) to separate IP addresses"
|
261 |
msgstr "Gebruik een puntkomma (;) om adressen van elkaar te scheiden"
|
262 |
|
263 |
+
#: libs/blockcountry-settings.php:510
|
264 |
msgid "Frontend blacklist IPv4 and/or IPv6 addresses:"
|
265 |
msgstr ""
|
266 |
"Blacklist van IPv4 of IPv6 IP adressen voor de voorkant van je website:"
|
267 |
|
268 |
+
#: libs/blockcountry-settings.php:539
|
269 |
msgid "Backend Options"
|
270 |
msgstr "Achterkant opties"
|
271 |
|
272 |
+
#: libs/blockcountry-settings.php:573
|
273 |
msgid ""
|
274 |
"Block visitors from visiting the backend (administrator) of your website:"
|
275 |
msgstr ""
|
276 |
"Blokkeer bezoekers van het bezoeken van de achterkant (administratie "
|
277 |
"gedeelte) van je website:"
|
278 |
|
279 |
+
#: libs/blockcountry-settings.php:581
|
280 |
msgid "Your IP address is"
|
281 |
msgstr "Je IP adres is"
|
282 |
|
283 |
+
#: libs/blockcountry-settings.php:581
|
284 |
msgid "The country that is listed for this IP address is"
|
285 |
msgstr "Het land waar dit adres toe behoort is"
|
286 |
|
287 |
+
#: libs/blockcountry-settings.php:582
|
288 |
msgid ""
|
289 |
"Do <strong>NOT</strong> set the 'Block visitors from visiting the backend "
|
290 |
"(administrator) of your website' and also select"
|
292 |
"Selecteer <strong>NIET</strong> \"Blokkeer bezoekers van het bezoeken van de "
|
293 |
"achterkant (administratie gedeelte) van je website\" en"
|
294 |
|
295 |
+
#: libs/blockcountry-settings.php:582
|
296 |
msgid "below."
|
297 |
msgstr "hier beneden."
|
298 |
|
299 |
+
#: libs/blockcountry-settings.php:583
|
300 |
msgid ""
|
301 |
"You will NOT be able to login the next time if you DO block your own country "
|
302 |
"from visiting the backend."
|
304 |
"Het zal daarna niet meer mogelijk zijn om nog in te loggen als je je eigen "
|
305 |
"land blokkeert van het bezoeken van de achterkant van je website."
|
306 |
|
307 |
+
#: libs/blockcountry-settings.php:588
|
308 |
msgid "Select the countries that should be blocked from visiting your backend:"
|
309 |
msgstr ""
|
310 |
"Selecteer de landen welke geblokkeerd moeten worden voor het bezoeken van de "
|
311 |
"achterkant (administratie gedeelte) van je website:"
|
312 |
|
313 |
+
#: libs/blockcountry-settings.php:589
|
314 |
msgid "Use the x behind the country to remove a country from this blocklist."
|
315 |
msgstr ""
|
316 |
"Gebruik de x achter een land om het land te verwijderen uit deze lijst."
|
317 |
|
318 |
+
#: libs/blockcountry-settings.php:606
|
319 |
+
msgid "Backend whitelist IPv4 and/or IPv6 addresses:"
|
320 |
+
msgstr ""
|
321 |
+
"Whitelist van IPv4 of IPv6 IP adressen voor de achterkant van je website:"
|
322 |
+
|
323 |
+
#: libs/blockcountry-settings.php:614
|
324 |
+
msgid "Backend blacklist IPv4 and/or IPv6 addresses:"
|
325 |
+
msgstr ""
|
326 |
+
"Blacklist van IPv4 of IPv6 IP adressen voor de achterkant van je website:"
|
327 |
+
|
328 |
+
#: libs/blockcountry-settings.php:644
|
329 |
msgid "Overall statistics since start"
|
330 |
msgstr "Statistieken sinds het begin"
|
331 |
|
332 |
+
#: libs/blockcountry-settings.php:647
|
333 |
msgid "visitors blocked from the backend."
|
334 |
msgstr "bezoekers geblokkeerd op de achterkant."
|
335 |
|
336 |
+
#: libs/blockcountry-settings.php:649
|
337 |
msgid "visitors blocked from the frontend."
|
338 |
msgstr "bezoekers geblokkeerd op de voorkant."
|
339 |
|
340 |
+
#: libs/blockcountry-settings.php:653
|
341 |
msgid "Basic Options"
|
342 |
msgstr "Standaard opties"
|
343 |
|
344 |
+
#: libs/blockcountry-settings.php:688
|
345 |
msgid "Message to display when people are blocked:"
|
346 |
msgstr "Welk bericht wil je tonen aan bezoekers welke geblokkeerd worden:"
|
347 |
|
348 |
+
#: libs/blockcountry-settings.php:698
|
349 |
+
msgid "Page to redirect to:"
|
350 |
+
msgstr "Naar welke pagina wilt u bezoekers toesturen:"
|
351 |
+
|
352 |
+
#: libs/blockcountry-settings.php:699
|
353 |
+
msgid ""
|
354 |
+
"If you select a page here blocked visitors will be redirected to this page "
|
355 |
+
"instead of displaying above block message."
|
356 |
+
msgstr ""
|
357 |
+
"Indien je hier een pagina selecteert worden geblokkeerde bezoekers "
|
358 |
+
"doorgestuurd naar deze pagina anders wordt bovestaande tekst getoond aan "
|
359 |
+
"bezoekers."
|
360 |
+
|
361 |
+
#: libs/blockcountry-settings.php:705
|
362 |
+
msgid "Choose a page..."
|
363 |
+
msgstr "Kies een pagina..."
|
364 |
+
|
365 |
+
#: libs/blockcountry-settings.php:720
|
366 |
msgid "Send headers when user is blocked:"
|
367 |
msgstr "Stuur headers wanneer een gebruiker is geblokkeerd:"
|
368 |
|
369 |
+
#: libs/blockcountry-settings.php:721
|
370 |
msgid ""
|
371 |
"Under normal circumstances you should keep this selected! Only if you have "
|
372 |
"\"Cannot modify header information - headers already sent\" errors or if you "
|
376 |
"deze alleen indien je \"Cannot modify header information - headers already "
|
377 |
"sent\" foutmeldingen krijgt of indien je weet wat je doet."
|
378 |
|
379 |
+
#: libs/blockcountry-settings.php:727
|
380 |
+
msgid "Number of rows on statistics page:"
|
381 |
+
msgstr "Aantal regels op de statistieken pagina:"
|
382 |
+
|
383 |
+
#: libs/blockcountry-settings.php:728
|
384 |
+
msgid "How many rows do you want to display on each tab the statistics page."
|
385 |
+
msgstr "Hoeveel regels wil je tonen op de statistieken pagina."
|
386 |
+
|
387 |
+
#: libs/blockcountry-settings.php:743
|
388 |
msgid "Allow tracking:"
|
389 |
msgstr "Sta traceren toe:"
|
390 |
|
391 |
+
#: libs/blockcountry-settings.php:744
|
392 |
msgid ""
|
393 |
"This sends only the IP address and the number of attempts this ip address "
|
394 |
"tried to login to your backend and was blocked doing so to a central server. "
|
401 |
"ons om beter inzicht te krijgen in de landen waarvandaan een hoop hack "
|
402 |
"pogingen worden gedaan. "
|
403 |
|
404 |
+
#: libs/blockcountry-settings.php:750
|
405 |
+
msgid "API Key:"
|
406 |
+
msgstr "API Key:"
|
407 |
+
|
408 |
+
#: libs/blockcountry-settings.php:775
|
409 |
+
msgid "Last blocked visits"
|
410 |
+
msgstr "Laatste geblokkeerde bezoekers"
|
411 |
|
412 |
+
#: libs/blockcountry-settings.php:785
|
413 |
msgid "Date / Time"
|
414 |
msgstr "Datum / Tijd"
|
415 |
|
416 |
+
#: libs/blockcountry-settings.php:785 libs/blockcountry-settings.php:817
|
417 |
msgid "IP Address"
|
418 |
msgstr "IP adres"
|
419 |
|
420 |
+
#: libs/blockcountry-settings.php:785 libs/blockcountry-settings.php:817
|
421 |
msgid "Hostname"
|
422 |
msgstr "Hostnaam"
|
423 |
|
424 |
+
#: libs/blockcountry-settings.php:785 libs/blockcountry-settings.php:804
|
425 |
msgid "Country"
|
426 |
msgstr "Land"
|
427 |
|
428 |
+
#: libs/blockcountry-settings.php:785
|
429 |
msgid "Frontend/Backend"
|
430 |
msgstr "Voorkant/Achterkant"
|
431 |
|
432 |
+
#: libs/blockcountry-settings.php:795 libs/blockcountry-settings.php:856
|
433 |
msgid "Frontend"
|
434 |
msgstr "Voorkant"
|
435 |
|
436 |
+
#: libs/blockcountry-settings.php:795
|
437 |
+
msgid "Backend banlist"
|
438 |
+
msgstr "Achterkant banlist"
|
439 |
+
|
440 |
+
#: libs/blockcountry-settings.php:795 libs/blockcountry-settings.php:857
|
441 |
msgid "Backend"
|
442 |
msgstr "Achterkant"
|
443 |
|
444 |
+
#: libs/blockcountry-settings.php:802
|
445 |
msgid "Top countries that are blocked"
|
446 |
msgstr "Top landen welke zijn geblokkeerd"
|
447 |
|
448 |
+
#: libs/blockcountry-settings.php:804 libs/blockcountry-settings.php:817
|
449 |
+
#: libs/blockcountry-settings.php:828
|
450 |
msgid "# of blocked attempts"
|
451 |
msgstr "# of geblokkeerde pogingen"
|
452 |
|
453 |
+
#: libs/blockcountry-settings.php:815
|
454 |
msgid "Top hosts that are blocked"
|
455 |
msgstr "Top hosts welke geblokkeerd zijn"
|
456 |
|
457 |
+
#: libs/blockcountry-settings.php:826
|
458 |
msgid "Top URLs that are blocked"
|
459 |
msgstr "Top URLs welke geblokkeerd zijn"
|
460 |
|
461 |
+
#: libs/blockcountry-settings.php:855
|
462 |
msgid "Home"
|
463 |
msgstr "Home"
|
464 |
|
465 |
+
#: libs/blockcountry-settings.php:858
|
466 |
msgid "Pages"
|
467 |
msgstr "Pagina's"
|
468 |
|
469 |
+
#: libs/blockcountry-settings.php:859
|
470 |
msgid "Categories"
|
471 |
msgstr "Categorieen"
|
472 |
|
473 |
+
#: libs/blockcountry-settings.php:860
|
474 |
#, fuzzy
|
475 |
msgid "Tools"
|
476 |
msgstr "Gereedschap"
|
477 |
|
478 |
+
#: libs/blockcountry-settings.php:861
|
479 |
msgid "Logging"
|
480 |
msgstr "Statistieken"
|
481 |
|
482 |
+
#: libs/blockcountry-settings.php:862
|
483 |
msgid "Import/Export"
|
484 |
msgstr "Importeren/Exporteren"
|
485 |
|
486 |
+
#: libs/blockcountry-settings.php:912
|
487 |
msgid "GeoIP database does not exists. Trying to download it..."
|
488 |
msgstr "GeoIP database bestaat niet. Probeer om nieuwe versie te downloaden"
|
489 |
|
490 |
+
#: iq-block-country.php:157 iq-block-country.php:167
|
491 |
msgid "Error occured: Could not download the GeoIP database from"
|
492 |
msgstr "Uh oh: Kon de GeoIP database niet downloaden van"
|
493 |
|
494 |
+
#: iq-block-country.php:158
|
495 |
msgid ""
|
496 |
"MaxMind has blocked requests from your IP address for 24 hours. Please check "
|
497 |
"again in 24 hours or download this file from your own PC"
|
499 |
"MaxMind heeft alle verzoeken vanaf dit IP adres voor 24 uur geblokkeerd. "
|
500 |
"Controleer nogmaals na 24 uur of download dit bestand via je eigen pc"
|
501 |
|
502 |
+
#: iq-block-country.php:159
|
503 |
msgid "Unzip this file and upload it (via FTP for instance) to:"
|
504 |
msgstr "Pak dit bestand uit en upload deze (via FTP bijvoorbeeld) naar:"
|
505 |
|
506 |
+
#: iq-block-country.php:168
|
507 |
msgid ""
|
508 |
"Please download this file from your own PC unzip this file and upload it "
|
509 |
"(via FTP for instance) to:"
|
511 |
"Download dit bestand alsjeblieft naar je eigen PC. Pak het bestand daar uit "
|
512 |
"en upload deze (bijvoorbeeld via FTP) naar:"
|
513 |
|
514 |
+
#: iq-block-country.php:194
|
515 |
msgid "Finished downloading"
|
516 |
msgstr "Klaar met downloaden"
|
517 |
|
518 |
+
#: iq-block-country.php:200
|
519 |
msgid "Fatal error: GeoIP"
|
520 |
msgstr "Fatale fout: GeoIP"
|
521 |
|
522 |
+
#: iq-block-country.php:200
|
523 |
msgid ""
|
524 |
"database does not exists. This plugin will not work until the database file "
|
525 |
"is present."
|
libs/blockcountry-checks.php
CHANGED
@@ -48,18 +48,33 @@ function iqblockcountry_check($country,$badcountries,$ip_address)
|
|
48 |
$blocked = FALSE;
|
49 |
$blockedpage = get_option('blockcountry_blockpages');
|
50 |
$blockedcategory = get_option('blockcountry_blockcategories');
|
51 |
-
|
52 |
-
$frontendblacklist = get_option ( 'blockcountry_frontendblacklist' );
|
53 |
-
$frontendwhitelistip = array();
|
54 |
-
$
|
|
|
|
|
|
|
|
|
|
|
|
|
55 |
if (preg_match('/;/',$frontendblacklist))
|
56 |
{
|
57 |
$frontendblacklistip = explode(";", $frontendblacklist);
|
|
|
58 |
}
|
59 |
if (preg_match('/;/',$frontendwhitelist))
|
60 |
{
|
61 |
$frontendwhitelistip = explode(";", $frontendwhitelist);
|
62 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
63 |
|
64 |
/* Block if user is in a bad country from frontend or backend. Unblock may happen later */
|
65 |
if (is_array ( $badcountries ) && in_array ( $country, $badcountries )) {
|
@@ -69,13 +84,31 @@ function iqblockcountry_check($country,$badcountries,$ip_address)
|
|
69 |
/* Check if requested url is not login page. Else check against frontend whitelist/blacklist. */
|
70 |
if (!iqblockcountry_is_login_page() )
|
71 |
{
|
|
|
|
|
|
|
72 |
if (is_array ( $frontendwhitelistip ) && in_array ( $ip_address, $frontendwhitelistip)) {
|
73 |
$blocked = FALSE;
|
74 |
}
|
75 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
76 |
$blocked = TRUE;
|
77 |
}
|
|
|
|
|
|
|
78 |
}
|
|
|
79 |
if (is_page() && $blockedpage == "on")
|
80 |
{
|
81 |
$blockedpages = get_option('blockcountry_pages');
|
@@ -118,6 +151,10 @@ function iqblockcountry_check($country,$badcountries,$ip_address)
|
|
118 |
{
|
119 |
$blocked = FALSE;
|
120 |
}
|
|
|
|
|
|
|
|
|
121 |
return $blocked;
|
122 |
}
|
123 |
|
@@ -156,6 +193,7 @@ function iqblockcountry_CheckCountry() {
|
|
156 |
if (iqblockcountry_check($country,$badcountries,$ip_address))
|
157 |
{
|
158 |
$blockmessage = get_option ( 'blockcountry_blockmessage' );
|
|
|
159 |
$header = get_option('blockcountry_header');
|
160 |
if (!empty($header) && ($header))
|
161 |
{
|
@@ -167,16 +205,29 @@ function iqblockcountry_CheckCountry() {
|
|
167 |
|
168 |
header ( 'HTTP/1.1 403 Forbidden' );
|
169 |
}
|
|
|
|
|
|
|
|
|
|
|
170 |
// Display block message
|
171 |
-
|
172 |
-
|
173 |
if ((iqblockcountry_is_login_page() || is_admin()) && get_option('blockcountry_blockbackend'))
|
174 |
{
|
175 |
$blocked = get_option('blockcountry_backendnrblocks');
|
176 |
if (empty($blocked)) { $blocked = 0; }
|
177 |
$blocked++;
|
178 |
update_option('blockcountry_backendnrblocks', $blocked);
|
179 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
180 |
}
|
181 |
else
|
182 |
{
|
@@ -199,7 +250,9 @@ function iqblockcountry_CheckCountry() {
|
|
199 |
* Check if page is the login page
|
200 |
*/
|
201 |
function iqblockcountry_is_login_page() {
|
202 |
-
return !strncmp($_SERVER['REQUEST_URI'], '/wp-login.php', strlen('/wp-login.php'));
|
|
|
|
|
203 |
}
|
204 |
|
205 |
/*
|
48 |
$blocked = FALSE;
|
49 |
$blockedpage = get_option('blockcountry_blockpages');
|
50 |
$blockedcategory = get_option('blockcountry_blockcategories');
|
51 |
+
|
52 |
+
$frontendblacklistip = array(); $frontendblacklist = get_option ( 'blockcountry_frontendblacklist' );
|
53 |
+
$frontendwhitelistip = array(); $frontendwhitelist = get_option ( 'blockcountry_frontendwhitelist' );
|
54 |
+
$backendblacklistip = array(); $backendblacklist = get_option ( 'blockcountry_frontendblacklist' );
|
55 |
+
$backendwhitelistip = array(); $backendwhitelist = get_option ( 'blockcountry_frontendwhitelist' );
|
56 |
+
|
57 |
+
$backendbanlistip = unserialize(get_option('blockcountry_backendbanlistip'));
|
58 |
+
$blockredirect = get_option ( 'blockcountry_redirect');
|
59 |
+
|
60 |
+
|
61 |
if (preg_match('/;/',$frontendblacklist))
|
62 |
{
|
63 |
$frontendblacklistip = explode(";", $frontendblacklist);
|
64 |
+
$apiblacklist = TRUE;
|
65 |
}
|
66 |
if (preg_match('/;/',$frontendwhitelist))
|
67 |
{
|
68 |
$frontendwhitelistip = explode(";", $frontendwhitelist);
|
69 |
}
|
70 |
+
if (preg_match('/;/',$backendblacklist))
|
71 |
+
{
|
72 |
+
$backendblacklistip = explode(";", $backendblacklist);
|
73 |
+
}
|
74 |
+
if (preg_match('/;/',$backendwhitelist))
|
75 |
+
{
|
76 |
+
$backendwhitelistip = explode(";", $backendwhitelist);
|
77 |
+
}
|
78 |
|
79 |
/* Block if user is in a bad country from frontend or backend. Unblock may happen later */
|
80 |
if (is_array ( $badcountries ) && in_array ( $country, $badcountries )) {
|
84 |
/* Check if requested url is not login page. Else check against frontend whitelist/blacklist. */
|
85 |
if (!iqblockcountry_is_login_page() )
|
86 |
{
|
87 |
+
if (is_array ( $frontendblacklistip ) && in_array ( $ip_address, $frontendblacklistip)) {
|
88 |
+
$blocked = TRUE;
|
89 |
+
}
|
90 |
if (is_array ( $frontendwhitelistip ) && in_array ( $ip_address, $frontendwhitelistip)) {
|
91 |
$blocked = FALSE;
|
92 |
}
|
93 |
+
}
|
94 |
+
|
95 |
+
|
96 |
+
if (iqblockcountry_is_login_page() )
|
97 |
+
{
|
98 |
+
if (is_array($backendbanlistip) && in_array($ip_address,$backendbanlistip))
|
99 |
+
{
|
100 |
+
$blocked = TRUE;
|
101 |
+
global $apiblacklist;
|
102 |
+
$apiblacklist = TRUE;
|
103 |
+
}
|
104 |
+
if (is_array ( $backendblacklistip ) && in_array ( $ip_address, $backendblacklistip)) {
|
105 |
$blocked = TRUE;
|
106 |
}
|
107 |
+
if (is_array ( $backendwhitelistip ) && in_array ( $ip_address, $backendwhitelistip)) {
|
108 |
+
$blocked = FALSE;
|
109 |
+
}
|
110 |
}
|
111 |
+
|
112 |
if (is_page() && $blockedpage == "on")
|
113 |
{
|
114 |
$blockedpages = get_option('blockcountry_pages');
|
151 |
{
|
152 |
$blocked = FALSE;
|
153 |
}
|
154 |
+
if (is_page($blockredirect) && ($blockredirect != 0) && !(empty($blockredirect)))
|
155 |
+
{
|
156 |
+
$blocked = FALSE;
|
157 |
+
}
|
158 |
return $blocked;
|
159 |
}
|
160 |
|
193 |
if (iqblockcountry_check($country,$badcountries,$ip_address))
|
194 |
{
|
195 |
$blockmessage = get_option ( 'blockcountry_blockmessage' );
|
196 |
+
$blockredirect = get_option ( 'blockcountry_redirect');
|
197 |
$header = get_option('blockcountry_header');
|
198 |
if (!empty($header) && ($header))
|
199 |
{
|
205 |
|
206 |
header ( 'HTTP/1.1 403 Forbidden' );
|
207 |
}
|
208 |
+
if (!empty($blockredirect) && $blockredirect != 0)
|
209 |
+
{
|
210 |
+
$redirecturl = get_permalink($blockredirect);
|
211 |
+
header("Location: $redirecturl");
|
212 |
+
}
|
213 |
// Display block message
|
214 |
+
print "$blockmessage";
|
215 |
+
|
216 |
if ((iqblockcountry_is_login_page() || is_admin()) && get_option('blockcountry_blockbackend'))
|
217 |
{
|
218 |
$blocked = get_option('blockcountry_backendnrblocks');
|
219 |
if (empty($blocked)) { $blocked = 0; }
|
220 |
$blocked++;
|
221 |
update_option('blockcountry_backendnrblocks', $blocked);
|
222 |
+
global $apiblacklist;
|
223 |
+
if (!$apiblacklist)
|
224 |
+
{
|
225 |
+
iqblockcountry_logging($ip_address, $country, "B");
|
226 |
+
}
|
227 |
+
else
|
228 |
+
{
|
229 |
+
iqblockcountry_logging($ip_address, $country, "A");
|
230 |
+
}
|
231 |
}
|
232 |
else
|
233 |
{
|
250 |
* Check if page is the login page
|
251 |
*/
|
252 |
function iqblockcountry_is_login_page() {
|
253 |
+
// return !strncmp($_SERVER['REQUEST_URI'], '/wp-login.php', strlen('/wp-login.php'));
|
254 |
+
if ( in_array( $GLOBALS['pagenow'], array( 'wp-login.php', 'wp-register.php' ) ) )
|
255 |
+
{ return TRUE; } else { return FALSE; }
|
256 |
}
|
257 |
|
258 |
/*
|
libs/blockcountry-logging.php
CHANGED
@@ -11,7 +11,7 @@ function iqblockcountry_install_db() {
|
|
11 |
ipaddress tinytext NOT NULL,
|
12 |
country tinytext NOT NULL,
|
13 |
url varchar(250) DEFAULT '/' NOT NULL,
|
14 |
-
banned enum('F','B') NOT NULL,
|
15 |
UNIQUE KEY id (id)
|
16 |
);";
|
17 |
|
@@ -36,7 +36,7 @@ function iqblockcountry_clean_db()
|
|
36 |
global $wpdb;
|
37 |
|
38 |
$table_name = $wpdb->prefix . "iqblock_logging";
|
39 |
-
$sql = "DELETE FROM " . $table_name . " WHERE DATE_SUB(CURDATE(),INTERVAL
|
40 |
$wpdb->query($sql);
|
41 |
|
42 |
}
|
11 |
ipaddress tinytext NOT NULL,
|
12 |
country tinytext NOT NULL,
|
13 |
url varchar(250) DEFAULT '/' NOT NULL,
|
14 |
+
banned enum('F','B','A') NOT NULL,
|
15 |
UNIQUE KEY id (id)
|
16 |
);";
|
17 |
|
36 |
global $wpdb;
|
37 |
|
38 |
$table_name = $wpdb->prefix . "iqblock_logging";
|
39 |
+
$sql = "DELETE FROM " . $table_name . " WHERE DATE_SUB(CURDATE(),INTERVAL 31 DAY) >= datetime;";
|
40 |
$wpdb->query($sql);
|
41 |
|
42 |
}
|
libs/blockcountry-settings.php
CHANGED
@@ -18,8 +18,12 @@ function iqblockcountry_register_mysettings()
|
|
18 |
{
|
19 |
//register our settings
|
20 |
register_setting ( 'iqblockcountry-settings-group', 'blockcountry_blockmessage' );
|
|
|
21 |
register_setting ( 'iqblockcountry-settings-group', 'blockcountry_header');
|
22 |
register_setting ( 'iqblockcountry-settings-group', 'blockcountry_tracking');
|
|
|
|
|
|
|
23 |
register_setting ( 'iqblockcountry-settings-group-backend', 'blockcountry_blockbackend' );
|
24 |
register_setting ( 'iqblockcountry-settings-group-backend', 'blockcountry_backendbanlist' );
|
25 |
register_setting ( 'iqblockcountry-settings-group-backend', 'blockcountry_backendblacklist','iqblockcountry_validate_ip');
|
@@ -45,7 +49,7 @@ function iqblockcountry_get_options_arr() {
|
|
45 |
$optarr = array( 'blockcountry_banlist', 'blockcountry_backendbanlist','blockcountry_backendblacklist','blockcountry_backendwhitelist',
|
46 |
'blockcountry_frontendblacklist','blockcountry_frontendwhitelist','blockcountry_blockmessage','blockcountry_blocklogin','blockcountry_blockfrontend',
|
47 |
'blockcountry_blockbackend','blockcountry_header','blockcountry_blockpages','blockcountry_pages','blockcountry_blockcategories','blockcountry_categories',
|
48 |
-
'blockcountry_tracking','blockcountry_blockhome');
|
49 |
return apply_filters( 'iqblockcountry_options', $optarr );
|
50 |
}
|
51 |
|
@@ -61,7 +65,7 @@ function iqblockcountry_set_defaults()
|
|
61 |
update_option('blockcountry_backendnrblocks', 0);
|
62 |
update_option('blockcountry_frontendnrblocks', 0);
|
63 |
update_option('blockcountry_header', 'on');
|
64 |
-
|
65 |
$countrylist = iqblockcountry_get_countries();
|
66 |
$ip_address = iqblockcountry_get_ipaddress();
|
67 |
$usercountry = iqblockcountry_check_ipaddress($ip_address);
|
@@ -104,6 +108,10 @@ function iqblockcountry_uninstall() //deletes all the database entries that the
|
|
104 |
delete_option('blockcountry_lasttrack');
|
105 |
delete_option('blockcountry_tracking');
|
106 |
delete_option('blockcountry_blockhome');
|
|
|
|
|
|
|
|
|
107 |
}
|
108 |
|
109 |
|
@@ -594,6 +602,22 @@ function iqblockcountry_settings_backend()
|
|
594 |
?>
|
595 |
</select>
|
596 |
</td></tr>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
597 |
<tr><td></td><td>
|
598 |
<p class="submit"><input type="submit" class="button-primary"
|
599 |
value="<?php _e ( 'Save Changes' )?>" /></p>
|
@@ -670,20 +694,64 @@ function iqblockcountry_settings_home()
|
|
670 |
<textarea cols="100" rows="3" name="blockcountry_blockmessage"><?php echo $blockmessage; ?></textarea>
|
671 |
</td></tr>
|
672 |
|
673 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
674 |
<th width="30%"><?php _e('Send headers when user is blocked:', 'iqblockcountry'); ?><br />
|
675 |
<em><?php _e('Under normal circumstances you should keep this selected! Only if you have "Cannot modify header information - headers already sent" errors or if you know what you are doing uncheck this.', 'iqblockcountry'); ?></em></th>
|
676 |
<td width="70%">
|
677 |
<input type="checkbox" name="blockcountry_header" <?php checked('on', get_option('blockcountry_header'), true); ?> />
|
678 |
</td></tr>
|
679 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
680 |
<tr valign="top">
|
681 |
<th width="30%"><?php _e('Allow tracking:', 'iqblockcountry'); ?><br />
|
682 |
<em><?php _e('This sends only the IP address and the number of attempts this ip address tried to login to your backend and was blocked doing so to a central server. No other data is being send. This helps us to get a better picture of rogue countries.', 'iqblockcountry'); ?></em></th>
|
683 |
<td width="70%">
|
684 |
<input type="checkbox" name="blockcountry_tracking" <?php checked('on', get_option('blockcountry_tracking'), true); ?> />
|
685 |
</td></tr>
|
686 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
687 |
<tr><td></td><td>
|
688 |
<p class="submit"><input type="submit" class="button-primary"
|
689 |
value="<?php _e ( 'Save Changes' )?>" /></p>
|
@@ -704,17 +772,19 @@ function iqblockcountry_settings_home()
|
|
704 |
function iqblockcountry_settings_logging()
|
705 |
{
|
706 |
?>
|
707 |
-
<h3><?php _e('Last
|
708 |
<?php
|
709 |
global $wpdb;
|
710 |
|
711 |
$table_name = $wpdb->prefix . "iqblock_logging";
|
712 |
$format = get_option('date_format') . ' ' . get_option('time_format');
|
|
|
|
|
713 |
$countrylist = iqblockcountry_get_countries();
|
714 |
echo '<table class="widefat">';
|
715 |
echo '<thead><tr><th>' . __('Date / Time', 'iqblockcountry') . '</th><th>' . __('IP Address', 'iqblockcountry') . '</th><th>' . __('Hostname', 'iqblockcountry') . '</th><th>' . __('URL', 'iqblockcountry') . '</th><th>' . __('Country', 'iqblockcountry') . '</th><th>' . __('Frontend/Backend', 'iqblockcountry') . '</th></tr></thead>';
|
716 |
|
717 |
-
foreach ($wpdb->get_results( "SELECT * FROM $table_name ORDER BY datetime DESC LIMIT
|
718 |
{
|
719 |
$countryimage = "icons/" . strtolower($row->country) . ".png";
|
720 |
$countryurl = '<img src="' . plugins_url( $countryimage , dirname(__FILE__) ) . '" > ';
|
@@ -722,7 +792,7 @@ function iqblockcountry_settings_logging()
|
|
722 |
$datetime = strtotime($row->datetime);
|
723 |
$mysqldate = date($format, $datetime);
|
724 |
echo $mysqldate . '</td><td>' . $row->ipaddress . '</td><td>' . gethostbyaddr( $row->ipaddress ) . '</td><td>' . $row->url . '</td><td>' . $countryurl . $countrylist[$row->country] . '<td>';
|
725 |
-
if ($row->banned == "F") _e('Frontend', 'iqblockcountry'); else { _e('Backend', 'iqblockcountry'); }
|
726 |
echo "</td></tr></tbody>";
|
727 |
}
|
728 |
echo '</table>';
|
@@ -733,7 +803,7 @@ function iqblockcountry_settings_logging()
|
|
733 |
echo '<table class="widefat">';
|
734 |
echo '<thead><tr><th>' . __('Country', 'iqblockcountry') . '</th><th>' . __('# of blocked attempts', 'iqblockcountry') . '</th></tr></thead>';
|
735 |
|
736 |
-
foreach ($wpdb->get_results( "SELECT count(country) AS count,country FROM $table_name GROUP BY country ORDER BY count(country) DESC LIMIT
|
737 |
{
|
738 |
$countryimage = "icons/" . strtolower($row->country) . ".png";
|
739 |
$countryurl = '<img src="' . plugins_url( $countryimage , dirname(__FILE__) ) . '" > ';
|
@@ -746,7 +816,7 @@ function iqblockcountry_settings_logging()
|
|
746 |
echo '<table class="widefat">';
|
747 |
echo '<thead><tr><th>' . __('IP Address', 'iqblockcountry') . '</th><th>' . __('Hostname', 'iqblockcountry') . '</th><th>' . __('# of blocked attempts', 'iqblockcountry') . '</th></tr></thead>';
|
748 |
|
749 |
-
foreach ($wpdb->get_results( "SELECT count(ipaddress) AS count,ipaddress FROM $table_name GROUP BY ipaddress ORDER BY count(ipaddress) DESC LIMIT
|
750 |
{
|
751 |
echo "<tbody><tr><td>" . $row->ipaddress . "</td><td>" . gethostbyaddr($row->ipaddress) . "</td><td>" . $row->count . "</td></tr></tbody>";
|
752 |
}
|
@@ -757,7 +827,7 @@ function iqblockcountry_settings_logging()
|
|
757 |
echo '<table class="widefat">';
|
758 |
echo '<thead><tr><th>' . __('URL', 'iqblockcountry') . '</th><th>' . __('# of blocked attempts', 'iqblockcountry') . '</th></tr></thead>';
|
759 |
|
760 |
-
foreach ($wpdb->get_results( "SELECT count(url) AS count,url FROM $table_name GROUP BY url ORDER BY count(url) DESC LIMIT
|
761 |
{
|
762 |
echo "<tbody><tr><td>" . $row->url . "</td><td>" . $row->count . "</td></tr></tbody>";
|
763 |
}
|
18 |
{
|
19 |
//register our settings
|
20 |
register_setting ( 'iqblockcountry-settings-group', 'blockcountry_blockmessage' );
|
21 |
+
register_setting ( 'iqblockcountry-settings-group', 'blockcountry_redirect');
|
22 |
register_setting ( 'iqblockcountry-settings-group', 'blockcountry_header');
|
23 |
register_setting ( 'iqblockcountry-settings-group', 'blockcountry_tracking');
|
24 |
+
register_setting ( 'iqblockcountry-settings-group', 'blockcountry_nrstatistics');
|
25 |
+
register_setting ( 'iqblockcountry-settings-group', 'blockcountry_nrstatistics');
|
26 |
+
register_setting ( 'iqblockcountry-settings-group', 'blockcountry_apikey');
|
27 |
register_setting ( 'iqblockcountry-settings-group-backend', 'blockcountry_blockbackend' );
|
28 |
register_setting ( 'iqblockcountry-settings-group-backend', 'blockcountry_backendbanlist' );
|
29 |
register_setting ( 'iqblockcountry-settings-group-backend', 'blockcountry_backendblacklist','iqblockcountry_validate_ip');
|
49 |
$optarr = array( 'blockcountry_banlist', 'blockcountry_backendbanlist','blockcountry_backendblacklist','blockcountry_backendwhitelist',
|
50 |
'blockcountry_frontendblacklist','blockcountry_frontendwhitelist','blockcountry_blockmessage','blockcountry_blocklogin','blockcountry_blockfrontend',
|
51 |
'blockcountry_blockbackend','blockcountry_header','blockcountry_blockpages','blockcountry_pages','blockcountry_blockcategories','blockcountry_categories',
|
52 |
+
'blockcountry_tracking','blockcountry_blockhome','blockcountry_nrstatistics','blockcountry_apikey','blockcountry_redirect');
|
53 |
return apply_filters( 'iqblockcountry_options', $optarr );
|
54 |
}
|
55 |
|
65 |
update_option('blockcountry_backendnrblocks', 0);
|
66 |
update_option('blockcountry_frontendnrblocks', 0);
|
67 |
update_option('blockcountry_header', 'on');
|
68 |
+
update_option('blockcountry_nrstatistics',15);
|
69 |
$countrylist = iqblockcountry_get_countries();
|
70 |
$ip_address = iqblockcountry_get_ipaddress();
|
71 |
$usercountry = iqblockcountry_check_ipaddress($ip_address);
|
108 |
delete_option('blockcountry_lasttrack');
|
109 |
delete_option('blockcountry_tracking');
|
110 |
delete_option('blockcountry_blockhome');
|
111 |
+
delete_option('blockcountry_backendbanlistip');
|
112 |
+
delete_option('blockcountry_nrstastistics');
|
113 |
+
delete_option('blockcountry_apikey');
|
114 |
+
delete_option('blockcountry_redirect');
|
115 |
}
|
116 |
|
117 |
|
602 |
?>
|
603 |
</select>
|
604 |
</td></tr>
|
605 |
+
<tr valign="top">
|
606 |
+
<th width="30%"><?php _e('Backend whitelist IPv4 and/or IPv6 addresses:', 'iqblockcountry'); ?><br /><?php _e('Use a semicolon (;) to separate IP addresses', 'iqblockcountry'); ?></th>
|
607 |
+
<td width="70%">
|
608 |
+
<?php
|
609 |
+
$backendwhitelist = get_option ( 'blockcountry_backendwhitelist' );
|
610 |
+
?>
|
611 |
+
<textarea cols="70" rows="5" name="blockcountry_backendwhitelist"><?php echo $backendwhitelist; ?></textarea>
|
612 |
+
</td></tr>
|
613 |
+
<tr valign="top">
|
614 |
+
<th width="30%"><?php _e('Backend blacklist IPv4 and/or IPv6 addresses:', 'iqblockcountry'); ?><br /><?php _e('Use a semicolon (;) to separate IP addresses', 'iqblockcountry'); ?></th>
|
615 |
+
<td width="70%">
|
616 |
+
<?php
|
617 |
+
$backendblacklist = get_option ( 'blockcountry_backendblacklist' );
|
618 |
+
?>
|
619 |
+
<textarea cols="70" rows="5" name="blockcountry_backendblacklist"><?php echo $backendblacklist; ?></textarea>
|
620 |
+
</td></tr>
|
621 |
<tr><td></td><td>
|
622 |
<p class="submit"><input type="submit" class="button-primary"
|
623 |
value="<?php _e ( 'Save Changes' )?>" /></p>
|
694 |
<textarea cols="100" rows="3" name="blockcountry_blockmessage"><?php echo $blockmessage; ?></textarea>
|
695 |
</td></tr>
|
696 |
|
697 |
+
<tr valign="top">
|
698 |
+
<th width="30%"><?php _e('Page to redirect to:', 'iqblockcountry'); ?><br />
|
699 |
+
<em><?php _e('If you select a page here blocked visitors will be redirected to this page instead of displaying above block message.', 'iqblockcountry'); ?></em></th>
|
700 |
+
</th>
|
701 |
+
<td width="70%">
|
702 |
+
<select class="chosen" name="blockcountry_redirect" style="width:400px;">
|
703 |
+
<?php
|
704 |
+
$haystack = get_option ( 'blockcountry_redirect' );
|
705 |
+
echo "<option value=\"0\">". __("Choose a page...", 'iqblockcountry') . "</option>";
|
706 |
+
$pages = get_pages();
|
707 |
+
foreach ( $pages as $page ) {
|
708 |
+
print "<option value=\"$page->ID\"";
|
709 |
+
if ($page->ID == $haystack) {
|
710 |
+
|
711 |
+
print " selected=\"selected\" ";
|
712 |
+
}
|
713 |
+
print ">$page->post_title</option>\n";
|
714 |
+
}
|
715 |
+
?>
|
716 |
+
</select>
|
717 |
+
</td></tr>
|
718 |
+
|
719 |
+
<tr valign="top">
|
720 |
<th width="30%"><?php _e('Send headers when user is blocked:', 'iqblockcountry'); ?><br />
|
721 |
<em><?php _e('Under normal circumstances you should keep this selected! Only if you have "Cannot modify header information - headers already sent" errors or if you know what you are doing uncheck this.', 'iqblockcountry'); ?></em></th>
|
722 |
<td width="70%">
|
723 |
<input type="checkbox" name="blockcountry_header" <?php checked('on', get_option('blockcountry_header'), true); ?> />
|
724 |
</td></tr>
|
725 |
|
726 |
+
<tr valign="top">
|
727 |
+
<th width="30%"><?php _e('Number of rows on statistics page:', 'iqblockcountry'); ?><br />
|
728 |
+
<em><?php _e('How many rows do you want to display on each tab the statistics page.', 'iqblockcountry'); ?></em></th>
|
729 |
+
<td width="70%">
|
730 |
+
<?php
|
731 |
+
$nrrows = get_option('blockcountry_nrstatistics'); ?>
|
732 |
+
<select name="blockcountry_nrstatistics">
|
733 |
+
<option <?php selected( $nrrows, 10 ); ?> value="10">10</option>
|
734 |
+
<option <?php selected( $nrrows, 15 ); ?> value="15">15</option>
|
735 |
+
<option <?php selected( $nrrows, 20 ); ?> value="20">20</option>
|
736 |
+
<option <?php selected( $nrrows, 25 ); ?> value="25">25</option>
|
737 |
+
<option <?php selected( $nrrows, 30 ); ?> value="30">30</option>
|
738 |
+
<option <?php selected( $nrrows, 45 ); ?> value="45">45</option>
|
739 |
+
</select>
|
740 |
+
</td></tr>
|
741 |
+
|
742 |
<tr valign="top">
|
743 |
<th width="30%"><?php _e('Allow tracking:', 'iqblockcountry'); ?><br />
|
744 |
<em><?php _e('This sends only the IP address and the number of attempts this ip address tried to login to your backend and was blocked doing so to a central server. No other data is being send. This helps us to get a better picture of rogue countries.', 'iqblockcountry'); ?></em></th>
|
745 |
<td width="70%">
|
746 |
<input type="checkbox" name="blockcountry_tracking" <?php checked('on', get_option('blockcountry_tracking'), true); ?> />
|
747 |
</td></tr>
|
748 |
+
<!--
|
749 |
+
<tr valign="top">
|
750 |
+
<th width="30%"><?php _e('API Key:', 'iqblockcountry'); ?></th>
|
751 |
+
<td width="70%">
|
752 |
+
<input type="text" size="25" name="blockcountry_apikey" value="<?php echo get_option ( 'blockcountry_apikey' );?>">
|
753 |
+
</td></tr>
|
754 |
+
-->
|
755 |
<tr><td></td><td>
|
756 |
<p class="submit"><input type="submit" class="button-primary"
|
757 |
value="<?php _e ( 'Save Changes' )?>" /></p>
|
772 |
function iqblockcountry_settings_logging()
|
773 |
{
|
774 |
?>
|
775 |
+
<h3><?php _e('Last blocked visits', 'iqblockcountry'); ?></h3>
|
776 |
<?php
|
777 |
global $wpdb;
|
778 |
|
779 |
$table_name = $wpdb->prefix . "iqblock_logging";
|
780 |
$format = get_option('date_format') . ' ' . get_option('time_format');
|
781 |
+
$nrrows = get_option('blockcountry_nrstatistics');
|
782 |
+
if ($nrrows == "") { $nrrows = 15;};
|
783 |
$countrylist = iqblockcountry_get_countries();
|
784 |
echo '<table class="widefat">';
|
785 |
echo '<thead><tr><th>' . __('Date / Time', 'iqblockcountry') . '</th><th>' . __('IP Address', 'iqblockcountry') . '</th><th>' . __('Hostname', 'iqblockcountry') . '</th><th>' . __('URL', 'iqblockcountry') . '</th><th>' . __('Country', 'iqblockcountry') . '</th><th>' . __('Frontend/Backend', 'iqblockcountry') . '</th></tr></thead>';
|
786 |
|
787 |
+
foreach ($wpdb->get_results( "SELECT * FROM $table_name ORDER BY datetime DESC LIMIT $nrrows" ) as $row)
|
788 |
{
|
789 |
$countryimage = "icons/" . strtolower($row->country) . ".png";
|
790 |
$countryurl = '<img src="' . plugins_url( $countryimage , dirname(__FILE__) ) . '" > ';
|
792 |
$datetime = strtotime($row->datetime);
|
793 |
$mysqldate = date($format, $datetime);
|
794 |
echo $mysqldate . '</td><td>' . $row->ipaddress . '</td><td>' . gethostbyaddr( $row->ipaddress ) . '</td><td>' . $row->url . '</td><td>' . $countryurl . $countrylist[$row->country] . '<td>';
|
795 |
+
if ($row->banned == "F") _e('Frontend', 'iqblockcountry'); elseif ($row->banned == "A") { _e('Backend banlist','iqblockcountry'); } else { _e('Backend', 'iqblockcountry'); }
|
796 |
echo "</td></tr></tbody>";
|
797 |
}
|
798 |
echo '</table>';
|
803 |
echo '<table class="widefat">';
|
804 |
echo '<thead><tr><th>' . __('Country', 'iqblockcountry') . '</th><th>' . __('# of blocked attempts', 'iqblockcountry') . '</th></tr></thead>';
|
805 |
|
806 |
+
foreach ($wpdb->get_results( "SELECT count(country) AS count,country FROM $table_name GROUP BY country ORDER BY count(country) DESC LIMIT $nrrows" ) as $row)
|
807 |
{
|
808 |
$countryimage = "icons/" . strtolower($row->country) . ".png";
|
809 |
$countryurl = '<img src="' . plugins_url( $countryimage , dirname(__FILE__) ) . '" > ';
|
816 |
echo '<table class="widefat">';
|
817 |
echo '<thead><tr><th>' . __('IP Address', 'iqblockcountry') . '</th><th>' . __('Hostname', 'iqblockcountry') . '</th><th>' . __('# of blocked attempts', 'iqblockcountry') . '</th></tr></thead>';
|
818 |
|
819 |
+
foreach ($wpdb->get_results( "SELECT count(ipaddress) AS count,ipaddress FROM $table_name GROUP BY ipaddress ORDER BY count(ipaddress) DESC LIMIT $nrrows" ) as $row)
|
820 |
{
|
821 |
echo "<tbody><tr><td>" . $row->ipaddress . "</td><td>" . gethostbyaddr($row->ipaddress) . "</td><td>" . $row->count . "</td></tr></tbody>";
|
822 |
}
|
827 |
echo '<table class="widefat">';
|
828 |
echo '<thead><tr><th>' . __('URL', 'iqblockcountry') . '</th><th>' . __('# of blocked attempts', 'iqblockcountry') . '</th></tr></thead>';
|
829 |
|
830 |
+
foreach ($wpdb->get_results( "SELECT count(url) AS count,url FROM $table_name GROUP BY url ORDER BY count(url) DESC LIMIT $nrrows" ) as $row)
|
831 |
{
|
832 |
echo "<tbody><tr><td>" . $row->url . "</td><td>" . $row->count . "</td></tr></tbody>";
|
833 |
}
|
libs/geoip.inc
CHANGED
@@ -243,6 +243,7 @@ class GeoIP
|
|
243 |
);
|
244 |
}
|
245 |
|
|
|
246 |
function geoip_load_shared_mem ($file)
|
247 |
{
|
248 |
$fp = fopen($file, "rb");
|
@@ -260,7 +261,9 @@ function geoip_load_shared_mem ($file)
|
|
260 |
shmop_write($shmid, fread($fp, $size), 0);
|
261 |
shmop_close($shmid);
|
262 |
}
|
|
|
263 |
|
|
|
264 |
function _setup_segments($gi)
|
265 |
{
|
266 |
$gi->databaseType = GEOIP_COUNTRY_EDITION;
|
@@ -387,6 +390,7 @@ function _setup_segments($gi)
|
|
387 |
}
|
388 |
return $gi;
|
389 |
}
|
|
|
390 |
|
391 |
if ( !function_exists ('geoip_open')) {
|
392 |
function geoip_open($filename, $flags)
|
@@ -419,6 +423,7 @@ function geoip_close($gi)
|
|
419 |
}
|
420 |
}
|
421 |
|
|
|
422 |
function geoip_country_id_by_name_v6($gi, $name)
|
423 |
{
|
424 |
$rec = dns_get_record($name, DNS_AAAA);
|
@@ -431,7 +436,9 @@ function geoip_country_id_by_name_v6($gi, $name)
|
|
431 |
}
|
432 |
return geoip_country_id_by_addr_v6($gi, $addr);
|
433 |
}
|
|
|
434 |
|
|
|
435 |
function geoip_country_id_by_name($gi, $name)
|
436 |
{
|
437 |
$addr = gethostbyname($name);
|
@@ -440,6 +447,7 @@ function geoip_country_id_by_name($gi, $name)
|
|
440 |
}
|
441 |
return geoip_country_id_by_addr($gi, $addr);
|
442 |
}
|
|
|
443 |
|
444 |
if ( !function_exists ('geoip_country_code_by_name_v6')) {
|
445 |
function geoip_country_code_by_name_v6($gi, $name)
|
@@ -451,6 +459,7 @@ function geoip_country_code_by_name_v6($gi, $name)
|
|
451 |
return false;
|
452 |
}
|
453 |
}
|
|
|
454 |
if ( !function_exists ('geoip_country_code_by_name')) {
|
455 |
function geoip_country_code_by_name($gi, $name)
|
456 |
{
|
@@ -500,6 +509,7 @@ function geoip_country_id_by_addr($gi, $addr)
|
|
500 |
}
|
501 |
}
|
502 |
|
|
|
503 |
function geoip_country_code_by_addr_v6($gi, $addr)
|
504 |
{
|
505 |
$country_id = geoip_country_id_by_addr_v6($gi, $addr);
|
@@ -508,7 +518,9 @@ function geoip_country_code_by_addr_v6($gi, $addr)
|
|
508 |
}
|
509 |
return false;
|
510 |
}
|
|
|
511 |
|
|
|
512 |
function geoip_country_code_by_addr($gi, $addr)
|
513 |
{
|
514 |
if ($gi->databaseType == GEOIP_CITY_EDITION_REV1) {
|
@@ -524,7 +536,9 @@ function geoip_country_code_by_addr($gi, $addr)
|
|
524 |
}
|
525 |
return false;
|
526 |
}
|
|
|
527 |
|
|
|
528 |
function geoip_country_name_by_addr_v6($gi, $addr)
|
529 |
{
|
530 |
$country_id = geoip_country_id_by_addr_v6($gi, $addr);
|
@@ -533,7 +547,9 @@ function geoip_country_name_by_addr_v6($gi, $addr)
|
|
533 |
}
|
534 |
return false;
|
535 |
}
|
|
|
536 |
|
|
|
537 |
function geoip_country_name_by_addr($gi, $addr)
|
538 |
{
|
539 |
if ($gi->databaseType == GEOIP_CITY_EDITION_REV1) {
|
@@ -547,7 +563,9 @@ function geoip_country_name_by_addr($gi, $addr)
|
|
547 |
}
|
548 |
return false;
|
549 |
}
|
|
|
550 |
|
|
|
551 |
function _geoip_seek_country_v6($gi, $ipnum)
|
552 |
{
|
553 |
# arrays from unpack start with offset 1
|
@@ -599,7 +617,9 @@ function _geoip_seek_country_v6($gi, $ipnum)
|
|
599 |
trigger_error("error traversing database - perhaps it is corrupt?", E_USER_ERROR);
|
600 |
return false;
|
601 |
}
|
|
|
602 |
|
|
|
603 |
function _geoip_seek_country($gi, $ipnum)
|
604 |
{
|
605 |
$offset = 0;
|
@@ -642,7 +662,9 @@ function _geoip_seek_country($gi, $ipnum)
|
|
642 |
trigger_error("error traversing database - perhaps it is corrupt?", E_USER_ERROR);
|
643 |
return false;
|
644 |
}
|
|
|
645 |
|
|
|
646 |
function _common_get_org($gi, $seek_org)
|
647 |
{
|
648 |
$record_pointer = $seek_org + (2 * $gi->record_length - 1) * $gi->databaseSegments;
|
@@ -655,7 +677,9 @@ function _common_get_org($gi, $seek_org)
|
|
655 |
$org_buf = _safe_substr($org_buf, 0, strpos($org_buf, "\0"));
|
656 |
return $org_buf;
|
657 |
}
|
|
|
658 |
|
|
|
659 |
function _get_org_v6($gi, $ipnum)
|
660 |
{
|
661 |
$seek_org = _geoip_seek_country_v6($gi, $ipnum);
|
@@ -664,7 +688,9 @@ function _get_org_v6($gi, $ipnum)
|
|
664 |
}
|
665 |
return _common_get_org($gi, $seek_org);
|
666 |
}
|
|
|
667 |
|
|
|
668 |
function _get_org($gi, $ipnum)
|
669 |
{
|
670 |
$seek_org = _geoip_seek_country($gi, $ipnum);
|
@@ -673,9 +699,9 @@ function _get_org($gi, $ipnum)
|
|
673 |
}
|
674 |
return _common_get_org($gi, $seek_org);
|
675 |
}
|
|
|
676 |
|
677 |
-
|
678 |
-
|
679 |
function geoip_name_by_addr_v6 ($gi, $addr)
|
680 |
{
|
681 |
if ($addr == null) {
|
@@ -684,7 +710,9 @@ function geoip_name_by_addr_v6 ($gi, $addr)
|
|
684 |
$ipnum = inet_pton($addr);
|
685 |
return _get_org_v6($gi, $ipnum);
|
686 |
}
|
|
|
687 |
|
|
|
688 |
function geoip_name_by_addr ($gi, $addr)
|
689 |
{
|
690 |
if ($addr == null) {
|
@@ -693,12 +721,16 @@ function geoip_name_by_addr ($gi, $addr)
|
|
693 |
$ipnum = ip2long($addr);
|
694 |
return _get_org($gi, $ipnum);
|
695 |
}
|
|
|
696 |
|
|
|
697 |
function geoip_org_by_addr ($gi, $addr)
|
698 |
{
|
699 |
return geoip_name_by_addr($gi, $addr);
|
700 |
}
|
|
|
701 |
|
|
|
702 |
function _get_region($gi, $ipnum)
|
703 |
{
|
704 |
if ($gi->databaseType == GEOIP_REGION_EDITION_REV0) {
|
@@ -729,7 +761,9 @@ function _get_region($gi, $ipnum)
|
|
729 |
return array ($country_code,$region);
|
730 |
}
|
731 |
}
|
|
|
732 |
|
|
|
733 |
function geoip_region_by_addr ($gi, $addr)
|
734 |
{
|
735 |
if ($addr == null) {
|
@@ -738,7 +772,9 @@ function geoip_region_by_addr ($gi, $addr)
|
|
738 |
$ipnum = ip2long($addr);
|
739 |
return _get_region($gi, $ipnum);
|
740 |
}
|
|
|
741 |
|
|
|
742 |
function getdnsattributes ($l, $ip)
|
743 |
{
|
744 |
$r = new Net_DNS_Resolver();
|
@@ -748,7 +784,9 @@ function getdnsattributes ($l, $ip)
|
|
748 |
$str = substr($str, 1, -1);
|
749 |
return $str;
|
750 |
}
|
|
|
751 |
|
|
|
752 |
function _safe_substr($string, $start, $length)
|
753 |
{
|
754 |
// workaround php's broken substr, strpos, etc handling with
|
@@ -767,4 +805,5 @@ function _safe_substr($string, $start, $length)
|
|
767 |
}
|
768 |
|
769 |
return $buf;
|
|
|
770 |
}
|
243 |
);
|
244 |
}
|
245 |
|
246 |
+
if ( !function_exists ('geoip_load_shared_mem')) {
|
247 |
function geoip_load_shared_mem ($file)
|
248 |
{
|
249 |
$fp = fopen($file, "rb");
|
261 |
shmop_write($shmid, fread($fp, $size), 0);
|
262 |
shmop_close($shmid);
|
263 |
}
|
264 |
+
}
|
265 |
|
266 |
+
if ( !function_exists ('_setup_segments')) {
|
267 |
function _setup_segments($gi)
|
268 |
{
|
269 |
$gi->databaseType = GEOIP_COUNTRY_EDITION;
|
390 |
}
|
391 |
return $gi;
|
392 |
}
|
393 |
+
}
|
394 |
|
395 |
if ( !function_exists ('geoip_open')) {
|
396 |
function geoip_open($filename, $flags)
|
423 |
}
|
424 |
}
|
425 |
|
426 |
+
if ( !function_exists ('geoip_country_id_by_name')) {
|
427 |
function geoip_country_id_by_name_v6($gi, $name)
|
428 |
{
|
429 |
$rec = dns_get_record($name, DNS_AAAA);
|
436 |
}
|
437 |
return geoip_country_id_by_addr_v6($gi, $addr);
|
438 |
}
|
439 |
+
}
|
440 |
|
441 |
+
if ( !function_exists ('geoip_id_by_name')) {
|
442 |
function geoip_country_id_by_name($gi, $name)
|
443 |
{
|
444 |
$addr = gethostbyname($name);
|
447 |
}
|
448 |
return geoip_country_id_by_addr($gi, $addr);
|
449 |
}
|
450 |
+
}
|
451 |
|
452 |
if ( !function_exists ('geoip_country_code_by_name_v6')) {
|
453 |
function geoip_country_code_by_name_v6($gi, $name)
|
459 |
return false;
|
460 |
}
|
461 |
}
|
462 |
+
|
463 |
if ( !function_exists ('geoip_country_code_by_name')) {
|
464 |
function geoip_country_code_by_name($gi, $name)
|
465 |
{
|
509 |
}
|
510 |
}
|
511 |
|
512 |
+
if ( !function_exists ('geoip_country_code_by_addr_v6')) {
|
513 |
function geoip_country_code_by_addr_v6($gi, $addr)
|
514 |
{
|
515 |
$country_id = geoip_country_id_by_addr_v6($gi, $addr);
|
518 |
}
|
519 |
return false;
|
520 |
}
|
521 |
+
}
|
522 |
|
523 |
+
if ( !function_exists ('geoip_country_code_by_addr')) {
|
524 |
function geoip_country_code_by_addr($gi, $addr)
|
525 |
{
|
526 |
if ($gi->databaseType == GEOIP_CITY_EDITION_REV1) {
|
536 |
}
|
537 |
return false;
|
538 |
}
|
539 |
+
}
|
540 |
|
541 |
+
if ( !function_exists ('geoip_country_name_by_addr_v6')) {
|
542 |
function geoip_country_name_by_addr_v6($gi, $addr)
|
543 |
{
|
544 |
$country_id = geoip_country_id_by_addr_v6($gi, $addr);
|
547 |
}
|
548 |
return false;
|
549 |
}
|
550 |
+
}
|
551 |
|
552 |
+
if ( !function_exists ('geoip_country_name_by_addr')) {
|
553 |
function geoip_country_name_by_addr($gi, $addr)
|
554 |
{
|
555 |
if ($gi->databaseType == GEOIP_CITY_EDITION_REV1) {
|
563 |
}
|
564 |
return false;
|
565 |
}
|
566 |
+
}
|
567 |
|
568 |
+
if ( !function_exists ('_geoip_seek_country_v6')) {
|
569 |
function _geoip_seek_country_v6($gi, $ipnum)
|
570 |
{
|
571 |
# arrays from unpack start with offset 1
|
617 |
trigger_error("error traversing database - perhaps it is corrupt?", E_USER_ERROR);
|
618 |
return false;
|
619 |
}
|
620 |
+
}
|
621 |
|
622 |
+
if ( !function_exists ('_geoip_seek_country')) {
|
623 |
function _geoip_seek_country($gi, $ipnum)
|
624 |
{
|
625 |
$offset = 0;
|
662 |
trigger_error("error traversing database - perhaps it is corrupt?", E_USER_ERROR);
|
663 |
return false;
|
664 |
}
|
665 |
+
}
|
666 |
|
667 |
+
if ( !function_exists ('_common_get_org')) {
|
668 |
function _common_get_org($gi, $seek_org)
|
669 |
{
|
670 |
$record_pointer = $seek_org + (2 * $gi->record_length - 1) * $gi->databaseSegments;
|
677 |
$org_buf = _safe_substr($org_buf, 0, strpos($org_buf, "\0"));
|
678 |
return $org_buf;
|
679 |
}
|
680 |
+
}
|
681 |
|
682 |
+
if ( !function_exists ('_get_org_v6')) {
|
683 |
function _get_org_v6($gi, $ipnum)
|
684 |
{
|
685 |
$seek_org = _geoip_seek_country_v6($gi, $ipnum);
|
688 |
}
|
689 |
return _common_get_org($gi, $seek_org);
|
690 |
}
|
691 |
+
}
|
692 |
|
693 |
+
if ( !function_exists ('_get_org')) {
|
694 |
function _get_org($gi, $ipnum)
|
695 |
{
|
696 |
$seek_org = _geoip_seek_country($gi, $ipnum);
|
699 |
}
|
700 |
return _common_get_org($gi, $seek_org);
|
701 |
}
|
702 |
+
}
|
703 |
|
704 |
+
if ( !function_exists ('geoip_name_by_addr_v6')) {
|
|
|
705 |
function geoip_name_by_addr_v6 ($gi, $addr)
|
706 |
{
|
707 |
if ($addr == null) {
|
710 |
$ipnum = inet_pton($addr);
|
711 |
return _get_org_v6($gi, $ipnum);
|
712 |
}
|
713 |
+
}
|
714 |
|
715 |
+
if ( !function_exists ('geoip_name_by_addr')) {
|
716 |
function geoip_name_by_addr ($gi, $addr)
|
717 |
{
|
718 |
if ($addr == null) {
|
721 |
$ipnum = ip2long($addr);
|
722 |
return _get_org($gi, $ipnum);
|
723 |
}
|
724 |
+
}
|
725 |
|
726 |
+
if ( !function_exists ('geoip_org_by_addr')) {
|
727 |
function geoip_org_by_addr ($gi, $addr)
|
728 |
{
|
729 |
return geoip_name_by_addr($gi, $addr);
|
730 |
}
|
731 |
+
}
|
732 |
|
733 |
+
if ( !function_exists ('_get_region')) {
|
734 |
function _get_region($gi, $ipnum)
|
735 |
{
|
736 |
if ($gi->databaseType == GEOIP_REGION_EDITION_REV0) {
|
761 |
return array ($country_code,$region);
|
762 |
}
|
763 |
}
|
764 |
+
}
|
765 |
|
766 |
+
if ( !function_exists ('geoip_region_by_addr')) {
|
767 |
function geoip_region_by_addr ($gi, $addr)
|
768 |
{
|
769 |
if ($addr == null) {
|
772 |
$ipnum = ip2long($addr);
|
773 |
return _get_region($gi, $ipnum);
|
774 |
}
|
775 |
+
}
|
776 |
|
777 |
+
if ( !function_exists ('getdnsattributes')) {
|
778 |
function getdnsattributes ($l, $ip)
|
779 |
{
|
780 |
$r = new Net_DNS_Resolver();
|
784 |
$str = substr($str, 1, -1);
|
785 |
return $str;
|
786 |
}
|
787 |
+
}
|
788 |
|
789 |
+
if ( !function_exists ('_safe_substr')) {
|
790 |
function _safe_substr($string, $start, $length)
|
791 |
{
|
792 |
// workaround php's broken substr, strpos, etc handling with
|
805 |
}
|
806 |
|
807 |
return $buf;
|
808 |
+
}
|
809 |
}
|
readme.txt
CHANGED
@@ -1,10 +1,10 @@
|
|
1 |
=== iQ Block Country ===
|
2 |
-
Contributors: iqpascal
|
3 |
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: 3.
|
7 |
-
Stable tag: 1.1.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -177,6 +177,23 @@ If storing or sharing an IP address is illegal in your country do not select thi
|
|
177 |
|
178 |
== Changelog ==
|
179 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
180 |
= 1.1.8 =
|
181 |
|
182 |
* Smashed a bug where the homepage was unprotected due to missing check.
|
1 |
=== iQ Block Country ===
|
2 |
+
Contributors: iqpascal
|
3 |
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: 3.9.1
|
7 |
+
Stable tag: 1.1.11
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
177 |
|
178 |
== Changelog ==
|
179 |
|
180 |
+
= 1.1.11 =
|
181 |
+
|
182 |
+
* Added select box on how many rows to display on the logging tab
|
183 |
+
* Redirect blocked users to a specific page instead of displaying the block message.
|
184 |
+
* Added blacklist and whitelist of IP addresses to the backend.
|
185 |
+
* Adjusted some text
|
186 |
+
* Minor bugfixes
|
187 |
+
|
188 |
+
= 1.1.10 =
|
189 |
+
|
190 |
+
* Small fixes
|
191 |
+
* WP 3.9 compatability issue fixed
|
192 |
+
|
193 |
+
= 1.1.9 =
|
194 |
+
|
195 |
+
* Bugfix release due to faulty v1.1.8 release. My Apologies.
|
196 |
+
|
197 |
= 1.1.8 =
|
198 |
|
199 |
* Smashed a bug where the homepage was unprotected due to missing check.
|