iQ Block Country - Version 1.1.17

Version Description

  • Due to a conflict of the license where Wordpress is released under and the license the MaxMind databases are released under I was forced to remove all auto downloads of the GeoIP databases. You now have to manually download the databases and upload them yourself.
  • Added Webence GeoIP API lookup. See http://geoip.webence.nl/ for more information about this API.
Download this release

Release Info

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

Code changes from version 1.1.16 to 1.1.17

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.16
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.
@@ -11,7 +11,7 @@ License: GPL2
11
 
12
  /* This script uses GeoLite Country from MaxMind (http://www.maxmind.com) which is available under terms of GPL/LGPL */
13
 
14
- /* Copyright 2010-2014 Pascal (email : pascal@redeo.nl)
15
 
16
  This program is free software; you can redistribute it and/or modify
17
  it under the terms of the GNU General Public License, version 2, as
@@ -129,6 +129,11 @@ function iqblockcountry_upgrade()
129
  $dbversion = get_option( 'blockcountry_version' );
130
  update_option('blockcountry_version',VERSION);
131
 
 
 
 
 
 
132
  if ($dbversion != "" && version_compare($dbversion, "1.1.14", '<') )
133
  {
134
  update_option('blockcountry_automaticupdate', 'on');
@@ -156,7 +161,6 @@ function iqblockcountry_upgrade()
156
  {
157
  iqblockcountry_install_db();
158
  add_option( "blockcountry_dbversion", DBVERSION );
159
- update_option('blockcountry_lastupdate' , 0);
160
  update_option('blockcountry_blockfrontend' , 'on');
161
  update_option('blockcountry_version',VERSION);
162
  update_option('blockcountry_backendnrblocks', 0);
@@ -170,32 +174,32 @@ function iqblockcountry_upgrade()
170
 
171
  }
172
 
173
- /*
174
- * Include libraries
175
- */
176
- require_once('libs/blockcountry-checks.php');
177
- require_once('libs/blockcountry-settings.php');
178
- require_once('libs/blockcountry-validation.php');
179
- require_once('libs/blockcountry-logging.php');
180
- require_once('libs/blockcountry-tracking.php');
181
- require_once('libs/blockcountry-search-engines.php');
182
- require_once('libs/blockcountry-retrieve-geodb.php');
183
-
184
  /*
185
  * Main plugin works.
186
  */
187
  define("CHOSENJS", plugins_url('/chosen.jquery.js', __FILE__));
188
  define("CHOSENCSS", plugins_url('/chosen.css', __FILE__));
189
- define("IPV6DB","http://geolite.maxmind.com/download/geoip/database/GeoIPv6.dat.gz");
190
- define("IPV4DB","http://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP.dat.gz");
191
  define("IPV4DBFILE",WP_PLUGIN_DIR . "/" . dirname ( plugin_basename ( __FILE__ ) ) . "/GeoIP.dat");
192
  define("IPV6DBFILE",WP_PLUGIN_DIR . "/" . dirname ( plugin_basename ( __FILE__ ) ) . "/GeoIPv6.dat");
193
  define("TRACKINGURL","http://tracking.webence.nl/iq-block-country-tracking.php");
194
- define("TRACKINGRETRIEVEURL","http://tracking.webence.nl/iq-block-country-retrieve.php");
195
- define("VERSION","1.1.16");
 
196
  define("DBVERSION","121");
197
  define("PLUGINPATH",plugin_dir_path( __FILE__ ));
198
 
 
 
 
 
 
 
 
 
 
 
199
  global $apiblacklist;
200
  $apiblacklist = FALSE;
201
  $backendblacklistcheck = FALSE;
@@ -227,7 +231,6 @@ if (get_option('blockcountry_blockfrontend'))
227
 
228
  add_action ( 'admin_init', 'iqblockcountry_localization');
229
  add_action ( 'admin_menu', 'iqblockcountry_create_menu' );
230
- add_action ( 'admin_init', 'iqblockcountry_checkupdatedb' );
231
  add_filter ( 'update_option_blockcountry_tracking', 'iqblockcountry_schedule_tracking', 10, 2);
232
  add_filter ( 'add_option_blockcountry_tracking', 'iqblockcountry_schedule_tracking', 10, 2);
233
  add_filter ( 'update_option_blockcountry_apikey', 'iqblockcountry_schedule_retrieving', 10, 2);
@@ -242,4 +245,6 @@ if (get_option('blockcountry_buffer') == "on")
242
  add_action ( 'wp_footer', 'iqblockcountry_buffer_flush');
243
  }
244
 
 
 
245
  ?>
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.17
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.
11
 
12
  /* This script uses GeoLite Country from MaxMind (http://www.maxmind.com) which is available under terms of GPL/LGPL */
13
 
14
+ /* Copyright 2010-2015 Pascal (email : pascal@redeo.nl)
15
 
16
  This program is free software; you can redistribute it and/or modify
17
  it under the terms of the GNU General Public License, version 2, as
129
  $dbversion = get_option( 'blockcountry_version' );
130
  update_option('blockcountry_version',VERSION);
131
 
132
+ if ($dbversion != "" && version_compare($dbversion, "1.1.17", '<') )
133
+ {
134
+ delete_option('blockcountry_automaticupdate');
135
+ delete_option('blockcountry_lastupdate');
136
+ }
137
  if ($dbversion != "" && version_compare($dbversion, "1.1.14", '<') )
138
  {
139
  update_option('blockcountry_automaticupdate', 'on');
161
  {
162
  iqblockcountry_install_db();
163
  add_option( "blockcountry_dbversion", DBVERSION );
 
164
  update_option('blockcountry_blockfrontend' , 'on');
165
  update_option('blockcountry_version',VERSION);
166
  update_option('blockcountry_backendnrblocks', 0);
174
 
175
  }
176
 
 
 
 
 
 
 
 
 
 
 
 
177
  /*
178
  * Main plugin works.
179
  */
180
  define("CHOSENJS", plugins_url('/chosen.jquery.js', __FILE__));
181
  define("CHOSENCSS", plugins_url('/chosen.css', __FILE__));
182
+ define("IPV6DB","http://geolite.maxmind.com/download/geoip/database/GeoIPv6.dat.gz"); // Used to display download location.
183
+ define("IPV4DB","http://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP.dat.gz"); // Used to display download location.
184
  define("IPV4DBFILE",WP_PLUGIN_DIR . "/" . dirname ( plugin_basename ( __FILE__ ) ) . "/GeoIP.dat");
185
  define("IPV6DBFILE",WP_PLUGIN_DIR . "/" . dirname ( plugin_basename ( __FILE__ ) ) . "/GeoIPv6.dat");
186
  define("TRACKINGURL","http://tracking.webence.nl/iq-block-country-tracking.php");
187
+ define("BANLISTRETRIEVEURL","http://tracking.webence.nl/iq-block-country-retrieve.php");
188
+ define("GEOIPAPIURL","http://geoip.webence.nl/geoipapi.php");
189
+ define("VERSION","1.1.17");
190
  define("DBVERSION","121");
191
  define("PLUGINPATH",plugin_dir_path( __FILE__ ));
192
 
193
+ /*
194
+ * Include libraries
195
+ */
196
+ require_once('libs/blockcountry-checks.php');
197
+ require_once('libs/blockcountry-settings.php');
198
+ require_once('libs/blockcountry-validation.php');
199
+ require_once('libs/blockcountry-logging.php');
200
+ require_once('libs/blockcountry-tracking.php');
201
+ require_once('libs/blockcountry-search-engines.php');
202
+
203
  global $apiblacklist;
204
  $apiblacklist = FALSE;
205
  $backendblacklistcheck = FALSE;
231
 
232
  add_action ( 'admin_init', 'iqblockcountry_localization');
233
  add_action ( 'admin_menu', 'iqblockcountry_create_menu' );
 
234
  add_filter ( 'update_option_blockcountry_tracking', 'iqblockcountry_schedule_tracking', 10, 2);
235
  add_filter ( 'add_option_blockcountry_tracking', 'iqblockcountry_schedule_tracking', 10, 2);
236
  add_filter ( 'update_option_blockcountry_apikey', 'iqblockcountry_schedule_retrieving', 10, 2);
245
  add_action ( 'wp_footer', 'iqblockcountry_buffer_flush');
246
  }
247
 
248
+
249
+
250
  ?>
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-12-22 21:40+0100\n"
5
- "PO-Revision-Date: 2014-12-22 21:40+0100\n"
6
  "Last-Translator: Pascal <pascal@redeo.nl>\n"
7
  "Language-Team: iQ Block Country <info@redeo.nl>\n"
8
  "Language: English\n"
@@ -15,382 +15,424 @@ msgstr ""
15
  "X-Poedit-SearchPath-0: libs\n"
16
  "X-Poedit-SearchPath-1: .\n"
17
 
18
- #: libs/blockcountry-settings.php:136
 
 
 
 
 
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:140
25
- msgid "IP Address to check:"
26
  msgstr ""
27
 
28
- #: libs/blockcountry-settings.php:150
29
- msgid "No country for"
 
 
30
  msgstr ""
31
 
32
- #: libs/blockcountry-settings.php:150
33
- msgid "could be found. Or"
34
  msgstr ""
35
 
36
- #: libs/blockcountry-settings.php:150
37
- msgid "is not a valid IPv4 or IPv6 IP address"
38
  msgstr ""
39
 
40
- #: libs/blockcountry-settings.php:155
41
- msgid "IP Adress"
 
 
42
  msgstr ""
43
 
44
- #: libs/blockcountry-settings.php:155
45
- msgid "belongs to"
 
 
46
  msgstr ""
47
 
48
- #: libs/blockcountry-settings.php:158
49
- msgid "This country is not permitted to visit the frontend of this website."
50
  msgstr ""
51
 
52
- #: libs/blockcountry-settings.php:163
53
- msgid "This country is not permitted to visit the backend of this website."
 
 
 
 
 
 
 
 
54
  msgstr ""
55
 
56
  #: libs/blockcountry-settings.php:168
57
- msgid "This ip is present in the blacklist."
 
 
58
  msgstr ""
59
 
60
- #: libs/blockcountry-settings.php:173
61
- msgid "Check IP address"
62
  msgstr ""
63
 
64
- #: libs/blockcountry-settings.php:179
65
- msgid "Download GeoIP database"
 
 
 
 
 
 
 
 
66
  msgstr ""
67
 
68
  #: libs/blockcountry-settings.php:187
69
- msgid "Automatic update is not setup. Last update: "
70
  msgstr ""
71
 
72
- #: libs/blockcountry-settings.php:192
73
- msgid "The GeoIP database is updated once a month. Last update: "
74
  msgstr ""
75
 
76
- #: libs/blockcountry-settings.php:194
77
- msgid "If you need a manual update please press buttons below to update."
78
  msgstr ""
79
 
80
- #: libs/blockcountry-settings.php:200
81
- msgid "Download new GeoIP IPv4 Database"
82
  msgstr ""
83
 
84
- #: libs/blockcountry-settings.php:207
85
- msgid "Download new GeoIP IPv6 Database"
86
  msgstr ""
87
 
88
- #: libs/blockcountry-settings.php:212 libs/blockcountry-settings.php:216
89
- msgid "Downloading..."
90
  msgstr ""
91
 
92
- #: libs/blockcountry-settings.php:222
93
  msgid "Active plugins"
94
  msgstr ""
95
 
96
- #: libs/blockcountry-settings.php:229
97
  msgid "Plugin name"
98
  msgstr ""
99
 
100
- #: libs/blockcountry-settings.php:229
101
  msgid "Version"
102
  msgstr ""
103
 
104
- #: libs/blockcountry-settings.php:229 libs/blockcountry-settings.php:943
105
- #: libs/blockcountry-settings.php:986
106
  msgid "URL"
107
  msgstr ""
108
 
109
- #: libs/blockcountry-settings.php:254
110
  msgid "Export"
111
  msgstr ""
112
 
113
- #: libs/blockcountry-settings.php:255
114
  msgid ""
115
  "When you click on <tt>Backup all settings</tt> button a backup of the iQ "
116
  "Block Country configuration will be created."
117
  msgstr ""
118
 
119
- #: libs/blockcountry-settings.php:256
120
  msgid ""
121
  "After exporting, you can either use the backup file to restore your settings "
122
  "on this site again or copy the settings to another WordPress site."
123
  msgstr ""
124
 
125
- #: libs/blockcountry-settings.php:260
126
  msgid "Backup all settings"
127
  msgstr ""
128
 
129
- #: libs/blockcountry-settings.php:267
130
  msgid "Import"
131
  msgstr ""
132
 
133
- #: libs/blockcountry-settings.php:268
134
  msgid "Click the browse button and choose a zip file that you exported before."
135
  msgstr ""
136
 
137
- #: libs/blockcountry-settings.php:269
138
  msgid "Press Restore settings button, and let WordPress do the magic for you."
139
  msgstr ""
140
 
141
- #: libs/blockcountry-settings.php:274
142
  msgid "Restore settings"
143
  msgstr ""
144
 
145
- #: libs/blockcountry-settings.php:297 libs/blockcountry-settings.php:300
146
- #: libs/blockcountry-settings.php:309
147
  msgid "Something went wrong exporting this file"
148
  msgstr ""
149
 
150
- #: libs/blockcountry-settings.php:312
151
  msgid "Exporting settings..."
152
  msgstr ""
153
 
154
- #: libs/blockcountry-settings.php:327
155
  msgid "Something went wrong importing this file"
156
  msgstr ""
157
 
158
- #: libs/blockcountry-settings.php:344
159
  msgid "All options are restored successfully."
160
  msgstr ""
161
 
162
- #: libs/blockcountry-settings.php:347
163
  msgid "Invalid file."
164
  msgstr ""
165
 
166
- #: libs/blockcountry-settings.php:352
167
  msgid "No correct import or export option given."
168
  msgstr ""
169
 
170
- #: libs/blockcountry-settings.php:361
171
  msgid "Select which pages are blocked."
172
  msgstr ""
173
 
174
- #: libs/blockcountry-settings.php:368
175
  msgid "Do you want to block individual pages:"
176
  msgstr ""
177
 
178
- #: libs/blockcountry-settings.php:369
179
  msgid "If you do not select this option all pages will be blocked."
180
  msgstr ""
181
 
182
- #: libs/blockcountry-settings.php:374
183
  msgid "Select pages you want to block:"
184
  msgstr ""
185
 
186
- #: libs/blockcountry-settings.php:396 libs/blockcountry-settings.php:450
187
- #: libs/blockcountry-settings.php:493 libs/blockcountry-settings.php:614
188
- #: libs/blockcountry-settings.php:738 libs/blockcountry-settings.php:911
 
189
  msgid "Save Changes"
190
  msgstr ""
191
 
192
- #: libs/blockcountry-settings.php:409
193
  msgid "Select which categories are blocked."
194
  msgstr ""
195
 
196
- #: libs/blockcountry-settings.php:416
197
  msgid "Do you want to block individual categories:"
198
  msgstr ""
199
 
200
- #: libs/blockcountry-settings.php:417
201
  msgid "If you do not select this option all blog articles will be blocked."
202
  msgstr ""
203
 
204
- #: libs/blockcountry-settings.php:422
205
  msgid "Do you want to block the homepage:"
206
  msgstr ""
207
 
208
- #: libs/blockcountry-settings.php:423
209
  msgid ""
210
  "If you do not select this option visitors will not be blocked from your "
211
  "homepage regardless of the categories you select."
212
  msgstr ""
213
 
214
- #: libs/blockcountry-settings.php:428
215
  msgid "Select categories you want to block:"
216
  msgstr ""
217
 
218
- #: libs/blockcountry-settings.php:463
 
 
 
 
 
 
 
 
 
 
 
 
219
  msgid "Select which search engines are allowed."
220
  msgstr ""
221
 
222
- #: libs/blockcountry-settings.php:470
223
  msgid "Select which search engines you want to allow:"
224
  msgstr ""
225
 
226
- #: libs/blockcountry-settings.php:471
227
  msgid ""
228
  "This will allow a search engine to your site despite if you blocked the "
229
  "country."
230
  msgstr ""
231
 
232
- #: libs/blockcountry-settings.php:508
233
  msgid "Frontend options"
234
  msgstr ""
235
 
236
- #: libs/blockcountry-settings.php:543
237
  msgid ""
238
  "Do not block visitors that are logged in from visiting frontend website:"
239
  msgstr ""
240
 
241
- #: libs/blockcountry-settings.php:549
242
  msgid "Block visitors from visiting the frontend of your website:"
243
  msgstr ""
244
 
245
- #: libs/blockcountry-settings.php:555
246
  msgid ""
247
  "Select the countries that should be blocked from visiting your frontend:"
248
  msgstr ""
249
 
250
- #: libs/blockcountry-settings.php:556
251
  msgid "Use the CTRL key to select multiple countries"
252
  msgstr ""
253
 
254
- #: libs/blockcountry-settings.php:597
255
  msgid "Frontend whitelist IPv4 and/or IPv6 addresses:"
256
  msgstr ""
257
 
258
- #: libs/blockcountry-settings.php:597 libs/blockcountry-settings.php:605
259
- #: libs/blockcountry-settings.php:721 libs/blockcountry-settings.php:729
260
  msgid "Use a semicolon (;) to separate IP addresses"
261
  msgstr ""
262
 
263
- #: libs/blockcountry-settings.php:605
264
  msgid "Frontend blacklist IPv4 and/or IPv6 addresses:"
265
  msgstr ""
266
 
267
- #: libs/blockcountry-settings.php:634
268
  msgid "Backend Options"
269
  msgstr ""
270
 
271
- #: libs/blockcountry-settings.php:668
272
  msgid ""
273
  "Block visitors from visiting the backend (administrator) of your website:"
274
  msgstr ""
275
 
276
- #: libs/blockcountry-settings.php:676
277
  msgid "Your IP address is"
278
  msgstr ""
279
 
280
- #: libs/blockcountry-settings.php:676
281
  msgid "The country that is listed for this IP address is"
282
  msgstr ""
283
 
284
- #: libs/blockcountry-settings.php:677
285
  msgid ""
286
  "Do <strong>NOT</strong> set the 'Block visitors from visiting the backend "
287
  "(administrator) of your website' and also select"
288
  msgstr ""
289
 
290
- #: libs/blockcountry-settings.php:677
291
  msgid "below."
292
  msgstr ""
293
 
294
- #: libs/blockcountry-settings.php:678
295
  msgid ""
296
  "You will NOT be able to login the next time if you DO block your own country "
297
  "from visiting the backend."
298
  msgstr ""
299
 
300
- #: libs/blockcountry-settings.php:683
301
  msgid "Select the countries that should be blocked from visiting your backend:"
302
  msgstr ""
303
 
304
- #: libs/blockcountry-settings.php:684
305
  msgid "Use the x behind the country to remove a country from this blocklist."
306
  msgstr ""
307
 
308
- #: libs/blockcountry-settings.php:721
309
  msgid "Backend whitelist IPv4 and/or IPv6 addresses:"
310
  msgstr ""
311
 
312
- #: libs/blockcountry-settings.php:729
313
  msgid "Backend blacklist IPv4 and/or IPv6 addresses:"
314
  msgstr ""
315
 
316
- #: libs/blockcountry-settings.php:759
317
  msgid "Overall statistics since start"
318
  msgstr ""
319
 
320
- #: libs/blockcountry-settings.php:762
321
  msgid "visitors blocked from the backend."
322
  msgstr ""
323
 
324
- #: libs/blockcountry-settings.php:764
325
  msgid "visitors blocked from the frontend."
326
  msgstr ""
327
 
328
- #: libs/blockcountry-settings.php:768
329
  msgid "Basic Options"
330
  msgstr ""
331
 
332
- #: libs/blockcountry-settings.php:803
333
  msgid "Message to display when people are blocked:"
334
  msgstr ""
335
 
336
- #: libs/blockcountry-settings.php:813
337
  msgid "Page to redirect to:"
338
  msgstr ""
339
 
340
- #: libs/blockcountry-settings.php:814
341
  msgid ""
342
  "If you select a page here blocked visitors will be redirected to this page "
343
  "instead of displaying above block message."
344
  msgstr ""
345
 
346
- #: libs/blockcountry-settings.php:820
347
  msgid "Choose a page..."
348
  msgstr ""
349
 
350
- #: libs/blockcountry-settings.php:835
351
  msgid "Send headers when user is blocked:"
352
  msgstr ""
353
 
354
- #: libs/blockcountry-settings.php:836
355
  msgid ""
356
  "Under normal circumstances you should keep this selected! Only if you have "
357
  "\"Cannot modify header information - headers already sent\" errors or if you "
358
  "know what you are doing uncheck this."
359
  msgstr ""
360
 
361
- #: libs/blockcountry-settings.php:842
362
  msgid "Buffer output?:"
363
  msgstr ""
364
 
365
- #: libs/blockcountry-settings.php:843
366
  msgid ""
367
  "You can use this option to buffer all output. This can be helpful in case "
368
  "you have \"headers already sent\" issues."
369
  msgstr ""
370
 
371
- #: libs/blockcountry-settings.php:849
372
  msgid "Do not log IP addresses:"
373
  msgstr ""
374
 
375
- #: libs/blockcountry-settings.php:850
376
  msgid ""
377
  "Check this box if the laws in your country do not permit you to log IP "
378
  "addresses or if you do not want to log the ip addresses."
379
  msgstr ""
380
 
381
- #: libs/blockcountry-settings.php:857
382
  msgid "Number of rows on statistics page:"
383
  msgstr ""
384
 
385
- #: libs/blockcountry-settings.php:858
386
  msgid "How many rows do you want to display on each tab the statistics page."
387
  msgstr ""
388
 
389
- #: libs/blockcountry-settings.php:873
390
  msgid "Allow tracking:"
391
  msgstr ""
392
 
393
- #: libs/blockcountry-settings.php:874
394
  msgid ""
395
  "This sends only the IP address and the number of attempts this ip address "
396
  "tried to login to your backend and was blocked doing so to a central server. "
@@ -398,173 +440,140 @@ msgid ""
398
  "countries."
399
  msgstr ""
400
 
401
- #: libs/blockcountry-settings.php:880
402
- msgid "API Key:"
403
  msgstr ""
404
 
405
- #: libs/blockcountry-settings.php:881
406
  msgid ""
407
- "This is an experimantal feature. You do not need an API key for this plugin "
408
- "to work."
 
409
  msgstr ""
410
 
411
- #: libs/blockcountry-settings.php:888
412
- msgid "Log all visits to the backend:"
413
  msgstr ""
414
 
415
- #: libs/blockcountry-settings.php:889
416
  msgid ""
417
- "This logs all visits to the backend despite if they are blocked or not. This "
418
- "is mainly for debugging purposes."
419
  msgstr ""
420
 
421
- #: libs/blockcountry-settings.php:896
422
- msgid "Auto update GeoIP Database:"
423
  msgstr ""
424
 
425
- #: libs/blockcountry-settings.php:897
426
  msgid ""
427
- "Selecting this makes sure that the GeoIP database is downloaded once a month."
 
428
  msgstr ""
429
 
430
- #: libs/blockcountry-settings.php:903
431
  msgid "Accessibility options:"
432
  msgstr ""
433
 
434
- #: libs/blockcountry-settings.php:904
435
  msgid "Set this option if you cannot use the default country selection box."
436
  msgstr ""
437
 
438
- #: libs/blockcountry-settings.php:929
439
  msgid "Last blocked visits"
440
  msgstr ""
441
 
442
- #: libs/blockcountry-settings.php:943
443
  msgid "Date / Time"
444
  msgstr ""
445
 
446
- #: libs/blockcountry-settings.php:943 libs/blockcountry-settings.php:975
447
  msgid "IP Address"
448
  msgstr ""
449
 
450
- #: libs/blockcountry-settings.php:943 libs/blockcountry-settings.php:975
451
  msgid "Hostname"
452
  msgstr ""
453
 
454
- #: libs/blockcountry-settings.php:943 libs/blockcountry-settings.php:962
455
  msgid "Country"
456
  msgstr ""
457
 
458
- #: libs/blockcountry-settings.php:943
459
  msgid "Frontend/Backend"
460
  msgstr ""
461
 
462
- #: libs/blockcountry-settings.php:953 libs/blockcountry-settings.php:1037
463
  msgid "Frontend"
464
  msgstr ""
465
 
466
- #: libs/blockcountry-settings.php:953
467
  msgid "Backend banlist"
468
  msgstr ""
469
 
470
- #: libs/blockcountry-settings.php:953
471
  msgid "Backend & Backend banlist"
472
  msgstr ""
473
 
474
- #: libs/blockcountry-settings.php:953 libs/blockcountry-settings.php:1038
475
  msgid "Backend"
476
  msgstr ""
477
 
478
- #: libs/blockcountry-settings.php:960
479
  msgid "Top countries that are blocked"
480
  msgstr ""
481
 
482
- #: libs/blockcountry-settings.php:962 libs/blockcountry-settings.php:975
483
- #: libs/blockcountry-settings.php:986
484
  msgid "# of blocked attempts"
485
  msgstr ""
486
 
487
- #: libs/blockcountry-settings.php:973
488
  msgid "Top hosts that are blocked"
489
  msgstr ""
490
 
491
- #: libs/blockcountry-settings.php:984
492
  msgid "Top URLs that are blocked"
493
  msgstr ""
494
 
495
- #: libs/blockcountry-settings.php:998
496
  msgid "Clear database"
497
  msgstr ""
498
 
499
- #: libs/blockcountry-settings.php:1014
500
  msgid ""
501
  "You are not logging any information. Please uncheck the option 'Do not log "
502
  "IP addresses' if this is not what you want."
503
  msgstr ""
504
 
505
- #: libs/blockcountry-settings.php:1036
506
  msgid "Home"
507
  msgstr ""
508
 
509
- #: libs/blockcountry-settings.php:1039
510
  msgid "Pages"
511
  msgstr ""
512
 
513
- #: libs/blockcountry-settings.php:1040
514
  msgid "Categories"
515
  msgstr ""
516
 
517
- #: libs/blockcountry-settings.php:1041
 
 
 
 
518
  msgid "Search Engines"
519
  msgstr ""
520
 
521
- #: libs/blockcountry-settings.php:1042
522
  msgid "Tools"
523
  msgstr ""
524
 
525
- #: libs/blockcountry-settings.php:1043
526
  msgid "Logging"
527
  msgstr ""
528
 
529
- #: libs/blockcountry-settings.php:1044
530
  msgid "Import/Export"
531
  msgstr ""
532
-
533
- #: libs/blockcountry-settings.php:1098
534
- msgid "GeoIP database does not exists. Trying to download it..."
535
- msgstr ""
536
-
537
- #: libs/blockcountry-retrieve-geodb.php:38
538
- #: libs/blockcountry-retrieve-geodb.php:49
539
- msgid "Error occured: Could not download the GeoIP database from"
540
- msgstr ""
541
-
542
- #: libs/blockcountry-retrieve-geodb.php:39
543
- msgid ""
544
- "MaxMind has blocked requests from your IP address for 24 hours. Please check "
545
- "again in 24 hours or download this file from your own PC"
546
- msgstr ""
547
-
548
- #: libs/blockcountry-retrieve-geodb.php:40
549
- msgid "Unzip this file and upload it (via FTP for instance) to:"
550
- msgstr ""
551
-
552
- #: libs/blockcountry-retrieve-geodb.php:50
553
- msgid ""
554
- "Please download this file from your own PC unzip this file and upload it "
555
- "(via FTP for instance) to:"
556
- msgstr ""
557
-
558
- #: libs/blockcountry-retrieve-geodb.php:77
559
- msgid "Finished downloading"
560
- msgstr ""
561
-
562
- #: libs/blockcountry-retrieve-geodb.php:85
563
- msgid "Fatal error: GeoIP"
564
- msgstr ""
565
-
566
- #: libs/blockcountry-retrieve-geodb.php:85
567
- msgid ""
568
- "database does not exists. This plugin will not work until the database file "
569
- "is present."
570
- msgstr ""
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: iQ Block Country\n"
4
+ "POT-Creation-Date: 2015-03-04 13:37+0100\n"
5
+ "PO-Revision-Date: 2015-03-04 13:37+0100\n"
6
  "Last-Translator: Pascal <pascal@redeo.nl>\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-retrieve-geodb.php:38
19
+ #: libs/blockcountry-retrieve-geodb.php:49
20
+ msgid "Error occured: Could not download the GeoIP database from"
21
+ msgstr ""
22
+
23
+ #: libs/blockcountry-retrieve-geodb.php:39
24
  msgid ""
25
+ "MaxMind has blocked requests from your IP address for 24 hours. Please check "
26
+ "again in 24 hours or download this file from your own PC"
27
  msgstr ""
28
 
29
+ #: libs/blockcountry-retrieve-geodb.php:40
30
+ msgid "Unzip this file and upload it (via FTP for instance) to:"
31
  msgstr ""
32
 
33
+ #: libs/blockcountry-retrieve-geodb.php:50
34
+ msgid ""
35
+ "Please download this file from your own PC unzip this file and upload it "
36
+ "(via FTP for instance) to:"
37
  msgstr ""
38
 
39
+ #: libs/blockcountry-retrieve-geodb.php:77
40
+ msgid "Finished downloading"
41
  msgstr ""
42
 
43
+ #: libs/blockcountry-retrieve-geodb.php:85
44
+ msgid "Fatal error: GeoIP"
45
  msgstr ""
46
 
47
+ #: libs/blockcountry-retrieve-geodb.php:85
48
+ msgid ""
49
+ "database does not exists. This plugin will not work until the database file "
50
+ "is present."
51
  msgstr ""
52
 
53
+ #: libs/blockcountry-settings.php:16
54
+ msgid ""
55
+ "The MaxMind GeoIP database does not exist. Please download this file "
56
+ "manually or if you wish to use the GeoIP API get an API key from: "
57
  msgstr ""
58
 
59
+ #: libs/blockcountry-settings.php:17
60
+ msgid "Please download the database from: "
61
  msgstr ""
62
 
63
+ #: libs/blockcountry-settings.php:19 libs/blockcountry-settings.php:24
64
+ msgid "and upload it to the following location: "
65
+ msgstr ""
66
+
67
+ #: libs/blockcountry-settings.php:22
68
+ msgid "If you also use IPv6 please also download the database from: "
69
+ msgstr ""
70
+
71
+ #: libs/blockcountry-settings.php:26
72
+ msgid "For more detailed instructions take a look at the documentation.."
73
  msgstr ""
74
 
75
  #: libs/blockcountry-settings.php:168
76
+ msgid ""
77
+ "Check which country belongs to an IP Address according to the current "
78
+ "database."
79
  msgstr ""
80
 
81
+ #: libs/blockcountry-settings.php:172
82
+ msgid "IP Address to check:"
83
  msgstr ""
84
 
85
+ #: libs/blockcountry-settings.php:182
86
+ msgid "No country for"
87
+ msgstr ""
88
+
89
+ #: libs/blockcountry-settings.php:182
90
+ msgid "could be found. Or"
91
+ msgstr ""
92
+
93
+ #: libs/blockcountry-settings.php:182
94
+ msgid "is not a valid IPv4 or IPv6 IP address"
95
  msgstr ""
96
 
97
  #: libs/blockcountry-settings.php:187
98
+ msgid "IP Adress"
99
  msgstr ""
100
 
101
+ #: libs/blockcountry-settings.php:187
102
+ msgid "belongs to"
103
  msgstr ""
104
 
105
+ #: libs/blockcountry-settings.php:190
106
+ msgid "This country is not permitted to visit the frontend of this website."
107
  msgstr ""
108
 
109
+ #: libs/blockcountry-settings.php:195
110
+ msgid "This country is not permitted to visit the backend of this website."
111
  msgstr ""
112
 
113
+ #: libs/blockcountry-settings.php:200
114
+ msgid "This ip is present in the blacklist."
115
  msgstr ""
116
 
117
+ #: libs/blockcountry-settings.php:205
118
+ msgid "Check IP address"
119
  msgstr ""
120
 
121
+ #: libs/blockcountry-settings.php:211
122
  msgid "Active plugins"
123
  msgstr ""
124
 
125
+ #: libs/blockcountry-settings.php:218
126
  msgid "Plugin name"
127
  msgstr ""
128
 
129
+ #: libs/blockcountry-settings.php:218
130
  msgid "Version"
131
  msgstr ""
132
 
133
+ #: libs/blockcountry-settings.php:218 libs/blockcountry-settings.php:978
134
+ #: libs/blockcountry-settings.php:1021
135
  msgid "URL"
136
  msgstr ""
137
 
138
+ #: libs/blockcountry-settings.php:243
139
  msgid "Export"
140
  msgstr ""
141
 
142
+ #: libs/blockcountry-settings.php:244
143
  msgid ""
144
  "When you click on <tt>Backup all settings</tt> button a backup of the iQ "
145
  "Block Country configuration will be created."
146
  msgstr ""
147
 
148
+ #: libs/blockcountry-settings.php:245
149
  msgid ""
150
  "After exporting, you can either use the backup file to restore your settings "
151
  "on this site again or copy the settings to another WordPress site."
152
  msgstr ""
153
 
154
+ #: libs/blockcountry-settings.php:249
155
  msgid "Backup all settings"
156
  msgstr ""
157
 
158
+ #: libs/blockcountry-settings.php:256
159
  msgid "Import"
160
  msgstr ""
161
 
162
+ #: libs/blockcountry-settings.php:257
163
  msgid "Click the browse button and choose a zip file that you exported before."
164
  msgstr ""
165
 
166
+ #: libs/blockcountry-settings.php:258
167
  msgid "Press Restore settings button, and let WordPress do the magic for you."
168
  msgstr ""
169
 
170
+ #: libs/blockcountry-settings.php:263
171
  msgid "Restore settings"
172
  msgstr ""
173
 
174
+ #: libs/blockcountry-settings.php:286 libs/blockcountry-settings.php:289
175
+ #: libs/blockcountry-settings.php:298
176
  msgid "Something went wrong exporting this file"
177
  msgstr ""
178
 
179
+ #: libs/blockcountry-settings.php:301
180
  msgid "Exporting settings..."
181
  msgstr ""
182
 
183
+ #: libs/blockcountry-settings.php:316
184
  msgid "Something went wrong importing this file"
185
  msgstr ""
186
 
187
+ #: libs/blockcountry-settings.php:333
188
  msgid "All options are restored successfully."
189
  msgstr ""
190
 
191
+ #: libs/blockcountry-settings.php:336
192
  msgid "Invalid file."
193
  msgstr ""
194
 
195
+ #: libs/blockcountry-settings.php:341
196
  msgid "No correct import or export option given."
197
  msgstr ""
198
 
199
+ #: libs/blockcountry-settings.php:350
200
  msgid "Select which pages are blocked."
201
  msgstr ""
202
 
203
+ #: libs/blockcountry-settings.php:357
204
  msgid "Do you want to block individual pages:"
205
  msgstr ""
206
 
207
+ #: libs/blockcountry-settings.php:358
208
  msgid "If you do not select this option all pages will be blocked."
209
  msgstr ""
210
 
211
+ #: libs/blockcountry-settings.php:363
212
  msgid "Select pages you want to block:"
213
  msgstr ""
214
 
215
+ #: libs/blockcountry-settings.php:385 libs/blockcountry-settings.php:439
216
+ #: libs/blockcountry-settings.php:488 libs/blockcountry-settings.php:533
217
+ #: libs/blockcountry-settings.php:649 libs/blockcountry-settings.php:773
218
+ #: libs/blockcountry-settings.php:946
219
  msgid "Save Changes"
220
  msgstr ""
221
 
222
+ #: libs/blockcountry-settings.php:398
223
  msgid "Select which categories are blocked."
224
  msgstr ""
225
 
226
+ #: libs/blockcountry-settings.php:405
227
  msgid "Do you want to block individual categories:"
228
  msgstr ""
229
 
230
+ #: libs/blockcountry-settings.php:406
231
  msgid "If you do not select this option all blog articles will be blocked."
232
  msgstr ""
233
 
234
+ #: libs/blockcountry-settings.php:411
235
  msgid "Do you want to block the homepage:"
236
  msgstr ""
237
 
238
+ #: libs/blockcountry-settings.php:412
239
  msgid ""
240
  "If you do not select this option visitors will not be blocked from your "
241
  "homepage regardless of the categories you select."
242
  msgstr ""
243
 
244
+ #: libs/blockcountry-settings.php:417
245
  msgid "Select categories you want to block:"
246
  msgstr ""
247
 
248
+ #: libs/blockcountry-settings.php:453
249
+ msgid "Select which post types are blocked."
250
+ msgstr ""
251
+
252
+ #: libs/blockcountry-settings.php:460
253
+ msgid "Do you want to block individual post types:"
254
+ msgstr ""
255
+
256
+ #: libs/blockcountry-settings.php:465
257
+ msgid "Select post types you want to block:"
258
+ msgstr ""
259
+
260
+ #: libs/blockcountry-settings.php:503
261
  msgid "Select which search engines are allowed."
262
  msgstr ""
263
 
264
+ #: libs/blockcountry-settings.php:510
265
  msgid "Select which search engines you want to allow:"
266
  msgstr ""
267
 
268
+ #: libs/blockcountry-settings.php:511
269
  msgid ""
270
  "This will allow a search engine to your site despite if you blocked the "
271
  "country."
272
  msgstr ""
273
 
274
+ #: libs/blockcountry-settings.php:548
275
  msgid "Frontend options"
276
  msgstr ""
277
 
278
+ #: libs/blockcountry-settings.php:582
279
  msgid ""
280
  "Do not block visitors that are logged in from visiting frontend website:"
281
  msgstr ""
282
 
283
+ #: libs/blockcountry-settings.php:588
284
  msgid "Block visitors from visiting the frontend of your website:"
285
  msgstr ""
286
 
287
+ #: libs/blockcountry-settings.php:594
288
  msgid ""
289
  "Select the countries that should be blocked from visiting your frontend:"
290
  msgstr ""
291
 
292
+ #: libs/blockcountry-settings.php:595
293
  msgid "Use the CTRL key to select multiple countries"
294
  msgstr ""
295
 
296
+ #: libs/blockcountry-settings.php:632
297
  msgid "Frontend whitelist IPv4 and/or IPv6 addresses:"
298
  msgstr ""
299
 
300
+ #: libs/blockcountry-settings.php:632 libs/blockcountry-settings.php:640
301
+ #: libs/blockcountry-settings.php:756 libs/blockcountry-settings.php:764
302
  msgid "Use a semicolon (;) to separate IP addresses"
303
  msgstr ""
304
 
305
+ #: libs/blockcountry-settings.php:640
306
  msgid "Frontend blacklist IPv4 and/or IPv6 addresses:"
307
  msgstr ""
308
 
309
+ #: libs/blockcountry-settings.php:669
310
  msgid "Backend Options"
311
  msgstr ""
312
 
313
+ #: libs/blockcountry-settings.php:703
314
  msgid ""
315
  "Block visitors from visiting the backend (administrator) of your website:"
316
  msgstr ""
317
 
318
+ #: libs/blockcountry-settings.php:711
319
  msgid "Your IP address is"
320
  msgstr ""
321
 
322
+ #: libs/blockcountry-settings.php:711
323
  msgid "The country that is listed for this IP address is"
324
  msgstr ""
325
 
326
+ #: libs/blockcountry-settings.php:712
327
  msgid ""
328
  "Do <strong>NOT</strong> set the 'Block visitors from visiting the backend "
329
  "(administrator) of your website' and also select"
330
  msgstr ""
331
 
332
+ #: libs/blockcountry-settings.php:712
333
  msgid "below."
334
  msgstr ""
335
 
336
+ #: libs/blockcountry-settings.php:713
337
  msgid ""
338
  "You will NOT be able to login the next time if you DO block your own country "
339
  "from visiting the backend."
340
  msgstr ""
341
 
342
+ #: libs/blockcountry-settings.php:718
343
  msgid "Select the countries that should be blocked from visiting your backend:"
344
  msgstr ""
345
 
346
+ #: libs/blockcountry-settings.php:719
347
  msgid "Use the x behind the country to remove a country from this blocklist."
348
  msgstr ""
349
 
350
+ #: libs/blockcountry-settings.php:756
351
  msgid "Backend whitelist IPv4 and/or IPv6 addresses:"
352
  msgstr ""
353
 
354
+ #: libs/blockcountry-settings.php:764
355
  msgid "Backend blacklist IPv4 and/or IPv6 addresses:"
356
  msgstr ""
357
 
358
+ #: libs/blockcountry-settings.php:794
359
  msgid "Overall statistics since start"
360
  msgstr ""
361
 
362
+ #: libs/blockcountry-settings.php:797
363
  msgid "visitors blocked from the backend."
364
  msgstr ""
365
 
366
+ #: libs/blockcountry-settings.php:799
367
  msgid "visitors blocked from the frontend."
368
  msgstr ""
369
 
370
+ #: libs/blockcountry-settings.php:803
371
  msgid "Basic Options"
372
  msgstr ""
373
 
374
+ #: libs/blockcountry-settings.php:838
375
  msgid "Message to display when people are blocked:"
376
  msgstr ""
377
 
378
+ #: libs/blockcountry-settings.php:848
379
  msgid "Page to redirect to:"
380
  msgstr ""
381
 
382
+ #: libs/blockcountry-settings.php:849
383
  msgid ""
384
  "If you select a page here blocked visitors will be redirected to this page "
385
  "instead of displaying above block message."
386
  msgstr ""
387
 
388
+ #: libs/blockcountry-settings.php:855
389
  msgid "Choose a page..."
390
  msgstr ""
391
 
392
+ #: libs/blockcountry-settings.php:870
393
  msgid "Send headers when user is blocked:"
394
  msgstr ""
395
 
396
+ #: libs/blockcountry-settings.php:871
397
  msgid ""
398
  "Under normal circumstances you should keep this selected! Only if you have "
399
  "\"Cannot modify header information - headers already sent\" errors or if you "
400
  "know what you are doing uncheck this."
401
  msgstr ""
402
 
403
+ #: libs/blockcountry-settings.php:877
404
  msgid "Buffer output?:"
405
  msgstr ""
406
 
407
+ #: libs/blockcountry-settings.php:878
408
  msgid ""
409
  "You can use this option to buffer all output. This can be helpful in case "
410
  "you have \"headers already sent\" issues."
411
  msgstr ""
412
 
413
+ #: libs/blockcountry-settings.php:884
414
  msgid "Do not log IP addresses:"
415
  msgstr ""
416
 
417
+ #: libs/blockcountry-settings.php:885
418
  msgid ""
419
  "Check this box if the laws in your country do not permit you to log IP "
420
  "addresses or if you do not want to log the ip addresses."
421
  msgstr ""
422
 
423
+ #: libs/blockcountry-settings.php:892
424
  msgid "Number of rows on statistics page:"
425
  msgstr ""
426
 
427
+ #: libs/blockcountry-settings.php:893
428
  msgid "How many rows do you want to display on each tab the statistics page."
429
  msgstr ""
430
 
431
+ #: libs/blockcountry-settings.php:908
432
  msgid "Allow tracking:"
433
  msgstr ""
434
 
435
+ #: libs/blockcountry-settings.php:909
436
  msgid ""
437
  "This sends only the IP address and the number of attempts this ip address "
438
  "tried to login to your backend and was blocked doing so to a central server. "
440
  "countries."
441
  msgstr ""
442
 
443
+ #: libs/blockcountry-settings.php:915
444
+ msgid "GeoIP API Key:"
445
  msgstr ""
446
 
447
+ #: libs/blockcountry-settings.php:916
448
  msgid ""
449
+ "If for some reason you cannot or do not want to download the MaxMind GeoIP "
450
+ "databases you will need an API key for the GeoIP api.<br />You can get an "
451
+ "API key from: "
452
  msgstr ""
453
 
454
+ #: libs/blockcountry-settings.php:922
455
+ msgid "Admin block API Key:"
456
  msgstr ""
457
 
458
+ #: libs/blockcountry-settings.php:923
459
  msgid ""
460
+ "This is an experimantal feature. You do not need an API key for this plugin "
461
+ "to work."
462
  msgstr ""
463
 
464
+ #: libs/blockcountry-settings.php:930
465
+ msgid "Log all visits to the backend:"
466
  msgstr ""
467
 
468
+ #: libs/blockcountry-settings.php:931
469
  msgid ""
470
+ "This logs all visits to the backend despite if they are blocked or not. This "
471
+ "is mainly for debugging purposes."
472
  msgstr ""
473
 
474
+ #: libs/blockcountry-settings.php:938
475
  msgid "Accessibility options:"
476
  msgstr ""
477
 
478
+ #: libs/blockcountry-settings.php:939
479
  msgid "Set this option if you cannot use the default country selection box."
480
  msgstr ""
481
 
482
+ #: libs/blockcountry-settings.php:964
483
  msgid "Last blocked visits"
484
  msgstr ""
485
 
486
+ #: libs/blockcountry-settings.php:978
487
  msgid "Date / Time"
488
  msgstr ""
489
 
490
+ #: libs/blockcountry-settings.php:978 libs/blockcountry-settings.php:1010
491
  msgid "IP Address"
492
  msgstr ""
493
 
494
+ #: libs/blockcountry-settings.php:978 libs/blockcountry-settings.php:1010
495
  msgid "Hostname"
496
  msgstr ""
497
 
498
+ #: libs/blockcountry-settings.php:978 libs/blockcountry-settings.php:997
499
  msgid "Country"
500
  msgstr ""
501
 
502
+ #: libs/blockcountry-settings.php:978
503
  msgid "Frontend/Backend"
504
  msgstr ""
505
 
506
+ #: libs/blockcountry-settings.php:988 libs/blockcountry-settings.php:1072
507
  msgid "Frontend"
508
  msgstr ""
509
 
510
+ #: libs/blockcountry-settings.php:988
511
  msgid "Backend banlist"
512
  msgstr ""
513
 
514
+ #: libs/blockcountry-settings.php:988
515
  msgid "Backend & Backend banlist"
516
  msgstr ""
517
 
518
+ #: libs/blockcountry-settings.php:988 libs/blockcountry-settings.php:1073
519
  msgid "Backend"
520
  msgstr ""
521
 
522
+ #: libs/blockcountry-settings.php:995
523
  msgid "Top countries that are blocked"
524
  msgstr ""
525
 
526
+ #: libs/blockcountry-settings.php:997 libs/blockcountry-settings.php:1010
527
+ #: libs/blockcountry-settings.php:1021
528
  msgid "# of blocked attempts"
529
  msgstr ""
530
 
531
+ #: libs/blockcountry-settings.php:1008
532
  msgid "Top hosts that are blocked"
533
  msgstr ""
534
 
535
+ #: libs/blockcountry-settings.php:1019
536
  msgid "Top URLs that are blocked"
537
  msgstr ""
538
 
539
+ #: libs/blockcountry-settings.php:1033
540
  msgid "Clear database"
541
  msgstr ""
542
 
543
+ #: libs/blockcountry-settings.php:1049
544
  msgid ""
545
  "You are not logging any information. Please uncheck the option 'Do not log "
546
  "IP addresses' if this is not what you want."
547
  msgstr ""
548
 
549
+ #: libs/blockcountry-settings.php:1071
550
  msgid "Home"
551
  msgstr ""
552
 
553
+ #: libs/blockcountry-settings.php:1074
554
  msgid "Pages"
555
  msgstr ""
556
 
557
+ #: libs/blockcountry-settings.php:1075
558
  msgid "Categories"
559
  msgstr ""
560
 
561
+ #: libs/blockcountry-settings.php:1076
562
+ msgid "Post types"
563
+ msgstr ""
564
+
565
+ #: libs/blockcountry-settings.php:1077
566
  msgid "Search Engines"
567
  msgstr ""
568
 
569
+ #: libs/blockcountry-settings.php:1078
570
  msgid "Tools"
571
  msgstr ""
572
 
573
+ #: libs/blockcountry-settings.php:1079
574
  msgid "Logging"
575
  msgstr ""
576
 
577
+ #: libs/blockcountry-settings.php:1080
578
  msgid "Import/Export"
579
  msgstr ""
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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-12-22 21:40+0100\n"
5
- "PO-Revision-Date: 2014-12-22 21:43+0100\n"
6
  "Last-Translator: Pascal <pascal@redeo.nl>\n"
7
  "Language-Team: iQ Block Country <info@redeo.nl>\n"
8
  "Language: Dutch\n"
@@ -15,107 +15,143 @@ msgstr ""
15
  "X-Poedit-SearchPath-0: libs\n"
16
  "X-Poedit-SearchPath-1: .\n"
17
 
18
- #: libs/blockcountry-settings.php:136
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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:140
26
  msgid "IP Address to check:"
27
  msgstr "IP adres om te controleren:"
28
 
29
- #: libs/blockcountry-settings.php:150
30
  msgid "No country for"
31
  msgstr "Geen land voor"
32
 
33
- #: libs/blockcountry-settings.php:150
34
  msgid "could be found. Or"
35
  msgstr "gevonden. Of"
36
 
37
- #: libs/blockcountry-settings.php:150
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:155
42
  msgid "IP Adress"
43
  msgstr "IP Adres"
44
 
45
- #: libs/blockcountry-settings.php:155
46
  msgid "belongs to"
47
  msgstr "behoort tot"
48
 
49
- #: libs/blockcountry-settings.php:158
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:163
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:168
60
  msgid "This ip is present in the blacklist."
61
  msgstr "Dit ip adres staat op de zwarte lijst"
62
 
63
- #: libs/blockcountry-settings.php:173
64
  msgid "Check IP address"
65
  msgstr "Controleer IP adres"
66
 
67
- #: libs/blockcountry-settings.php:179
68
- msgid "Download GeoIP database"
69
- msgstr "Download GeoIP database"
70
-
71
- #: libs/blockcountry-settings.php:187
72
- msgid "Automatic update is not setup. Last update: "
73
- msgstr "Automatisch updaten is niet geconfigureerd. Laatste update:"
74
-
75
- #: libs/blockcountry-settings.php:192
76
- msgid "The GeoIP database is updated once a month. Last update: "
77
- msgstr ""
78
- "De GeoIP database wordt eenmaal per maand bijgewerkt. Laatste keer "
79
- "bijgewerkt:"
80
-
81
- #: libs/blockcountry-settings.php:194
82
- msgid "If you need a manual update please press buttons below to update."
83
- msgstr "Indien je handmatig wilt bijwerken druk je op de knoppen hier beneden."
84
-
85
- #: libs/blockcountry-settings.php:200
86
- msgid "Download new GeoIP IPv4 Database"
87
- msgstr "Download nieuwe GeoIP IPv4 database"
88
-
89
- #: libs/blockcountry-settings.php:207
90
- msgid "Download new GeoIP IPv6 Database"
91
- msgstr "Download nieuwe GeoIP IPv6 database"
92
-
93
- #: libs/blockcountry-settings.php:212 libs/blockcountry-settings.php:216
94
- msgid "Downloading..."
95
- msgstr "Downloading..."
96
-
97
- #: libs/blockcountry-settings.php:222
98
  msgid "Active plugins"
99
  msgstr "Actieve plugins"
100
 
101
- #: libs/blockcountry-settings.php:229
102
  msgid "Plugin name"
103
  msgstr "Plugin naam"
104
 
105
- #: libs/blockcountry-settings.php:229
106
  msgid "Version"
107
  msgstr "Versie"
108
 
109
- #: libs/blockcountry-settings.php:229 libs/blockcountry-settings.php:943
110
- #: libs/blockcountry-settings.php:986
111
  msgid "URL"
112
  msgstr "URL"
113
 
114
- #: libs/blockcountry-settings.php:254
115
  msgid "Export"
116
  msgstr "Exporteren"
117
 
118
- #: libs/blockcountry-settings.php:255
119
  msgid ""
120
  "When you click on <tt>Backup all settings</tt> button a backup of the iQ "
121
  "Block Country configuration will be created."
@@ -123,7 +159,7 @@ msgstr ""
123
  "Wanneer je klikt op de <tt>Backup alle instellingen</tt> knop zal een backup "
124
  "van alle iQ Block Country instellingen worden gecreerd."
125
 
126
- #: libs/blockcountry-settings.php:256
127
  msgid ""
128
  "After exporting, you can either use the backup file to restore your settings "
129
  "on this site again or copy the settings to another WordPress site."
@@ -132,95 +168,96 @@ msgstr ""
132
  "te herstellen of je kunt het bestand gebruiken om je instellingen naar een "
133
  "andere WordPress site te exporteren."
134
 
135
- #: libs/blockcountry-settings.php:260
136
  msgid "Backup all settings"
137
  msgstr "Backup alle instellingen"
138
 
139
- #: libs/blockcountry-settings.php:267
140
  msgid "Import"
141
  msgstr "Importeer"
142
 
143
- #: libs/blockcountry-settings.php:268
144
  msgid "Click the browse button and choose a zip file that you exported before."
145
  msgstr ""
146
  "Klik op de Browse button and selecteer een zip file welke je eerder hebt "
147
  "geexporteerd."
148
 
149
- #: libs/blockcountry-settings.php:269
150
  msgid "Press Restore settings button, and let WordPress do the magic for you."
151
  msgstr ""
152
  "Druk op de herstel instellingen knop en laat WordPress haar magie voor je "
153
  "doen."
154
 
155
- #: libs/blockcountry-settings.php:274
156
  msgid "Restore settings"
157
  msgstr "Herstel instellingen"
158
 
159
- #: libs/blockcountry-settings.php:297 libs/blockcountry-settings.php:300
160
- #: libs/blockcountry-settings.php:309
161
  msgid "Something went wrong exporting this file"
162
  msgstr "Er is iets verkeerd gegaan met het exporteren van het bestand."
163
 
164
- #: libs/blockcountry-settings.php:312
165
  msgid "Exporting settings..."
166
  msgstr "Exporteer instellingen"
167
 
168
- #: libs/blockcountry-settings.php:327
169
  msgid "Something went wrong importing this file"
170
  msgstr "Er is iets verkeerd gegaan met het importeren van dit bestand"
171
 
172
- #: libs/blockcountry-settings.php:344
173
  msgid "All options are restored successfully."
174
  msgstr "Alle opties zijn succesvol hersteld"
175
 
176
- #: libs/blockcountry-settings.php:347
177
  msgid "Invalid file."
178
  msgstr "Ongeldig bestand"
179
 
180
- #: libs/blockcountry-settings.php:352
181
  msgid "No correct import or export option given."
182
  msgstr "Geen correcte importeer of exporteer optie gegeven."
183
 
184
- #: libs/blockcountry-settings.php:361
185
  msgid "Select which pages are blocked."
186
  msgstr "Selecteer welke pagina's geblokkeerd worden."
187
 
188
- #: libs/blockcountry-settings.php:368
189
  msgid "Do you want to block individual pages:"
190
  msgstr "Wil je individuele pagina's blokkeren:"
191
 
192
- #: libs/blockcountry-settings.php:369
193
  msgid "If you do not select this option all pages will be blocked."
194
  msgstr "Indien je deze optie niet selecteert worden alle pagina's geblokkeerd."
195
 
196
- #: libs/blockcountry-settings.php:374
197
  msgid "Select pages you want to block:"
198
  msgstr "Selecteer welke pagina's je wil blokkeren."
199
 
200
- #: libs/blockcountry-settings.php:396 libs/blockcountry-settings.php:450
201
- #: libs/blockcountry-settings.php:493 libs/blockcountry-settings.php:614
202
- #: libs/blockcountry-settings.php:738 libs/blockcountry-settings.php:911
 
203
  msgid "Save Changes"
204
  msgstr "Bewaar wijzigingen"
205
 
206
- #: libs/blockcountry-settings.php:409
207
  msgid "Select which categories are blocked."
208
  msgstr "Selecteer welke categorieen geblokkeerd worden."
209
 
210
- #: libs/blockcountry-settings.php:416
211
  msgid "Do you want to block individual categories:"
212
  msgstr "Wil je individuele categorieen blokkeren:"
213
 
214
- #: libs/blockcountry-settings.php:417
215
  msgid "If you do not select this option all blog articles will be blocked."
216
  msgstr ""
217
  "Indien je deze optie niet selecteert worden alle blog artikelen geblokkeerd."
218
 
219
- #: libs/blockcountry-settings.php:422
220
  msgid "Do you want to block the homepage:"
221
  msgstr "Wil je je homepage blokkeren:"
222
 
223
- #: libs/blockcountry-settings.php:423
224
  msgid ""
225
  "If you do not select this option visitors will not be blocked from your "
226
  "homepage regardless of the categories you select."
@@ -229,19 +266,31 @@ msgstr ""
229
  "geblokkeerd van het bezoeken van je homepagina ongeacht welke categorieen je "
230
  "selecteert."
231
 
232
- #: libs/blockcountry-settings.php:428
233
  msgid "Select categories you want to block:"
234
  msgstr "Selecteer welke categorieen je wil blokkeren."
235
 
236
- #: libs/blockcountry-settings.php:463
 
 
 
 
 
 
 
 
 
 
 
 
237
  msgid "Select which search engines are allowed."
238
  msgstr "Selecteer welke zoek machines je wilt toestaan."
239
 
240
- #: libs/blockcountry-settings.php:470
241
  msgid "Select which search engines you want to allow:"
242
  msgstr "Selecteer welke zoek machines je wilt toestaan:"
243
 
244
- #: libs/blockcountry-settings.php:471
245
  msgid ""
246
  "This will allow a search engine to your site despite if you blocked the "
247
  "country."
@@ -249,66 +298,66 @@ msgstr ""
249
  "Deze optie staat het toe dat zoekmachines je site bezoeken ondanks dat ze "
250
  "uit een land komen welk geblokkeerd is."
251
 
252
- #: libs/blockcountry-settings.php:508
253
  msgid "Frontend options"
254
  msgstr "Voorkant opties"
255
 
256
- #: libs/blockcountry-settings.php:543
257
  msgid ""
258
  "Do not block visitors that are logged in from visiting frontend website:"
259
  msgstr ""
260
  "Blokkeer geen bezoekers welke ingelogd zijn van het bezoeken van de voorkant:"
261
 
262
- #: libs/blockcountry-settings.php:549
263
  msgid "Block visitors from visiting the frontend of your website:"
264
  msgstr "Blokkeer bezoekers van het bezoeken van de voorkant van je website:"
265
 
266
- #: libs/blockcountry-settings.php:555
267
  msgid ""
268
  "Select the countries that should be blocked from visiting your frontend:"
269
  msgstr ""
270
  "Selecteer de landen welke geblokkeerd moeten worden voor het bezoeken van de "
271
  "voorkant van je website:"
272
 
273
- #: libs/blockcountry-settings.php:556
274
  msgid "Use the CTRL key to select multiple countries"
275
  msgstr "Gebruik de CTRL toets om meerdere landen te selecteren"
276
 
277
- #: libs/blockcountry-settings.php:597
278
  msgid "Frontend whitelist IPv4 and/or IPv6 addresses:"
279
  msgstr ""
280
  "Whitelist van IPv4 of IPv6 IP adressen voor de voorkant van je website:"
281
 
282
- #: libs/blockcountry-settings.php:597 libs/blockcountry-settings.php:605
283
- #: libs/blockcountry-settings.php:721 libs/blockcountry-settings.php:729
284
  msgid "Use a semicolon (;) to separate IP addresses"
285
  msgstr "Gebruik een puntkomma (;) om adressen van elkaar te scheiden"
286
 
287
- #: libs/blockcountry-settings.php:605
288
  msgid "Frontend blacklist IPv4 and/or IPv6 addresses:"
289
  msgstr ""
290
  "Blacklist van IPv4 of IPv6 IP adressen voor de voorkant van je website:"
291
 
292
- #: libs/blockcountry-settings.php:634
293
  msgid "Backend Options"
294
  msgstr "Achterkant opties"
295
 
296
- #: libs/blockcountry-settings.php:668
297
  msgid ""
298
  "Block visitors from visiting the backend (administrator) of your website:"
299
  msgstr ""
300
  "Blokkeer bezoekers van het bezoeken van de achterkant (administratie "
301
  "gedeelte) van je website:"
302
 
303
- #: libs/blockcountry-settings.php:676
304
  msgid "Your IP address is"
305
  msgstr "Je IP adres is"
306
 
307
- #: libs/blockcountry-settings.php:676
308
  msgid "The country that is listed for this IP address is"
309
  msgstr "Het land waar dit adres toe behoort is"
310
 
311
- #: libs/blockcountry-settings.php:677
312
  msgid ""
313
  "Do <strong>NOT</strong> set the 'Block visitors from visiting the backend "
314
  "(administrator) of your website' and also select"
@@ -316,11 +365,11 @@ msgstr ""
316
  "Selecteer <strong>NIET</strong> \"Blokkeer bezoekers van het bezoeken van de "
317
  "achterkant (administratie gedeelte) van je website\" en"
318
 
319
- #: libs/blockcountry-settings.php:677
320
  msgid "below."
321
  msgstr "hier beneden."
322
 
323
- #: libs/blockcountry-settings.php:678
324
  msgid ""
325
  "You will NOT be able to login the next time if you DO block your own country "
326
  "from visiting the backend."
@@ -328,52 +377,52 @@ msgstr ""
328
  "Het zal daarna niet meer mogelijk zijn om nog in te loggen als je je eigen "
329
  "land blokkeert van het bezoeken van de achterkant van je website."
330
 
331
- #: libs/blockcountry-settings.php:683
332
  msgid "Select the countries that should be blocked from visiting your backend:"
333
  msgstr ""
334
  "Selecteer de landen welke geblokkeerd moeten worden voor het bezoeken van de "
335
  "achterkant (administratie gedeelte) van je website:"
336
 
337
- #: libs/blockcountry-settings.php:684
338
  msgid "Use the x behind the country to remove a country from this blocklist."
339
  msgstr ""
340
  "Gebruik de x achter een land om het land te verwijderen uit deze lijst."
341
 
342
- #: libs/blockcountry-settings.php:721
343
  msgid "Backend whitelist IPv4 and/or IPv6 addresses:"
344
  msgstr ""
345
  "Whitelist van IPv4 of IPv6 IP adressen voor de achterkant van je website:"
346
 
347
- #: libs/blockcountry-settings.php:729
348
  msgid "Backend blacklist IPv4 and/or IPv6 addresses:"
349
  msgstr ""
350
  "Blacklist van IPv4 of IPv6 IP adressen voor de achterkant van je website:"
351
 
352
- #: libs/blockcountry-settings.php:759
353
  msgid "Overall statistics since start"
354
  msgstr "Statistieken sinds het begin"
355
 
356
- #: libs/blockcountry-settings.php:762
357
  msgid "visitors blocked from the backend."
358
  msgstr "bezoekers geblokkeerd op de achterkant."
359
 
360
- #: libs/blockcountry-settings.php:764
361
  msgid "visitors blocked from the frontend."
362
  msgstr "bezoekers geblokkeerd op de voorkant."
363
 
364
- #: libs/blockcountry-settings.php:768
365
  msgid "Basic Options"
366
  msgstr "Standaard opties"
367
 
368
- #: libs/blockcountry-settings.php:803
369
  msgid "Message to display when people are blocked:"
370
  msgstr "Welk bericht wil je tonen aan bezoekers welke geblokkeerd worden:"
371
 
372
- #: libs/blockcountry-settings.php:813
373
  msgid "Page to redirect to:"
374
  msgstr "Naar welke pagina wilt u bezoekers toesturen:"
375
 
376
- #: libs/blockcountry-settings.php:814
377
  msgid ""
378
  "If you select a page here blocked visitors will be redirected to this page "
379
  "instead of displaying above block message."
@@ -382,15 +431,15 @@ msgstr ""
382
  "doorgestuurd naar deze pagina anders wordt bovestaande tekst getoond aan "
383
  "bezoekers."
384
 
385
- #: libs/blockcountry-settings.php:820
386
  msgid "Choose a page..."
387
  msgstr "Kies een pagina..."
388
 
389
- #: libs/blockcountry-settings.php:835
390
  msgid "Send headers when user is blocked:"
391
  msgstr "Stuur headers wanneer een gebruiker is geblokkeerd:"
392
 
393
- #: libs/blockcountry-settings.php:836
394
  msgid ""
395
  "Under normal circumstances you should keep this selected! Only if you have "
396
  "\"Cannot modify header information - headers already sent\" errors or if you "
@@ -400,11 +449,11 @@ msgstr ""
400
  "deze alleen indien je \"Cannot modify header information - headers already "
401
  "sent\" foutmeldingen krijgt of indien je weet wat je doet."
402
 
403
- #: libs/blockcountry-settings.php:842
404
  msgid "Buffer output?:"
405
  msgstr "Buffer output?"
406
 
407
- #: libs/blockcountry-settings.php:843
408
  msgid ""
409
  "You can use this option to buffer all output. This can be helpful in case "
410
  "you have \"headers already sent\" issues."
@@ -412,11 +461,11 @@ msgstr ""
412
  "Je kunt deze optie gebruiken om alle output te bufferen. Dit kan helpen "
413
  "indien je \"headers already sent\" problemen hebt."
414
 
415
- #: libs/blockcountry-settings.php:849
416
  msgid "Do not log IP addresses:"
417
  msgstr "Log geen IP adressen"
418
 
419
- #: libs/blockcountry-settings.php:850
420
  msgid ""
421
  "Check this box if the laws in your country do not permit you to log IP "
422
  "addresses or if you do not want to log the ip addresses."
@@ -425,19 +474,19 @@ msgstr ""
425
  "adressen vast te leggen of indien je zelf deze informatie niet wilt "
426
  "vastleggen."
427
 
428
- #: libs/blockcountry-settings.php:857
429
  msgid "Number of rows on statistics page:"
430
  msgstr "Aantal regels op de statistieken pagina:"
431
 
432
- #: libs/blockcountry-settings.php:858
433
  msgid "How many rows do you want to display on each tab the statistics page."
434
  msgstr "Hoeveel regels wil je tonen op de statistieken pagina."
435
 
436
- #: libs/blockcountry-settings.php:873
437
  msgid "Allow tracking:"
438
  msgstr "Sta traceren toe:"
439
 
440
- #: libs/blockcountry-settings.php:874
441
  msgid ""
442
  "This sends only the IP address and the number of attempts this ip address "
443
  "tried to login to your backend and was blocked doing so to a central server. "
@@ -450,11 +499,25 @@ msgstr ""
450
  "ons om beter inzicht te krijgen in de landen waarvandaan een hoop hack "
451
  "pogingen worden gedaan. "
452
 
453
- #: libs/blockcountry-settings.php:880
454
- msgid "API Key:"
455
- msgstr "API Key:"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
456
 
457
- #: libs/blockcountry-settings.php:881
458
  msgid ""
459
  "This is an experimantal feature. You do not need an API key for this plugin "
460
  "to work."
@@ -462,11 +525,11 @@ msgstr ""
462
  "Dit is een experimentele optie. Je hebt geen API key nodig om deze plugin te "
463
  "laten werken."
464
 
465
- #: libs/blockcountry-settings.php:888
466
  msgid "Log all visits to the backend:"
467
  msgstr "Log alle bezoekers op de achterkant:"
468
 
469
- #: libs/blockcountry-settings.php:889
470
  msgid ""
471
  "This logs all visits to the backend despite if they are blocked or not. This "
472
  "is mainly for debugging purposes."
@@ -474,89 +537,78 @@ msgstr ""
474
  "Dit logt alle bezoeken aan de achterkant ongeacht of de bezoeker werd "
475
  "geblokkeerd of niet. Dit is voornamelijk bedoeld voor fout opsporing."
476
 
477
- #: libs/blockcountry-settings.php:896
478
- msgid "Auto update GeoIP Database:"
479
- msgstr "Automatisch updaten GeoIP Database:"
480
-
481
- #: libs/blockcountry-settings.php:897
482
- msgid ""
483
- "Selecting this makes sure that the GeoIP database is downloaded once a month."
484
- msgstr ""
485
- "Deze optie selecteren zorgt er voor dat de GeoIP Database automatisch "
486
- "maandelijks wordt bijgewerkt."
487
-
488
- #: libs/blockcountry-settings.php:903
489
  msgid "Accessibility options:"
490
  msgstr "Toegankelijkheids opties:"
491
 
492
- #: libs/blockcountry-settings.php:904
493
  msgid "Set this option if you cannot use the default country selection box."
494
  msgstr ""
495
  "Selecteer deze optie indien je de landen standaard selectie methode niet "
496
  "kunt gebruiken. "
497
 
498
- #: libs/blockcountry-settings.php:929
499
  msgid "Last blocked visits"
500
  msgstr "Laatste geblokkeerde bezoekers"
501
 
502
- #: libs/blockcountry-settings.php:943
503
  msgid "Date / Time"
504
  msgstr "Datum / Tijd"
505
 
506
- #: libs/blockcountry-settings.php:943 libs/blockcountry-settings.php:975
507
  msgid "IP Address"
508
  msgstr "IP adres"
509
 
510
- #: libs/blockcountry-settings.php:943 libs/blockcountry-settings.php:975
511
  msgid "Hostname"
512
  msgstr "Hostnaam"
513
 
514
- #: libs/blockcountry-settings.php:943 libs/blockcountry-settings.php:962
515
  msgid "Country"
516
  msgstr "Land"
517
 
518
- #: libs/blockcountry-settings.php:943
519
  msgid "Frontend/Backend"
520
  msgstr "Voorkant/Achterkant"
521
 
522
- #: libs/blockcountry-settings.php:953 libs/blockcountry-settings.php:1037
523
  msgid "Frontend"
524
  msgstr "Voorkant"
525
 
526
- #: libs/blockcountry-settings.php:953
527
  msgid "Backend banlist"
528
  msgstr "Achterkant banlist"
529
 
530
- #: libs/blockcountry-settings.php:953
531
  msgid "Backend & Backend banlist"
532
  msgstr "Achterkant & Achterkant banlist"
533
 
534
- #: libs/blockcountry-settings.php:953 libs/blockcountry-settings.php:1038
535
  msgid "Backend"
536
  msgstr "Achterkant"
537
 
538
- #: libs/blockcountry-settings.php:960
539
  msgid "Top countries that are blocked"
540
  msgstr "Top landen welke zijn geblokkeerd"
541
 
542
- #: libs/blockcountry-settings.php:962 libs/blockcountry-settings.php:975
543
- #: libs/blockcountry-settings.php:986
544
  msgid "# of blocked attempts"
545
  msgstr "# of geblokkeerde pogingen"
546
 
547
- #: libs/blockcountry-settings.php:973
548
  msgid "Top hosts that are blocked"
549
  msgstr "Top hosts welke geblokkeerd zijn"
550
 
551
- #: libs/blockcountry-settings.php:984
552
  msgid "Top URLs that are blocked"
553
  msgstr "Top URLs welke geblokkeerd zijn"
554
 
555
- #: libs/blockcountry-settings.php:998
556
  msgid "Clear database"
557
  msgstr "Leeg database"
558
 
559
- #: libs/blockcountry-settings.php:1014
560
  msgid ""
561
  "You are not logging any information. Please uncheck the option 'Do not log "
562
  "IP addresses' if this is not what you want."
@@ -564,78 +616,71 @@ msgstr ""
564
  "Je logt geen informatie. Deselecteer alstublieft de optie 'Log geen IP "
565
  "adressen' indien dit niet is wat je wilt."
566
 
567
- #: libs/blockcountry-settings.php:1036
568
  msgid "Home"
569
  msgstr "Home"
570
 
571
- #: libs/blockcountry-settings.php:1039
572
  msgid "Pages"
573
  msgstr "Pagina's"
574
 
575
- #: libs/blockcountry-settings.php:1040
576
  msgid "Categories"
577
  msgstr "Categorieen"
578
 
579
- #: libs/blockcountry-settings.php:1041
 
 
 
 
580
  msgid "Search Engines"
581
  msgstr "Zoek machines"
582
 
583
- #: libs/blockcountry-settings.php:1042
584
  msgid "Tools"
585
  msgstr "Gereedschap"
586
 
587
- #: libs/blockcountry-settings.php:1043
588
  msgid "Logging"
589
  msgstr "Statistieken"
590
 
591
- #: libs/blockcountry-settings.php:1044
592
  msgid "Import/Export"
593
  msgstr "Importeren/Exporteren"
594
 
595
- #: libs/blockcountry-settings.php:1098
596
- msgid "GeoIP database does not exists. Trying to download it..."
597
- msgstr "GeoIP database bestaat niet. Probeer om nieuwe versie te downloaden"
598
 
599
- #: libs/blockcountry-retrieve-geodb.php:38
600
- #: libs/blockcountry-retrieve-geodb.php:49
601
- msgid "Error occured: Could not download the GeoIP database from"
602
- msgstr "Uh oh: Kon de GeoIP database niet downloaden van"
603
 
604
- #: libs/blockcountry-retrieve-geodb.php:39
605
- msgid ""
606
- "MaxMind has blocked requests from your IP address for 24 hours. Please check "
607
- "again in 24 hours or download this file from your own PC"
608
- msgstr ""
609
- "MaxMind heeft alle verzoeken vanaf dit IP adres voor 24 uur geblokkeerd. "
610
- "Controleer nogmaals na 24 uur of download dit bestand via je eigen pc"
611
 
612
- #: libs/blockcountry-retrieve-geodb.php:40
613
- msgid "Unzip this file and upload it (via FTP for instance) to:"
614
- msgstr "Pak dit bestand uit en upload deze (via FTP bijvoorbeeld) naar:"
615
 
616
- #: libs/blockcountry-retrieve-geodb.php:50
617
- msgid ""
618
- "Please download this file from your own PC unzip this file and upload it "
619
- "(via FTP for instance) to:"
620
- msgstr ""
621
- "Download dit bestand alsjeblieft naar je eigen PC. Pak het bestand daar uit "
622
- "en upload deze (bijvoorbeeld via FTP) naar:"
623
 
624
- #: libs/blockcountry-retrieve-geodb.php:77
625
- msgid "Finished downloading"
626
- msgstr "Klaar met downloaden"
627
 
628
- #: libs/blockcountry-retrieve-geodb.php:85
629
- msgid "Fatal error: GeoIP"
630
- msgstr "Fatale fout: GeoIP"
631
 
632
- #: libs/blockcountry-retrieve-geodb.php:85
633
- msgid ""
634
- "database does not exists. This plugin will not work until the database file "
635
- "is present."
636
- msgstr ""
637
- "database bestaat niet. Deze plugin kan niet werken totdat deze database "
638
- "beschikbaar is."
 
 
639
 
640
  #~ msgid "Statistics"
641
  #~ msgstr "Statistieken"
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: iQ Block Country\n"
4
+ "POT-Creation-Date: 2015-03-04 13:37+0100\n"
5
+ "PO-Revision-Date: 2015-03-04 13:41+0100\n"
6
  "Last-Translator: Pascal <pascal@redeo.nl>\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-retrieve-geodb.php:38
19
+ #: libs/blockcountry-retrieve-geodb.php:49
20
+ msgid "Error occured: Could not download the GeoIP database from"
21
+ msgstr "Uh oh: Kon de GeoIP database niet downloaden van"
22
+
23
+ #: libs/blockcountry-retrieve-geodb.php:39
24
+ msgid ""
25
+ "MaxMind has blocked requests from your IP address for 24 hours. Please check "
26
+ "again in 24 hours or download this file from your own PC"
27
+ msgstr ""
28
+ "MaxMind heeft alle verzoeken vanaf dit IP adres voor 24 uur geblokkeerd. "
29
+ "Controleer nogmaals na 24 uur of download dit bestand via je eigen pc"
30
+
31
+ #: libs/blockcountry-retrieve-geodb.php:40
32
+ msgid "Unzip this file and upload it (via FTP for instance) to:"
33
+ msgstr "Pak dit bestand uit en upload deze (via FTP bijvoorbeeld) naar:"
34
+
35
+ #: libs/blockcountry-retrieve-geodb.php:50
36
+ msgid ""
37
+ "Please download this file from your own PC unzip this file and upload it "
38
+ "(via FTP for instance) to:"
39
+ msgstr ""
40
+ "Download dit bestand alsjeblieft naar je eigen PC. Pak het bestand daar uit "
41
+ "en upload deze (bijvoorbeeld via FTP) naar:"
42
+
43
+ #: libs/blockcountry-retrieve-geodb.php:77
44
+ msgid "Finished downloading"
45
+ msgstr "Klaar met downloaden"
46
+
47
+ #: libs/blockcountry-retrieve-geodb.php:85
48
+ msgid "Fatal error: GeoIP"
49
+ msgstr "Fatale fout: GeoIP"
50
+
51
+ #: libs/blockcountry-retrieve-geodb.php:85
52
+ msgid ""
53
+ "database does not exists. This plugin will not work until the database file "
54
+ "is present."
55
+ msgstr ""
56
+ "database bestaat niet. Deze plugin kan niet werken totdat deze database "
57
+ "beschikbaar is."
58
+
59
+ #: libs/blockcountry-settings.php:16
60
+ msgid ""
61
+ "The MaxMind GeoIP database does not exist. Please download this file "
62
+ "manually or if you wish to use the GeoIP API get an API key from: "
63
+ msgstr ""
64
+ "De MaxMind GeoIP database bestaat niet. Download dit bestand handmatig of "
65
+ "indien je gebruik wilt maken van de GeoIP API kun je een API key verkrijgen "
66
+ "van:"
67
+
68
+ #: libs/blockcountry-settings.php:17
69
+ msgid "Please download the database from: "
70
+ msgstr "Download de database vanaf:"
71
+
72
+ #: libs/blockcountry-settings.php:19 libs/blockcountry-settings.php:24
73
+ msgid "and upload it to the following location: "
74
+ msgstr "en upload dit bestand naar de volgende locatie:"
75
+
76
+ #: libs/blockcountry-settings.php:22
77
+ msgid "If you also use IPv6 please also download the database from: "
78
+ msgstr "Indien je ook IPv6 gebruikt download dan a.u.b. ook de IPv6 database:"
79
+
80
+ #: libs/blockcountry-settings.php:26
81
+ msgid "For more detailed instructions take a look at the documentation.."
82
+ msgstr "Voor gedetaileerde instructies bekijk de documentatie."
83
+
84
+ #: libs/blockcountry-settings.php:168
85
  msgid ""
86
  "Check which country belongs to an IP Address according to the current "
87
  "database."
88
  msgstr ""
89
  "Controleer welk land behoort tot een IP adres volgens de huidige database."
90
 
91
+ #: libs/blockcountry-settings.php:172
92
  msgid "IP Address to check:"
93
  msgstr "IP adres om te controleren:"
94
 
95
+ #: libs/blockcountry-settings.php:182
96
  msgid "No country for"
97
  msgstr "Geen land voor"
98
 
99
+ #: libs/blockcountry-settings.php:182
100
  msgid "could be found. Or"
101
  msgstr "gevonden. Of"
102
 
103
+ #: libs/blockcountry-settings.php:182
104
  msgid "is not a valid IPv4 or IPv6 IP address"
105
  msgstr "is geen valide IPv4 of IPv6 ip adres."
106
 
107
+ #: libs/blockcountry-settings.php:187
108
  msgid "IP Adress"
109
  msgstr "IP Adres"
110
 
111
+ #: libs/blockcountry-settings.php:187
112
  msgid "belongs to"
113
  msgstr "behoort tot"
114
 
115
+ #: libs/blockcountry-settings.php:190
116
  msgid "This country is not permitted to visit the frontend of this website."
117
  msgstr ""
118
  "Dit land wordt niet toegestaan om de voorkant van deze website te bezoeken."
119
 
120
+ #: libs/blockcountry-settings.php:195
121
  msgid "This country is not permitted to visit the backend of this website."
122
  msgstr ""
123
  "Dit land wordt niet toegestaan om de achterkant van deze website te bezoeken."
124
 
125
+ #: libs/blockcountry-settings.php:200
126
  msgid "This ip is present in the blacklist."
127
  msgstr "Dit ip adres staat op de zwarte lijst"
128
 
129
+ #: libs/blockcountry-settings.php:205
130
  msgid "Check IP address"
131
  msgstr "Controleer IP adres"
132
 
133
+ #: libs/blockcountry-settings.php:211
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
134
  msgid "Active plugins"
135
  msgstr "Actieve plugins"
136
 
137
+ #: libs/blockcountry-settings.php:218
138
  msgid "Plugin name"
139
  msgstr "Plugin naam"
140
 
141
+ #: libs/blockcountry-settings.php:218
142
  msgid "Version"
143
  msgstr "Versie"
144
 
145
+ #: libs/blockcountry-settings.php:218 libs/blockcountry-settings.php:978
146
+ #: libs/blockcountry-settings.php:1021
147
  msgid "URL"
148
  msgstr "URL"
149
 
150
+ #: libs/blockcountry-settings.php:243
151
  msgid "Export"
152
  msgstr "Exporteren"
153
 
154
+ #: libs/blockcountry-settings.php:244
155
  msgid ""
156
  "When you click on <tt>Backup all settings</tt> button a backup of the iQ "
157
  "Block Country configuration will be created."
159
  "Wanneer je klikt op de <tt>Backup alle instellingen</tt> knop zal een backup "
160
  "van alle iQ Block Country instellingen worden gecreerd."
161
 
162
+ #: libs/blockcountry-settings.php:245
163
  msgid ""
164
  "After exporting, you can either use the backup file to restore your settings "
165
  "on this site again or copy the settings to another WordPress site."
168
  "te herstellen of je kunt het bestand gebruiken om je instellingen naar een "
169
  "andere WordPress site te exporteren."
170
 
171
+ #: libs/blockcountry-settings.php:249
172
  msgid "Backup all settings"
173
  msgstr "Backup alle instellingen"
174
 
175
+ #: libs/blockcountry-settings.php:256
176
  msgid "Import"
177
  msgstr "Importeer"
178
 
179
+ #: libs/blockcountry-settings.php:257
180
  msgid "Click the browse button and choose a zip file that you exported before."
181
  msgstr ""
182
  "Klik op de Browse button and selecteer een zip file welke je eerder hebt "
183
  "geexporteerd."
184
 
185
+ #: libs/blockcountry-settings.php:258
186
  msgid "Press Restore settings button, and let WordPress do the magic for you."
187
  msgstr ""
188
  "Druk op de herstel instellingen knop en laat WordPress haar magie voor je "
189
  "doen."
190
 
191
+ #: libs/blockcountry-settings.php:263
192
  msgid "Restore settings"
193
  msgstr "Herstel instellingen"
194
 
195
+ #: libs/blockcountry-settings.php:286 libs/blockcountry-settings.php:289
196
+ #: libs/blockcountry-settings.php:298
197
  msgid "Something went wrong exporting this file"
198
  msgstr "Er is iets verkeerd gegaan met het exporteren van het bestand."
199
 
200
+ #: libs/blockcountry-settings.php:301
201
  msgid "Exporting settings..."
202
  msgstr "Exporteer instellingen"
203
 
204
+ #: libs/blockcountry-settings.php:316
205
  msgid "Something went wrong importing this file"
206
  msgstr "Er is iets verkeerd gegaan met het importeren van dit bestand"
207
 
208
+ #: libs/blockcountry-settings.php:333
209
  msgid "All options are restored successfully."
210
  msgstr "Alle opties zijn succesvol hersteld"
211
 
212
+ #: libs/blockcountry-settings.php:336
213
  msgid "Invalid file."
214
  msgstr "Ongeldig bestand"
215
 
216
+ #: libs/blockcountry-settings.php:341
217
  msgid "No correct import or export option given."
218
  msgstr "Geen correcte importeer of exporteer optie gegeven."
219
 
220
+ #: libs/blockcountry-settings.php:350
221
  msgid "Select which pages are blocked."
222
  msgstr "Selecteer welke pagina's geblokkeerd worden."
223
 
224
+ #: libs/blockcountry-settings.php:357
225
  msgid "Do you want to block individual pages:"
226
  msgstr "Wil je individuele pagina's blokkeren:"
227
 
228
+ #: libs/blockcountry-settings.php:358
229
  msgid "If you do not select this option all pages will be blocked."
230
  msgstr "Indien je deze optie niet selecteert worden alle pagina's geblokkeerd."
231
 
232
+ #: libs/blockcountry-settings.php:363
233
  msgid "Select pages you want to block:"
234
  msgstr "Selecteer welke pagina's je wil blokkeren."
235
 
236
+ #: libs/blockcountry-settings.php:385 libs/blockcountry-settings.php:439
237
+ #: libs/blockcountry-settings.php:488 libs/blockcountry-settings.php:533
238
+ #: libs/blockcountry-settings.php:649 libs/blockcountry-settings.php:773
239
+ #: libs/blockcountry-settings.php:946
240
  msgid "Save Changes"
241
  msgstr "Bewaar wijzigingen"
242
 
243
+ #: libs/blockcountry-settings.php:398
244
  msgid "Select which categories are blocked."
245
  msgstr "Selecteer welke categorieen geblokkeerd worden."
246
 
247
+ #: libs/blockcountry-settings.php:405
248
  msgid "Do you want to block individual categories:"
249
  msgstr "Wil je individuele categorieen blokkeren:"
250
 
251
+ #: libs/blockcountry-settings.php:406
252
  msgid "If you do not select this option all blog articles will be blocked."
253
  msgstr ""
254
  "Indien je deze optie niet selecteert worden alle blog artikelen geblokkeerd."
255
 
256
+ #: libs/blockcountry-settings.php:411
257
  msgid "Do you want to block the homepage:"
258
  msgstr "Wil je je homepage blokkeren:"
259
 
260
+ #: libs/blockcountry-settings.php:412
261
  msgid ""
262
  "If you do not select this option visitors will not be blocked from your "
263
  "homepage regardless of the categories you select."
266
  "geblokkeerd van het bezoeken van je homepagina ongeacht welke categorieen je "
267
  "selecteert."
268
 
269
+ #: libs/blockcountry-settings.php:417
270
  msgid "Select categories you want to block:"
271
  msgstr "Selecteer welke categorieen je wil blokkeren."
272
 
273
+ #: libs/blockcountry-settings.php:453
274
+ msgid "Select which post types are blocked."
275
+ msgstr "Selecteer welke post types geblokkeerd worden."
276
+
277
+ #: libs/blockcountry-settings.php:460
278
+ msgid "Do you want to block individual post types:"
279
+ msgstr "Wil je individuele post types blokkeren:"
280
+
281
+ #: libs/blockcountry-settings.php:465
282
+ msgid "Select post types you want to block:"
283
+ msgstr "Selecteer welke post types je wil blokkeren."
284
+
285
+ #: libs/blockcountry-settings.php:503
286
  msgid "Select which search engines are allowed."
287
  msgstr "Selecteer welke zoek machines je wilt toestaan."
288
 
289
+ #: libs/blockcountry-settings.php:510
290
  msgid "Select which search engines you want to allow:"
291
  msgstr "Selecteer welke zoek machines je wilt toestaan:"
292
 
293
+ #: libs/blockcountry-settings.php:511
294
  msgid ""
295
  "This will allow a search engine to your site despite if you blocked the "
296
  "country."
298
  "Deze optie staat het toe dat zoekmachines je site bezoeken ondanks dat ze "
299
  "uit een land komen welk geblokkeerd is."
300
 
301
+ #: libs/blockcountry-settings.php:548
302
  msgid "Frontend options"
303
  msgstr "Voorkant opties"
304
 
305
+ #: libs/blockcountry-settings.php:582
306
  msgid ""
307
  "Do not block visitors that are logged in from visiting frontend website:"
308
  msgstr ""
309
  "Blokkeer geen bezoekers welke ingelogd zijn van het bezoeken van de voorkant:"
310
 
311
+ #: libs/blockcountry-settings.php:588
312
  msgid "Block visitors from visiting the frontend of your website:"
313
  msgstr "Blokkeer bezoekers van het bezoeken van de voorkant van je website:"
314
 
315
+ #: libs/blockcountry-settings.php:594
316
  msgid ""
317
  "Select the countries that should be blocked from visiting your frontend:"
318
  msgstr ""
319
  "Selecteer de landen welke geblokkeerd moeten worden voor het bezoeken van de "
320
  "voorkant van je website:"
321
 
322
+ #: libs/blockcountry-settings.php:595
323
  msgid "Use the CTRL key to select multiple countries"
324
  msgstr "Gebruik de CTRL toets om meerdere landen te selecteren"
325
 
326
+ #: libs/blockcountry-settings.php:632
327
  msgid "Frontend whitelist IPv4 and/or IPv6 addresses:"
328
  msgstr ""
329
  "Whitelist van IPv4 of IPv6 IP adressen voor de voorkant van je website:"
330
 
331
+ #: libs/blockcountry-settings.php:632 libs/blockcountry-settings.php:640
332
+ #: libs/blockcountry-settings.php:756 libs/blockcountry-settings.php:764
333
  msgid "Use a semicolon (;) to separate IP addresses"
334
  msgstr "Gebruik een puntkomma (;) om adressen van elkaar te scheiden"
335
 
336
+ #: libs/blockcountry-settings.php:640
337
  msgid "Frontend blacklist IPv4 and/or IPv6 addresses:"
338
  msgstr ""
339
  "Blacklist van IPv4 of IPv6 IP adressen voor de voorkant van je website:"
340
 
341
+ #: libs/blockcountry-settings.php:669
342
  msgid "Backend Options"
343
  msgstr "Achterkant opties"
344
 
345
+ #: libs/blockcountry-settings.php:703
346
  msgid ""
347
  "Block visitors from visiting the backend (administrator) of your website:"
348
  msgstr ""
349
  "Blokkeer bezoekers van het bezoeken van de achterkant (administratie "
350
  "gedeelte) van je website:"
351
 
352
+ #: libs/blockcountry-settings.php:711
353
  msgid "Your IP address is"
354
  msgstr "Je IP adres is"
355
 
356
+ #: libs/blockcountry-settings.php:711
357
  msgid "The country that is listed for this IP address is"
358
  msgstr "Het land waar dit adres toe behoort is"
359
 
360
+ #: libs/blockcountry-settings.php:712
361
  msgid ""
362
  "Do <strong>NOT</strong> set the 'Block visitors from visiting the backend "
363
  "(administrator) of your website' and also select"
365
  "Selecteer <strong>NIET</strong> \"Blokkeer bezoekers van het bezoeken van de "
366
  "achterkant (administratie gedeelte) van je website\" en"
367
 
368
+ #: libs/blockcountry-settings.php:712
369
  msgid "below."
370
  msgstr "hier beneden."
371
 
372
+ #: libs/blockcountry-settings.php:713
373
  msgid ""
374
  "You will NOT be able to login the next time if you DO block your own country "
375
  "from visiting the backend."
377
  "Het zal daarna niet meer mogelijk zijn om nog in te loggen als je je eigen "
378
  "land blokkeert van het bezoeken van de achterkant van je website."
379
 
380
+ #: libs/blockcountry-settings.php:718
381
  msgid "Select the countries that should be blocked from visiting your backend:"
382
  msgstr ""
383
  "Selecteer de landen welke geblokkeerd moeten worden voor het bezoeken van de "
384
  "achterkant (administratie gedeelte) van je website:"
385
 
386
+ #: libs/blockcountry-settings.php:719
387
  msgid "Use the x behind the country to remove a country from this blocklist."
388
  msgstr ""
389
  "Gebruik de x achter een land om het land te verwijderen uit deze lijst."
390
 
391
+ #: libs/blockcountry-settings.php:756
392
  msgid "Backend whitelist IPv4 and/or IPv6 addresses:"
393
  msgstr ""
394
  "Whitelist van IPv4 of IPv6 IP adressen voor de achterkant van je website:"
395
 
396
+ #: libs/blockcountry-settings.php:764
397
  msgid "Backend blacklist IPv4 and/or IPv6 addresses:"
398
  msgstr ""
399
  "Blacklist van IPv4 of IPv6 IP adressen voor de achterkant van je website:"
400
 
401
+ #: libs/blockcountry-settings.php:794
402
  msgid "Overall statistics since start"
403
  msgstr "Statistieken sinds het begin"
404
 
405
+ #: libs/blockcountry-settings.php:797
406
  msgid "visitors blocked from the backend."
407
  msgstr "bezoekers geblokkeerd op de achterkant."
408
 
409
+ #: libs/blockcountry-settings.php:799
410
  msgid "visitors blocked from the frontend."
411
  msgstr "bezoekers geblokkeerd op de voorkant."
412
 
413
+ #: libs/blockcountry-settings.php:803
414
  msgid "Basic Options"
415
  msgstr "Standaard opties"
416
 
417
+ #: libs/blockcountry-settings.php:838
418
  msgid "Message to display when people are blocked:"
419
  msgstr "Welk bericht wil je tonen aan bezoekers welke geblokkeerd worden:"
420
 
421
+ #: libs/blockcountry-settings.php:848
422
  msgid "Page to redirect to:"
423
  msgstr "Naar welke pagina wilt u bezoekers toesturen:"
424
 
425
+ #: libs/blockcountry-settings.php:849
426
  msgid ""
427
  "If you select a page here blocked visitors will be redirected to this page "
428
  "instead of displaying above block message."
431
  "doorgestuurd naar deze pagina anders wordt bovestaande tekst getoond aan "
432
  "bezoekers."
433
 
434
+ #: libs/blockcountry-settings.php:855
435
  msgid "Choose a page..."
436
  msgstr "Kies een pagina..."
437
 
438
+ #: libs/blockcountry-settings.php:870
439
  msgid "Send headers when user is blocked:"
440
  msgstr "Stuur headers wanneer een gebruiker is geblokkeerd:"
441
 
442
+ #: libs/blockcountry-settings.php:871
443
  msgid ""
444
  "Under normal circumstances you should keep this selected! Only if you have "
445
  "\"Cannot modify header information - headers already sent\" errors or if you "
449
  "deze alleen indien je \"Cannot modify header information - headers already "
450
  "sent\" foutmeldingen krijgt of indien je weet wat je doet."
451
 
452
+ #: libs/blockcountry-settings.php:877
453
  msgid "Buffer output?:"
454
  msgstr "Buffer output?"
455
 
456
+ #: libs/blockcountry-settings.php:878
457
  msgid ""
458
  "You can use this option to buffer all output. This can be helpful in case "
459
  "you have \"headers already sent\" issues."
461
  "Je kunt deze optie gebruiken om alle output te bufferen. Dit kan helpen "
462
  "indien je \"headers already sent\" problemen hebt."
463
 
464
+ #: libs/blockcountry-settings.php:884
465
  msgid "Do not log IP addresses:"
466
  msgstr "Log geen IP adressen"
467
 
468
+ #: libs/blockcountry-settings.php:885
469
  msgid ""
470
  "Check this box if the laws in your country do not permit you to log IP "
471
  "addresses or if you do not want to log the ip addresses."
474
  "adressen vast te leggen of indien je zelf deze informatie niet wilt "
475
  "vastleggen."
476
 
477
+ #: libs/blockcountry-settings.php:892
478
  msgid "Number of rows on statistics page:"
479
  msgstr "Aantal regels op de statistieken pagina:"
480
 
481
+ #: libs/blockcountry-settings.php:893
482
  msgid "How many rows do you want to display on each tab the statistics page."
483
  msgstr "Hoeveel regels wil je tonen op de statistieken pagina."
484
 
485
+ #: libs/blockcountry-settings.php:908
486
  msgid "Allow tracking:"
487
  msgstr "Sta traceren toe:"
488
 
489
+ #: libs/blockcountry-settings.php:909
490
  msgid ""
491
  "This sends only the IP address and the number of attempts this ip address "
492
  "tried to login to your backend and was blocked doing so to a central server. "
499
  "ons om beter inzicht te krijgen in de landen waarvandaan een hoop hack "
500
  "pogingen worden gedaan. "
501
 
502
+ #: libs/blockcountry-settings.php:915
503
+ msgid "GeoIP API Key:"
504
+ msgstr "GeoIP API Key:"
505
+
506
+ #: libs/blockcountry-settings.php:916
507
+ msgid ""
508
+ "If for some reason you cannot or do not want to download the MaxMind GeoIP "
509
+ "databases you will need an API key for the GeoIP api.<br />You can get an "
510
+ "API key from: "
511
+ msgstr ""
512
+ "Indien je om een willekeurige reden geen gebruik kunt of wilt maken van de "
513
+ "Maxmind GeoIP heb je een API key nodig voor de GeoIP api.<br />Je kunt een "
514
+ "API key verkrijgen op:"
515
+
516
+ #: libs/blockcountry-settings.php:922
517
+ msgid "Admin block API Key:"
518
+ msgstr "Admin block API Key:"
519
 
520
+ #: libs/blockcountry-settings.php:923
521
  msgid ""
522
  "This is an experimantal feature. You do not need an API key for this plugin "
523
  "to work."
525
  "Dit is een experimentele optie. Je hebt geen API key nodig om deze plugin te "
526
  "laten werken."
527
 
528
+ #: libs/blockcountry-settings.php:930
529
  msgid "Log all visits to the backend:"
530
  msgstr "Log alle bezoekers op de achterkant:"
531
 
532
+ #: libs/blockcountry-settings.php:931
533
  msgid ""
534
  "This logs all visits to the backend despite if they are blocked or not. This "
535
  "is mainly for debugging purposes."
537
  "Dit logt alle bezoeken aan de achterkant ongeacht of de bezoeker werd "
538
  "geblokkeerd of niet. Dit is voornamelijk bedoeld voor fout opsporing."
539
 
540
+ #: libs/blockcountry-settings.php:938
 
 
 
 
 
 
 
 
 
 
 
541
  msgid "Accessibility options:"
542
  msgstr "Toegankelijkheids opties:"
543
 
544
+ #: libs/blockcountry-settings.php:939
545
  msgid "Set this option if you cannot use the default country selection box."
546
  msgstr ""
547
  "Selecteer deze optie indien je de landen standaard selectie methode niet "
548
  "kunt gebruiken. "
549
 
550
+ #: libs/blockcountry-settings.php:964
551
  msgid "Last blocked visits"
552
  msgstr "Laatste geblokkeerde bezoekers"
553
 
554
+ #: libs/blockcountry-settings.php:978
555
  msgid "Date / Time"
556
  msgstr "Datum / Tijd"
557
 
558
+ #: libs/blockcountry-settings.php:978 libs/blockcountry-settings.php:1010
559
  msgid "IP Address"
560
  msgstr "IP adres"
561
 
562
+ #: libs/blockcountry-settings.php:978 libs/blockcountry-settings.php:1010
563
  msgid "Hostname"
564
  msgstr "Hostnaam"
565
 
566
+ #: libs/blockcountry-settings.php:978 libs/blockcountry-settings.php:997
567
  msgid "Country"
568
  msgstr "Land"
569
 
570
+ #: libs/blockcountry-settings.php:978
571
  msgid "Frontend/Backend"
572
  msgstr "Voorkant/Achterkant"
573
 
574
+ #: libs/blockcountry-settings.php:988 libs/blockcountry-settings.php:1072
575
  msgid "Frontend"
576
  msgstr "Voorkant"
577
 
578
+ #: libs/blockcountry-settings.php:988
579
  msgid "Backend banlist"
580
  msgstr "Achterkant banlist"
581
 
582
+ #: libs/blockcountry-settings.php:988
583
  msgid "Backend & Backend banlist"
584
  msgstr "Achterkant & Achterkant banlist"
585
 
586
+ #: libs/blockcountry-settings.php:988 libs/blockcountry-settings.php:1073
587
  msgid "Backend"
588
  msgstr "Achterkant"
589
 
590
+ #: libs/blockcountry-settings.php:995
591
  msgid "Top countries that are blocked"
592
  msgstr "Top landen welke zijn geblokkeerd"
593
 
594
+ #: libs/blockcountry-settings.php:997 libs/blockcountry-settings.php:1010
595
+ #: libs/blockcountry-settings.php:1021
596
  msgid "# of blocked attempts"
597
  msgstr "# of geblokkeerde pogingen"
598
 
599
+ #: libs/blockcountry-settings.php:1008
600
  msgid "Top hosts that are blocked"
601
  msgstr "Top hosts welke geblokkeerd zijn"
602
 
603
+ #: libs/blockcountry-settings.php:1019
604
  msgid "Top URLs that are blocked"
605
  msgstr "Top URLs welke geblokkeerd zijn"
606
 
607
+ #: libs/blockcountry-settings.php:1033
608
  msgid "Clear database"
609
  msgstr "Leeg database"
610
 
611
+ #: libs/blockcountry-settings.php:1049
612
  msgid ""
613
  "You are not logging any information. Please uncheck the option 'Do not log "
614
  "IP addresses' if this is not what you want."
616
  "Je logt geen informatie. Deselecteer alstublieft de optie 'Log geen IP "
617
  "adressen' indien dit niet is wat je wilt."
618
 
619
+ #: libs/blockcountry-settings.php:1071
620
  msgid "Home"
621
  msgstr "Home"
622
 
623
+ #: libs/blockcountry-settings.php:1074
624
  msgid "Pages"
625
  msgstr "Pagina's"
626
 
627
+ #: libs/blockcountry-settings.php:1075
628
  msgid "Categories"
629
  msgstr "Categorieen"
630
 
631
+ #: libs/blockcountry-settings.php:1076
632
+ msgid "Post types"
633
+ msgstr "Post types"
634
+
635
+ #: libs/blockcountry-settings.php:1077
636
  msgid "Search Engines"
637
  msgstr "Zoek machines"
638
 
639
+ #: libs/blockcountry-settings.php:1078
640
  msgid "Tools"
641
  msgstr "Gereedschap"
642
 
643
+ #: libs/blockcountry-settings.php:1079
644
  msgid "Logging"
645
  msgstr "Statistieken"
646
 
647
+ #: libs/blockcountry-settings.php:1080
648
  msgid "Import/Export"
649
  msgstr "Importeren/Exporteren"
650
 
651
+ #~ msgid "Automatic update is not setup. Last update: "
652
+ #~ msgstr "Automatisch updaten is niet geconfigureerd. Laatste update:"
 
653
 
654
+ #~ msgid "The GeoIP database is updated once a month. Last update: "
655
+ #~ msgstr ""
656
+ #~ "De GeoIP database wordt eenmaal per maand bijgewerkt. Laatste keer "
657
+ #~ "bijgewerkt:"
658
 
659
+ #~ msgid "If you need a manual update please press buttons below to update."
660
+ #~ msgstr ""
661
+ #~ "Indien je handmatig wilt bijwerken druk je op de knoppen hier beneden."
 
 
 
 
662
 
663
+ #~ msgid "Download new GeoIP IPv4 Database"
664
+ #~ msgstr "Download nieuwe GeoIP IPv4 database"
 
665
 
666
+ #~ msgid "Download new GeoIP IPv6 Database"
667
+ #~ msgstr "Download nieuwe GeoIP IPv6 database"
 
 
 
 
 
668
 
669
+ #~ msgid "Downloading..."
670
+ #~ msgstr "Downloading..."
 
671
 
672
+ #~ msgid "Auto update GeoIP Database:"
673
+ #~ msgstr "Automatisch updaten GeoIP Database:"
 
674
 
675
+ #~ msgid ""
676
+ #~ "Selecting this makes sure that the GeoIP database is downloaded once a "
677
+ #~ "month."
678
+ #~ msgstr ""
679
+ #~ "Deze optie selecteren zorgt er voor dat de GeoIP Database automatisch "
680
+ #~ "maandelijks wordt bijgewerkt."
681
+
682
+ #~ msgid "GeoIP database does not exists. Trying to download it..."
683
+ #~ msgstr "GeoIP database bestaat niet. Probeer om nieuwe versie te downloaden"
684
 
685
  #~ msgid "Statistics"
686
  #~ msgstr "Statistieken"
libs/blockcountry-checks.php CHANGED
@@ -34,53 +34,42 @@ function iqblockcountry_check_ipaddress($ip_address)
34
  }
35
  else { $country = "Unknown"; }
36
  }
 
 
 
 
37
  else { $country = "Unknown"; }
38
 
39
  return $country;
40
  }
41
 
42
-
43
- function iqblockcountry_check_city_ipaddress($ip_address)
 
 
44
  {
45
- if (!class_exists('GeoIP'))
46
- {
47
- include_once("geoip.inc");
 
 
 
 
 
 
 
 
 
 
 
 
 
48
  }
49
- include_once("geoipcity.inc");
50
- include_once("geoipregionvars.php");
51
-
52
- if ((file_exists ( IPV4DBFILE )) && function_exists('geoip_open')) {
53
-
54
- $ipv4 = FALSE;
55
- $ipv6 = FALSE;
56
- if (iqblockcountry_is_valid_ipv4($ip_address)) { $ipv4 = TRUE; }
57
- if (iqblockcountry_is_valid_ipv6($ip_address)) { $ipv6 = TRUE; }
58
-
59
- if ($ipv4)
60
- {
61
- $gi = geoip_open ( CITY4DBFILE, GEOIP_STANDARD );
62
- $record = geoip_record_by_addr ( $gi, $ip_address );
63
- geoip_close ( $gi );
64
- }
65
- elseif ($ipv6)
66
- {
67
- if (file_exists ( CITY6DBFILE )) {
68
- $gi = geoip_open(CITY6DBFILE,GEOIP_STANDARD);
69
- $record = GeoIP_record_by_addr_v6 ( $gi, $ip_address );
70
- geoip_close($gi);
71
- }
72
- else
73
- { $record = "Unknown";
74
- }
75
- }
76
- else { $record = "Unknown"; }
77
- }
78
- else { $record = "Unknown"; }
79
-
80
- return $record;
81
  }
82
 
83
 
 
84
  /*
85
  * Check country against bad countries, whitelist and blacklist
86
  */
@@ -90,6 +79,7 @@ function iqblockcountry_check($country,$badcountries,$ip_address)
90
  $blocked = FALSE;
91
  $blockedpage = get_option('blockcountry_blockpages');
92
  $blockedcategory = get_option('blockcountry_blockcategories');
 
93
 
94
  $frontendblacklistip = array(); $frontendblacklist = get_option ( 'blockcountry_frontendblacklist' );
95
  $frontendwhitelistip = array(); $frontendwhitelist = get_option ( 'blockcountry_frontendwhitelist' );
@@ -151,11 +141,24 @@ function iqblockcountry_check($country,$badcountries,$ip_address)
151
  $blocked = FALSE;
152
  }
153
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
154
 
155
  if (is_page() && $blockedpage == "on")
156
  {
157
  $blockedpages = get_option('blockcountry_pages');
158
- $frontendblacklist = get_option ( 'blockcountry_frontendblacklist' );
159
  if (is_page($blockedpages) && !empty($blockedpages) && ((is_array ( $badcountries ) && in_array ( $country, $badcountries ) || (is_array ( $frontendblacklistip ) && in_array ( $ip_address, $frontendblacklistip)))))
160
  {
161
  $blocked = TRUE;
@@ -224,8 +227,9 @@ function iqblockcountry_check($country,$badcountries,$ip_address)
224
  }
225
 
226
  /*
227
- * Does the real check of visitor IP against MaxMind database.
228
- * Looks up country in the Maxmind database and if needed blocks IP.
 
229
  */
230
  function iqblockcountry_CheckCountry() {
231
 
@@ -333,28 +337,4 @@ function iqblockcountry_is_login_page() {
333
  if ($pos !== false)
334
  { return TRUE; }
335
  else { return FALSE; }
336
- }
337
-
338
- /*
339
- * Check if Geo databases needs to be updated.
340
- */
341
- function iqblockcountry_checkupdatedb()
342
- {
343
- if (get_option('blockcountry_automaticupdate') == 'on')
344
- {
345
- $lastupdate = get_option('blockcountry_lastupdate');
346
- if (empty($lastupdate)) { $lastupdate = 0; }
347
- $time = $lastupdate + 86400 * 31;
348
-
349
- if(time() > $time)
350
- {
351
- iqblockcountry_downloadgeodatabase("4", false);
352
- iqblockcountry_downloadgeodatabase("6", false);
353
- update_option('blockcountry_lastupdate' , time());
354
- }
355
-
356
- if (! (file_exists ( IPV4DBFILE ))) { iqblockcountry_downloadgeodatabase("4", false); }
357
- if (! (file_exists ( IPV6DBFILE ))) { iqblockcountry_downloadgeodatabase("6", false); }
358
-
359
- }
360
- }
34
  }
35
  else { $country = "Unknown"; }
36
  }
37
+ elseif (get_option('blockcountry_geoapikey'))
38
+ {
39
+ $country = iqblockcountry_retrieve_geoipapi($ip_address);
40
+ }
41
  else { $country = "Unknown"; }
42
 
43
  return $country;
44
  }
45
 
46
+ /*
47
+ * iQ Block Retrieve XML file for API blocking
48
+ */
49
+ function iqblockcountry_retrieve_geoipapi($ipaddress)
50
  {
51
+ $url = GEOIPAPIURL;
52
+
53
+ $result = wp_remote_post(
54
+ $url,
55
+ array(
56
+ 'body' => array(
57
+ 'api-key' => get_option('blockcountry_geoapikey'),
58
+ 'ipaddress' => $ipaddress
59
+
60
+ )
61
+ )
62
+ );
63
+ if ( 200 == $result['response']['code'] ) {
64
+ $body = $result['body'];
65
+ $xml = new SimpleXmlElement($body);
66
+ return (string) $xml->country;
67
  }
68
+ else return "Unknown";
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
69
  }
70
 
71
 
72
+
73
  /*
74
  * Check country against bad countries, whitelist and blacklist
75
  */
79
  $blocked = FALSE;
80
  $blockedpage = get_option('blockcountry_blockpages');
81
  $blockedcategory = get_option('blockcountry_blockcategories');
82
+ $blockedposttypes = get_option('blockcountry_blockposttypes');
83
 
84
  $frontendblacklistip = array(); $frontendblacklist = get_option ( 'blockcountry_frontendblacklist' );
85
  $frontendwhitelistip = array(); $frontendwhitelist = get_option ( 'blockcountry_frontendwhitelist' );
141
  $blocked = FALSE;
142
  }
143
  }
144
+
145
+ global $post;
146
+
147
+ // if ($blockedposttypes == "on")
148
+ // {
149
+ // $blockedposttypes = get_option('blockcountry_posttypes');
150
+ // if (is_array($blockedposttypes) && in_array(get_post_type( $post->ID ), $blockedposttypes) && ((is_array ( $badcountries ) && in_array ( $country, $badcountries ) || (is_array ( $frontendblacklistip ) && in_array ( $ip_address, $frontendblacklistip)))))
151
+ // {
152
+ // $blocked = TRUE;
153
+ // if (is_array ( $frontendwhitelistip ) && in_array ( $ip_address, $frontendwhitelistip)) {
154
+ // $blocked = FALSE;
155
+ // }
156
+ // }
157
+ // }
158
 
159
  if (is_page() && $blockedpage == "on")
160
  {
161
  $blockedpages = get_option('blockcountry_pages');
 
162
  if (is_page($blockedpages) && !empty($blockedpages) && ((is_array ( $badcountries ) && in_array ( $country, $badcountries ) || (is_array ( $frontendblacklistip ) && in_array ( $ip_address, $frontendblacklistip)))))
163
  {
164
  $blocked = TRUE;
227
  }
228
 
229
  /*
230
+ *
231
+ * Does the real check of visitor IP against MaxMind database or the GeoAPI
232
+ *
233
  */
234
  function iqblockcountry_CheckCountry() {
235
 
337
  if ($pos !== false)
338
  { return TRUE; }
339
  else { return FALSE; }
340
+ }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
libs/blockcountry-logging.php CHANGED
@@ -90,7 +90,7 @@ function iqblockcountry_clean_loggingdb()
90
  }
91
 
92
  /*
93
- * Schedule tracking if this option was set in the admin panel
94
  */
95
  function iqblockcountry_blockcountry_backendlogging($old_value, $new_value)
96
  {
90
  }
91
 
92
  /*
93
+ * Schedule debug logging if this option was set in the admin panel
94
  */
95
  function iqblockcountry_blockcountry_backendlogging($old_value, $new_value)
96
  {
libs/blockcountry-settings.php CHANGED
@@ -1,5 +1,35 @@
1
  <?php
2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
  /*
4
  * Create the wp-admin menu for iQ Block Country
5
  */
@@ -24,9 +54,9 @@ function iqblockcountry_register_mysettings()
24
  register_setting ( 'iqblockcountry-settings-group', 'blockcountry_tracking');
25
  register_setting ( 'iqblockcountry-settings-group', 'blockcountry_nrstatistics');
26
  register_setting ( 'iqblockcountry-settings-group', 'blockcountry_nrstatistics');
 
27
  register_setting ( 'iqblockcountry-settings-group', 'blockcountry_apikey');
28
  register_setting ( 'iqblockcountry-settings-group', 'blockcountry_backendlogging');
29
- register_setting ( 'iqblockcountry-settings-group', 'blockcountry_automaticupdate');
30
  register_setting ( 'iqblockcountry-settings-group', 'blockcountry_accessibility');
31
  register_setting ( 'iqblockcountry-settings-group', 'blockcountry_logging');
32
  register_setting ( 'iqblockcountry-settings-group-backend', 'blockcountry_blockbackend' );
@@ -40,6 +70,8 @@ function iqblockcountry_register_mysettings()
40
  register_setting ( 'iqblockcountry-settings-group-frontend', 'blockcountry_blockfrontend' );
41
  register_setting ( 'iqblockcountry-settings-group-pages', 'blockcountry_blockpages');
42
  register_setting ( 'iqblockcountry-settings-group-pages', 'blockcountry_pages');
 
 
43
  register_setting ( 'iqblockcountry-settings-group-cat', 'blockcountry_blockcategories');
44
  register_setting ( 'iqblockcountry-settings-group-cat', 'blockcountry_categories');
45
  register_setting ( 'iqblockcountry-settings-group-cat', 'blockcountry_blockhome');
@@ -55,8 +87,9 @@ function iqblockcountry_get_options_arr() {
55
  $optarr = array( 'blockcountry_banlist', 'blockcountry_backendbanlist','blockcountry_backendblacklist','blockcountry_backendwhitelist',
56
  'blockcountry_frontendblacklist','blockcountry_frontendwhitelist','blockcountry_blockmessage','blockcountry_blocklogin','blockcountry_blockfrontend',
57
  'blockcountry_blockbackend','blockcountry_header','blockcountry_blockpages','blockcountry_pages','blockcountry_blockcategories','blockcountry_categories',
58
- 'blockcountry_tracking','blockcountry_blockhome','blockcountry_nrstatistics','blockcountry_apikey','blockcountry_redirect','blockcountry_allowse',
59
- 'blockcountry_backendlogging','blockcountry_automaticupdate','blockcountry_buffer','blockcountry_accessibility','blockcountry_logging');
 
60
  return apply_filters( 'iqblockcountry_options', $optarr );
61
  }
62
 
@@ -67,13 +100,11 @@ function iqblockcountry_get_options_arr() {
67
  function iqblockcountry_set_defaults()
68
  {
69
  update_option('blockcountry_version',VERSION);
70
- if (get_option('blockcountry_lastupdate') === FALSE) { update_option('blockcountry_lastupdate' , 0); }
71
  if (get_option('blockcountry_blockfrontend') === FALSE) { update_option('blockcountry_blockfrontend' , 'on'); }
72
  if (get_option('blockcountry_backendnrblocks') === FALSE) { update_option('blockcountry_backendnrblocks', 0); }
73
  if (get_option('blockcountry_frontendnrblocks') === FALSE) { update_option('blockcountry_frontendnrblocks', 0); }
74
  if (get_option('blockcountry_header') === FALSE) { update_option('blockcountry_header', 'on'); }
75
  if (get_option('blockcountry_nrstatistics') === FALSE) { update_option('blockcountry_nrstatistics',15); }
76
- if (get_option('blockcountry_automaticupdate') === FALSE) { update_option('blockcountry_automaticupdate','on'); }
77
  $countrylist = iqblockcountry_get_countries();
78
  $ip_address = iqblockcountry_get_ipaddress();
79
  $usercountry = iqblockcountry_check_ipaddress($ip_address);
@@ -107,7 +138,6 @@ function iqblockcountry_uninstall() //deletes all the database entries that the
107
  delete_option('blockcountry_blocklogin' );
108
  delete_option('blockcountry_blockfrontend' );
109
  delete_option('blockcountry_blockbackend' );
110
- delete_option('blockcountry_lastupdate');
111
  delete_option('blockcountry_version');
112
  delete_option('blockcountry_header');
113
  delete_option('blockcountry_blockpages');
@@ -119,14 +149,16 @@ function iqblockcountry_uninstall() //deletes all the database entries that the
119
  delete_option('blockcountry_blockhome');
120
  delete_option('blockcountry_backendbanlistip');
121
  delete_option('blockcountry_nrstastistics');
 
122
  delete_option('blockcountry_apikey');
123
  delete_option('blockcountry_redirect');
124
  delete_option('blockcountry_allowse');
125
  delete_option('blockcountry_backendlogging');
126
- delete_option('blockcountry_automaticupdate');
127
  delete_option('blockcountry_buffer');
128
  delete_option('blockcountry_accessibility');
129
  delete_option('blockcountry_logging');
 
 
130
  }
131
 
132
 
@@ -145,7 +177,7 @@ function iqblockcountry_settings_tools() {
145
  $ip_address = $_POST['ipaddress'];
146
  $country = iqblockcountry_check_ipaddress($ip_address);
147
  $countrylist = iqblockcountry_get_countries();
148
- if ($country == "Unknown" || $country == "ipv6" || $country == "")
149
  {
150
  echo "<p>" . __('No country for', 'iqblockcountry') . ' ' . $ip_address . ' ' . __('could be found. Or', 'iqblockcountry') . ' ' . $ip_address . ' ' . __('is not a valid IPv4 or IPv6 IP address', 'iqblockcountry');
151
  echo "</p>";
@@ -175,49 +207,6 @@ function iqblockcountry_settings_tools() {
175
  ?>
176
  </form>
177
 
178
- <hr />
179
- <h3><?php _e('Download GeoIP database', 'iqblockcountry'); ?></h3>
180
- <?php
181
- $dateformat = get_option('date_format');
182
- $time = get_option('blockcountry_lastupdate');
183
-
184
- $lastupdated = date($dateformat,$time);
185
- if (get_option('blockcountry_automaticupdate') !== 'on')
186
- {
187
- echo "<strong>"; _e('Automatic update is not setup. Last update: ', 'iqblockcountry'); echo $lastupdated; echo ".</strong>.<br />";
188
-
189
- }
190
- else
191
- {
192
- echo "<strong>"; _e('The GeoIP database is updated once a month. Last update: ', 'iqblockcountry'); echo $lastupdated; echo ".</strong>.<br />";
193
- }
194
- _e('If you need a manual update please press buttons below to update.', 'iqblockcountry');
195
- ?>
196
-
197
- <form name="download_geoip" action="#download" method="post">
198
- <input type="hidden" name="action" value="download" />
199
- <?php
200
- echo '<div class="submit"><input type="submit" name="test" value="' . __( 'Download new GeoIP IPv4 Database', 'iqblockcountry' ) . '" /></div>';
201
- wp_nonce_field('iqblockcountry');
202
- echo '</form>';
203
- ?>
204
- <form name="download_geoip6" action="#download6" method="post">
205
- <input type="hidden" name="action" value="download6" />
206
- <?php
207
- echo '<div class="submit"><input type="submit" name="test" value="' . __( 'Download new GeoIP IPv6 Database', 'iqblockcountry' ) . '" /></div>';
208
- wp_nonce_field('iqblockcountry');
209
- echo '</form>';
210
-
211
- if ( isset($_POST['action']) && $_POST[ 'action' ] == 'download') {
212
- _e ( 'Downloading...' );
213
- iqblockcountry_downloadgeodatabase('4', true);
214
- }
215
- if ( isset($_POST['action']) && $_POST[ 'action' ] == 'download6') {
216
- _e ( 'Downloading...' );
217
- iqblockcountry_downloadgeodatabase('6', true);
218
- }
219
-
220
- ?>
221
  <hr />
222
  <h3><?php _e('Active plugins', 'iqblockcountry'); ?></h3>
223
  <?php
@@ -455,8 +444,59 @@ function iqblockcountry_settings_categories() {
455
  <?php
456
  }
457
 
 
458
  /*
459
- * Function: Categories settings
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
460
  */
461
  function iqblockcountry_settings_searchengines() {
462
  ?>
@@ -521,11 +561,10 @@ function iqblockcountry_settings_frontend()
521
 
522
  $ip_address = iqblockcountry_get_ipaddress();
523
  $country = iqblockcountry_check_ipaddress($ip_address);
524
- if ($country == "Unknown" || $country == "ipv6" || $country == "")
525
  { $displaycountry = "Unknown"; }
526
  else { $displaycountry = $countrylist[$country]; }
527
 
528
-
529
  ?>
530
 
531
  <script language="javascript" type="text/javascript" src=<?php echo "\"" . CHOSENJS . "\""?>></script>
@@ -556,10 +595,6 @@ function iqblockcountry_settings_frontend()
556
  <?php _e('Use the CTRL key to select multiple countries', 'iqblockcountry'); ?></th>
557
  <td width="70%">
558
 
559
-
560
-
561
-
562
-
563
  <?php
564
  $selected = "";
565
  $haystack = get_option('blockcountry_banlist');
@@ -626,7 +661,7 @@ function iqblockcountry_settings_frontend()
626
 
627
 
628
  /*
629
- * Settings home
630
  */
631
  function iqblockcountry_settings_backend()
632
  {
@@ -647,7 +682,7 @@ function iqblockcountry_settings_backend()
647
 
648
  $ip_address = iqblockcountry_get_ipaddress();
649
  $country = iqblockcountry_check_ipaddress($ip_address);
650
- if ($country == "Unknown" || $country == "ipv6" || $country == "")
651
  { $displaycountry = "Unknown"; }
652
  else { $displaycountry = $countrylist[$country]; }
653
 
@@ -781,7 +816,7 @@ function iqblockcountry_settings_home()
781
 
782
  $ip_address = iqblockcountry_get_ipaddress();
783
  $country = iqblockcountry_check_ipaddress($ip_address);
784
- if ($country == "Unknown" || $country == "ipv6" || $country == "")
785
  { $displaycountry = "Unknown"; }
786
  else { $displaycountry = $countrylist[$country]; }
787
 
@@ -877,7 +912,14 @@ function iqblockcountry_settings_home()
877
  </td></tr>
878
 
879
  <tr valign="top">
880
- <th width="30%"><?php _e('API Key:', 'iqblockcountry'); ?><br />
 
 
 
 
 
 
 
881
  <em><?php _e('This is an experimantal feature. You do not need an API key for this plugin to work.', 'iqblockcountry'); ?></em></th>
882
  </th>
883
  <td width="70%">
@@ -892,13 +934,6 @@ function iqblockcountry_settings_home()
892
  </td></tr>
893
  -->
894
 
895
- <tr valign="top">
896
- <th width="30%"><?php _e('Auto update GeoIP Database:', 'iqblockcountry'); ?><br />
897
- <em><?php _e('Selecting this makes sure that the GeoIP database is downloaded once a month.', 'iqblockcountry'); ?></em></th>
898
- <td width="70%">
899
- <input type="checkbox" name="blockcountry_automaticupdate" <?php checked('on', get_option('blockcountry_automaticupdate'), true); ?> />
900
- </td></tr>
901
-
902
  <tr valign="top">
903
  <th width="30%"><?php _e('Accessibility options:', 'iqblockcountry'); ?><br />
904
  <em><?php _e('Set this option if you cannot use the default country selection box.', 'iqblockcountry'); ?></em></th>
@@ -1038,6 +1073,7 @@ function iqblockcountry_settings_page() {
1038
  <a href="?page=iq-block-country/libs/blockcountry-settings.php&tab=backend" class="nav-tab <?php echo $active_tab == 'backend' ? 'nav-tab-active' : ''; ?>"><?php _e('Backend', 'iqblockcountry'); ?></a>
1039
  <a href="?page=iq-block-country/libs/blockcountry-settings.php&tab=pages" class="nav-tab <?php echo $active_tab == 'pages' ? 'nav-tab-active' : ''; ?>"><?php _e('Pages', 'iqblockcountry'); ?></a>
1040
  <a href="?page=iq-block-country/libs/blockcountry-settings.php&tab=categories" class="nav-tab <?php echo $active_tab == 'categories' ? 'nav-tab-active' : ''; ?>"><?php _e('Categories', 'iqblockcountry'); ?></a>
 
1041
  <a href="?page=iq-block-country/libs/blockcountry-settings.php&tab=searchengines" class="nav-tab <?php echo $active_tab == 'searchengines' ? 'nav-tab-active' : ''; ?>"><?php _e('Search Engines', 'iqblockcountry'); ?></a>
1042
  <a href="?page=iq-block-country/libs/blockcountry-settings.php&tab=tools" class="nav-tab <?php echo $active_tab == 'tools' ? 'nav-tab-active' : ''; ?>"><?php _e('Tools', 'iqblockcountry'); ?></a>
1043
  <a href="?page=iq-block-country/libs/blockcountry-settings.php&tab=logging" class="nav-tab <?php echo $active_tab == 'logging' ? 'nav-tab-active' : ''; ?>"><?php _e('Logging', 'iqblockcountry'); ?></a>
@@ -1074,6 +1110,10 @@ function iqblockcountry_settings_page() {
1074
  {
1075
  iqblockcountry_settings_categories();
1076
  }
 
 
 
 
1077
  elseif ($active_tab == "searchengines")
1078
  {
1079
  iqblockcountry_settings_searchengines();
@@ -1091,16 +1131,6 @@ function iqblockcountry_settings_page() {
1091
 
1092
  echo '<p>If you like this plugin please link back to <a href="http://www.redeo.nl/">redeo.nl</a>! :-)</p>';
1093
 
1094
- /* Check if the Geo Database exists otherwise try to download it */
1095
- if (! (file_exists ( IPV4DBFILE ))) {
1096
- ?>
1097
- <hr>
1098
- <p><?php _e('GeoIP database does not exists. Trying to download it...', 'iqblockcountry'); ?></p>
1099
- <?php
1100
-
1101
- iqblockcountry_downloadgeodatabase('4', true);
1102
- iqblockcountry_downloadgeodatabase('6', true);
1103
- }
1104
 
1105
  }
1106
-
1
  <?php
2
 
3
+ /* Check if the Geo Database exists or if GeoIP API key is entered otherwise display notification */
4
+ if (! (file_exists ( IPV4DBFILE )) && !get_option('blockcountry_geoapikey')) {
5
+ add_action( 'admin_notices', 'iq_missing_db_notice' );
6
+ }
7
+
8
+ /*
9
+ * Display missing database notification.
10
+ */
11
+ function iq_missing_db_notice()
12
+ {
13
+ ?>
14
+ <div class="error">
15
+ <h3>iQ Block Country</h3>
16
+ <p><?php _e('The MaxMind GeoIP database does not exist. Please download this file manually or if you wish to use the GeoIP API get an API key from: ', 'iqblockcountry'); ?><a href="http://geoip.webence.nl/" target="_blank">http://geoip.webence.nl/</a></p>
17
+ <p><?php _e("Please download the database from: " , 'iqblockcountry'); ?>
18
+ <?php echo "<a href=\"" . IPV4DB . "\" target=\"_blank\">" . IPV4DB . "</a> "; ?>
19
+ <?php _e("and upload it to the following location: " , 'iqblockcountry'); ?>
20
+ <b><?php echo IPV4DBFILE; ?></b></p>
21
+
22
+ <p><?php _e("If you also use IPv6 please also download the database from: " , 'iqblockcountry'); ?>
23
+ <?php echo "<a href=\"" . IPV6DB . "\" target=\"_blank\">" . IPV6DB . "</a> "; ?>
24
+ <?php _e("and upload it to the following location: " , 'iqblockcountry'); ?>
25
+ <b><?php echo IPV6DBFILE; ?></b></p>
26
+ <p><?php _e('For more detailed instructions take a look at the documentation..', 'iqblockcountry'); ?></p>
27
+
28
+ </div>
29
+ <?php
30
+ }
31
+
32
+
33
  /*
34
  * Create the wp-admin menu for iQ Block Country
35
  */
54
  register_setting ( 'iqblockcountry-settings-group', 'blockcountry_tracking');
55
  register_setting ( 'iqblockcountry-settings-group', 'blockcountry_nrstatistics');
56
  register_setting ( 'iqblockcountry-settings-group', 'blockcountry_nrstatistics');
57
+ register_setting ( 'iqblockcountry-settings-group', 'blockcountry_geoapikey');
58
  register_setting ( 'iqblockcountry-settings-group', 'blockcountry_apikey');
59
  register_setting ( 'iqblockcountry-settings-group', 'blockcountry_backendlogging');
 
60
  register_setting ( 'iqblockcountry-settings-group', 'blockcountry_accessibility');
61
  register_setting ( 'iqblockcountry-settings-group', 'blockcountry_logging');
62
  register_setting ( 'iqblockcountry-settings-group-backend', 'blockcountry_blockbackend' );
70
  register_setting ( 'iqblockcountry-settings-group-frontend', 'blockcountry_blockfrontend' );
71
  register_setting ( 'iqblockcountry-settings-group-pages', 'blockcountry_blockpages');
72
  register_setting ( 'iqblockcountry-settings-group-pages', 'blockcountry_pages');
73
+ register_setting ( 'iqblockcountry-settings-group-posttypes', 'blockcountry_blockposttypes');
74
+ register_setting ( 'iqblockcountry-settings-group-posttypes', 'blockcountry_posttypes');
75
  register_setting ( 'iqblockcountry-settings-group-cat', 'blockcountry_blockcategories');
76
  register_setting ( 'iqblockcountry-settings-group-cat', 'blockcountry_categories');
77
  register_setting ( 'iqblockcountry-settings-group-cat', 'blockcountry_blockhome');
87
  $optarr = array( 'blockcountry_banlist', 'blockcountry_backendbanlist','blockcountry_backendblacklist','blockcountry_backendwhitelist',
88
  'blockcountry_frontendblacklist','blockcountry_frontendwhitelist','blockcountry_blockmessage','blockcountry_blocklogin','blockcountry_blockfrontend',
89
  'blockcountry_blockbackend','blockcountry_header','blockcountry_blockpages','blockcountry_pages','blockcountry_blockcategories','blockcountry_categories',
90
+ 'blockcountry_tracking','blockcountry_blockhome','blockcountry_nrstatistics','blockcountry_geoapikey','blockcountry_apikey','blockcountry_redirect','blockcountry_allowse',
91
+ 'blockcountry_backendlogging','blockcountry_buffer','blockcountry_accessibility','blockcountry_logging','blockcountry_blockposttypes',
92
+ 'blockcountry_posttypes');
93
  return apply_filters( 'iqblockcountry_options', $optarr );
94
  }
95
 
100
  function iqblockcountry_set_defaults()
101
  {
102
  update_option('blockcountry_version',VERSION);
 
103
  if (get_option('blockcountry_blockfrontend') === FALSE) { update_option('blockcountry_blockfrontend' , 'on'); }
104
  if (get_option('blockcountry_backendnrblocks') === FALSE) { update_option('blockcountry_backendnrblocks', 0); }
105
  if (get_option('blockcountry_frontendnrblocks') === FALSE) { update_option('blockcountry_frontendnrblocks', 0); }
106
  if (get_option('blockcountry_header') === FALSE) { update_option('blockcountry_header', 'on'); }
107
  if (get_option('blockcountry_nrstatistics') === FALSE) { update_option('blockcountry_nrstatistics',15); }
 
108
  $countrylist = iqblockcountry_get_countries();
109
  $ip_address = iqblockcountry_get_ipaddress();
110
  $usercountry = iqblockcountry_check_ipaddress($ip_address);
138
  delete_option('blockcountry_blocklogin' );
139
  delete_option('blockcountry_blockfrontend' );
140
  delete_option('blockcountry_blockbackend' );
 
141
  delete_option('blockcountry_version');
142
  delete_option('blockcountry_header');
143
  delete_option('blockcountry_blockpages');
149
  delete_option('blockcountry_blockhome');
150
  delete_option('blockcountry_backendbanlistip');
151
  delete_option('blockcountry_nrstastistics');
152
+ delete_option('blockcountry_geoapikey');
153
  delete_option('blockcountry_apikey');
154
  delete_option('blockcountry_redirect');
155
  delete_option('blockcountry_allowse');
156
  delete_option('blockcountry_backendlogging');
 
157
  delete_option('blockcountry_buffer');
158
  delete_option('blockcountry_accessibility');
159
  delete_option('blockcountry_logging');
160
+ delete_option('blockcountry_blockposttypes');
161
+ delete_option('blockcountry_posttypes');
162
  }
163
 
164
 
177
  $ip_address = $_POST['ipaddress'];
178
  $country = iqblockcountry_check_ipaddress($ip_address);
179
  $countrylist = iqblockcountry_get_countries();
180
+ if ($country == "Unknown" || $country == "ipv6" || $country == "" || $country == "FALSE")
181
  {
182
  echo "<p>" . __('No country for', 'iqblockcountry') . ' ' . $ip_address . ' ' . __('could be found. Or', 'iqblockcountry') . ' ' . $ip_address . ' ' . __('is not a valid IPv4 or IPv6 IP address', 'iqblockcountry');
183
  echo "</p>";
207
  ?>
208
  </form>
209
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
210
  <hr />
211
  <h3><?php _e('Active plugins', 'iqblockcountry'); ?></h3>
212
  <?php
444
  <?php
445
  }
446
 
447
+
448
  /*
449
+ * Function: Custom post type settings
450
+ */
451
+ function iqblockcountry_settings_posttypes() {
452
+ ?>
453
+ <h3><?php _e('Select which post types are blocked.', 'iqblockcountry'); ?></h3>
454
+ <form method="post" action="options.php">
455
+ <?php
456
+ settings_fields ( 'iqblockcountry-settings-group-posttypes' );
457
+ ?>
458
+ <table class="form-table" cellspacing="2" cellpadding="5" width="100%">
459
+ <tr valign="top">
460
+ <th width="30%"><?php _e('Do you want to block individual post types:', 'iqblockcountry'); ?><br />
461
+ <td width="70%">
462
+ <input type="checkbox" name="blockcountry_blockposttypes" value="on" <?php checked('on', get_option('blockcountry_blockposttypes'), true); ?> />
463
+ </td></tr>
464
+ <tr valign="top">
465
+ <th width="30%"><?php _e('Select post types you want to block:', 'iqblockcountry'); ?></th>
466
+ <td width="70%">
467
+
468
+ <ul>
469
+ <?php
470
+ $post_types = get_post_types( '', 'names' );
471
+ //$selectedpages = get_option('blockcountry_pages');
472
+ $selectedposttypes = get_option('blockcountry_posttypes');
473
+ $selected = "";
474
+ foreach ( $post_types as $post_type ) {
475
+ if (is_array($selectedposttypes)) {
476
+ if ( in_array( $post_type,$selectedposttypes) ) {
477
+ $selected = " checked=\"checked\"";
478
+ } else {
479
+ $selected = "";
480
+ }
481
+ }
482
+ echo "<li><input type=\"checkbox\" " . $selected . " name=\"blockcountry_posttypes[]\" value=\"" . $post_type . "\" id=\"" . $post_type . "\" /> <label for=\"" . $post_type . "\">" . $post_type . "</label></li>";
483
+ }
484
+ ?>
485
+ </td></tr>
486
+ <tr><td></td><td>
487
+ <p class="submit"><input type="submit" class="button-primary"
488
+ value="<?php _e ( 'Save Changes' )?>" /></p>
489
+ </td></tr>
490
+ </table>
491
+ </form>
492
+
493
+ <?php
494
+ }
495
+
496
+
497
+
498
+ /*
499
+ * Function: Search engines settings
500
  */
501
  function iqblockcountry_settings_searchengines() {
502
  ?>
561
 
562
  $ip_address = iqblockcountry_get_ipaddress();
563
  $country = iqblockcountry_check_ipaddress($ip_address);
564
+ if ($country == "Unknown" || $country == "ipv6" || $country == "" || $country == "FALSE")
565
  { $displaycountry = "Unknown"; }
566
  else { $displaycountry = $countrylist[$country]; }
567
 
 
568
  ?>
569
 
570
  <script language="javascript" type="text/javascript" src=<?php echo "\"" . CHOSENJS . "\""?>></script>
595
  <?php _e('Use the CTRL key to select multiple countries', 'iqblockcountry'); ?></th>
596
  <td width="70%">
597
 
 
 
 
 
598
  <?php
599
  $selected = "";
600
  $haystack = get_option('blockcountry_banlist');
661
 
662
 
663
  /*
664
+ * Settings backend.
665
  */
666
  function iqblockcountry_settings_backend()
667
  {
682
 
683
  $ip_address = iqblockcountry_get_ipaddress();
684
  $country = iqblockcountry_check_ipaddress($ip_address);
685
+ if ($country == "Unknown" || $country == "ipv6" || $country == "" || $country == "FALSE")
686
  { $displaycountry = "Unknown"; }
687
  else { $displaycountry = $countrylist[$country]; }
688
 
816
 
817
  $ip_address = iqblockcountry_get_ipaddress();
818
  $country = iqblockcountry_check_ipaddress($ip_address);
819
+ if ($country == "Unknown" || $country == "ipv6" || $country == "" || $country == "FALSE")
820
  { $displaycountry = "Unknown"; }
821
  else { $displaycountry = $countrylist[$country]; }
822
 
912
  </td></tr>
913
 
914
  <tr valign="top">
915
+ <th width="30%"><?php _e('GeoIP API Key:', 'iqblockcountry'); ?><br />
916
+ <em><?php _e('If for some reason you cannot or do not want to download the MaxMind GeoIP databases you will need an API key for the GeoIP api.<br />You can get an API key from: ', 'iqblockcountry'); ?> <a href="http://geoip.webence.nl/" target=""_blank>http://geoip.webence.nl/</a></em></th>
917
+ </th>
918
+ <td width="70%">
919
+ <input type="text" size="25" name="blockcountry_geoapikey" value="<?php echo get_option ( 'blockcountry_geoapikey' );?>">
920
+ </td></tr>
921
+ <tr valign="top">
922
+ <th width="30%"><?php _e('Admin block API Key:', 'iqblockcountry'); ?><br />
923
  <em><?php _e('This is an experimantal feature. You do not need an API key for this plugin to work.', 'iqblockcountry'); ?></em></th>
924
  </th>
925
  <td width="70%">
934
  </td></tr>
935
  -->
936
 
 
 
 
 
 
 
 
937
  <tr valign="top">
938
  <th width="30%"><?php _e('Accessibility options:', 'iqblockcountry'); ?><br />
939
  <em><?php _e('Set this option if you cannot use the default country selection box.', 'iqblockcountry'); ?></em></th>
1073
  <a href="?page=iq-block-country/libs/blockcountry-settings.php&tab=backend" class="nav-tab <?php echo $active_tab == 'backend' ? 'nav-tab-active' : ''; ?>"><?php _e('Backend', 'iqblockcountry'); ?></a>
1074
  <a href="?page=iq-block-country/libs/blockcountry-settings.php&tab=pages" class="nav-tab <?php echo $active_tab == 'pages' ? 'nav-tab-active' : ''; ?>"><?php _e('Pages', 'iqblockcountry'); ?></a>
1075
  <a href="?page=iq-block-country/libs/blockcountry-settings.php&tab=categories" class="nav-tab <?php echo $active_tab == 'categories' ? 'nav-tab-active' : ''; ?>"><?php _e('Categories', 'iqblockcountry'); ?></a>
1076
+ <!--<a href="?page=iq-block-country/libs/blockcountry-settings.php&tab=posttypes" class="nav-tab <?php echo $active_tab == 'posttypes' ? 'nav-tab-active' : ''; ?>"><?php _e('Post types', 'iqblockcountry'); ?></a>-->
1077
  <a href="?page=iq-block-country/libs/blockcountry-settings.php&tab=searchengines" class="nav-tab <?php echo $active_tab == 'searchengines' ? 'nav-tab-active' : ''; ?>"><?php _e('Search Engines', 'iqblockcountry'); ?></a>
1078
  <a href="?page=iq-block-country/libs/blockcountry-settings.php&tab=tools" class="nav-tab <?php echo $active_tab == 'tools' ? 'nav-tab-active' : ''; ?>"><?php _e('Tools', 'iqblockcountry'); ?></a>
1079
  <a href="?page=iq-block-country/libs/blockcountry-settings.php&tab=logging" class="nav-tab <?php echo $active_tab == 'logging' ? 'nav-tab-active' : ''; ?>"><?php _e('Logging', 'iqblockcountry'); ?></a>
1110
  {
1111
  iqblockcountry_settings_categories();
1112
  }
1113
+ // elseif ($active_tab == "posttypes")
1114
+ // {
1115
+ // iqblockcountry_settings_posttypes();
1116
+ // }
1117
  elseif ($active_tab == "searchengines")
1118
  {
1119
  iqblockcountry_settings_searchengines();
1131
 
1132
  echo '<p>If you like this plugin please link back to <a href="http://www.redeo.nl/">redeo.nl</a>! :-)</p>';
1133
 
1134
+
 
 
 
 
 
 
 
 
 
1135
 
1136
  }
 
libs/blockcountry-tracking.php CHANGED
@@ -68,7 +68,7 @@ function iqblockcountry_tracking()
68
  */
69
  function iqblockcountry_tracking_retrieve_xml()
70
  {
71
- $url = TRACKINGRETRIEVEURL;
72
 
73
  $result = wp_remote_post(
74
  $url,
@@ -97,7 +97,7 @@ function iqblockcountry_tracking_retrieve_xml()
97
  }
98
 
99
  /*
100
- * Schedule tracking if this option was set in the admin panel
101
  */
102
  function iqblockcountry_schedule_retrieving($old_value, $new_value)
103
  {
68
  */
69
  function iqblockcountry_tracking_retrieve_xml()
70
  {
71
+ $url = BANLISTRETRIEVEURL;
72
 
73
  $result = wp_remote_post(
74
  $url,
97
  }
98
 
99
  /*
100
+ * Schedule retrieving banlist.
101
  */
102
  function iqblockcountry_schedule_retrieving($old_value, $new_value)
103
  {
readme.txt CHANGED
@@ -4,11 +4,11 @@ Donate link: http://www.redeo.nl/plugins/donate
4
  Tags: spam, block, countries, country, comments, ban, geo, geo blocking, geo ip, block country, block countries, ban countries, ban country, blacklist, whitelist
5
  Requires at least: 3.5.2
6
  Tested up to: 4.1
7
- Stable tag: 1.1.16
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
11
- Block visitors from countries you don't want on your website. Based on which country an ip address is from.
12
 
13
  == Description ==
14
 
@@ -28,21 +28,32 @@ Users that are blocked will not be able to do harmful things to your blog like p
28
  You can block all visitors from a certain country accessing your site but you can also limit access to some pages, or some blog categories.
29
 
30
  This plugin uses the GeoLite database from Maxmind. It has a 99.5% accuracy so that is pretty good for a free database. If you need higher accuracy you can buy a license from MaxMind directly.
 
31
 
32
- Once you setup this plugin it will try to download the GeoIP database from Maxmind so you will
33
- always have a recent version of the database when installing this plugin.
34
-
35
 
36
  == Installation ==
37
 
38
  1. Unzip the archive and put the `iq-block-country` folder into your plugins folder (/wp-content/plugins/).
39
- 2. Activate the plugin through the 'Plugins' menu in WordPress
40
- 3. Go to the settings page and choose which countries you want to ban. Use the ctrl key to select
41
- multiple countries
42
- 4. Check if it downloaded the GeoIP database from MaxMind otherwise follow instructions on screen.
 
 
 
43
 
44
  == Frequently Asked Questions ==
45
 
 
 
 
 
 
 
 
 
46
  = How come that I still see visitors from countries that I blocked in Statpress or other statistics software? =
47
 
48
  It’s true that you might see hits from countries that you have blocked in your statistics software.
@@ -56,7 +67,7 @@ If you are worried this plugin does not work you could try to block your own cou
56
 
57
  Well, this plugin does in fact work but is limited to the data MaxMind provides. Also in your statistics software or logfiles you probably will see log entries from countries that you have blocked. See the "How come I still see visitors..." FAQ for that.
58
 
59
- If you think you have a visitor from a country you have blocked lookup that specific IP address on the MaxMind website (http://www.maxmind.com/app/locate_demo_ip) and see which country MaxMind thinks it is. If this is not the same country you may wish to block the country that MaxMind thinks it is.
60
 
61
  = Whoops I made a whoops and blocked my own country from visiting the backend. Now I cannot login... HELP! =
62
 
@@ -99,9 +110,6 @@ Some IPv6 blocks may not be in the right country in the MaxMind database.
99
  There are no guarantees blocking IPv6 works but as far as I was able to test IPv6 blocking it
100
  works just fine.
101
 
102
- If you want IPv6 support be sure to press the "Download new GeoIP IPv6 database" button. At this
103
- time the IPv6 database is not downloaded automatically.
104
-
105
  = Does this plugin work with caching? =
106
 
107
  In some circumstances: No
@@ -119,44 +127,15 @@ Perhaps also a handy function is that you can type in a part of the name of the
119
 
120
  = How can I get a new version of the GeoIP database? =
121
 
122
- Since v1.0.9 every time you login to the backend of your website the plugin checks if the current
123
- databases are over a month old. If they are they will be automatically updated to the current
124
- version of Maxmind.
125
-
126
- If this is not soon enough for you you can also press the two buttons "Download new GeoIP database" on the bottom of the options page. This will download them instantly. However you do not need to download the databases more than once a month since the lite database is only updated once a month.
127
 
128
- You can also remove the file GeoIP.dat from the plugin directory and after removal go to
129
- the settings page of this plugin. When it sees the GeoIP database is missing it will
130
- try to download it for you.
131
-
132
- However you can also download the GeoIP database yourself from Maxmind and overwrite
133
- the existing database.
134
 
135
  Maxmind updates the GeoLite database every month.
136
 
137
- = Help it gives some error about not being able to download the GeoIP database? =
138
-
139
- Follow the instructions on screen. It will probably tell you that you have to manually
140
- download the GeoIP database from Maxmind from the following url:
141
-
142
- http://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP.dat.gz
143
-
144
- If you also need IPv6 you can download the IPv6 database on the following url:
145
-
146
- http://geolite.maxmind.com/download/geoip/database/GeoIPv6.dat.gz
147
-
148
- It will also give you the location it expects the GeoIP.dat file. So go ahead and download it and unzip the file.
149
-
150
- Afterwards upload it to this specific location with for instance FTP,SFTP or FTPS.
151
-
152
- = Why does downloading the GeoIP.dat.gz fail? =
153
-
154
- For instance Maxmind limits the number of downloads per day. They do this by IP address so if you or somebody else who has a website at the same server your site is running on already downloaded the new database you may be blocked for 24 hours by MaxMind. If you are blocked because of too many requests this plugin tries to detect it and display an error message that you should try again later. So no worries try a day later again.
155
-
156
- Other possible faults are your webhosting company not allowing downloads on HTTP port 80.
157
-
158
- If your download fails try to download it from home or work and upload it via FTP,sFTP or FTPS to the location that is displayed.
159
-
160
  = I get "Cannot modify header information - headers already sent" errors =
161
 
162
  This is possible if another plugin or your template sends out header information before this plugin does. You can deactivate and reactivate this plugin, it will try to load as the first plugin upon activation.
@@ -180,6 +159,11 @@ You can select the option on the home tab "Do not log IP addresses" to stop iQ B
180
 
181
  == Changelog ==
182
 
 
 
 
 
 
183
  = 1.1.16 =
184
 
185
  * New: Accessibility option. You can now choose if you want the country default selectbox or an normal selectbox.
@@ -337,3 +321,9 @@ You can select the option on the home tab "Do not log IP addresses" to stop iQ B
337
 
338
  = 1.0 =
339
  * Initial release
 
 
 
 
 
 
4
  Tags: spam, block, countries, country, comments, ban, geo, geo blocking, geo ip, block country, block countries, ban countries, ban country, blacklist, whitelist
5
  Requires at least: 3.5.2
6
  Tested up to: 4.1
7
+ Stable tag: 1.1.17
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
11
+ Block visitors from countries you don't want on your website. Based on which country your visitor is from.
12
 
13
  == Description ==
14
 
28
  You can block all visitors from a certain country accessing your site but you can also limit access to some pages, or some blog categories.
29
 
30
  This plugin uses the GeoLite database from Maxmind. It has a 99.5% accuracy so that is pretty good for a free database. If you need higher accuracy you can buy a license from MaxMind directly.
31
+ If you cannot or do not want to download the GeoIP database from Maxmind you can use the GeoIP API website available on http://geoip.webence.nl/
32
 
33
+ If you want to use the GeoLite database from Maxmind you will have to download the GeoIP database from MaxMind directly and upload it to your site.
34
+ The Wordpress license does not allow this plugin to download the MaxMind Geo database for you.
 
35
 
36
  == Installation ==
37
 
38
  1. Unzip the archive and put the `iq-block-country` folder into your plugins folder (/wp-content/plugins/).
39
+ 2. Download the IPv4 database from: http://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP.dat.gz
40
+ 3. Unzip the GeoIP database and upload it to /wp-content/plugins/iq-block-country/GeoIP.dat
41
+ 4. Download the IPv6 database if you have a website running on IPv6 from: http://geolite.maxmind.com/download/geoip/database/GeoIPv6.dat.gz
42
+ 5. Unzip the GeoIP database and upload it to /wp-content/plugins/iq-block-country/GeoIPv6.dat
43
+ 6. If you do not want to or cannot download the MaxMind GeoIP database you can use the GeoIP API.
44
+ 7. Activate the plugin through the 'Plugins' menu in WordPress
45
+ 8. Go to the settings page and choose which countries you want to ban. Use the ctrl key to select multiple countries
46
 
47
  == Frequently Asked Questions ==
48
 
49
+ = Why is the GeoLite database not downloaded anymore ? =
50
+
51
+ The Wordpress guys have contacted me that the license of the MaxMind GeoLite database and the Wordpress license conflicted. So it was no longer
52
+ allowed to include the GeoLite database or provide an automatic download or download button. Instead users should download the database themselves
53
+ and upload them to the website.
54
+
55
+ Wordpress could be held liable for any license issue. So that is why the auto download en update was removed from this plugin.
56
+
57
  = How come that I still see visitors from countries that I blocked in Statpress or other statistics software? =
58
 
59
  It’s true that you might see hits from countries that you have blocked in your statistics software.
67
 
68
  Well, this plugin does in fact work but is limited to the data MaxMind provides. Also in your statistics software or logfiles you probably will see log entries from countries that you have blocked. See the "How come I still see visitors..." FAQ for that.
69
 
70
+ If you think you have a visitor from a country you have blocked lookup that specific IP address on the tools tab and see which country MaxMind thinks it is. If this is not the same country you may wish to block the country that MaxMind thinks it is.
71
 
72
  = Whoops I made a whoops and blocked my own country from visiting the backend. Now I cannot login... HELP! =
73
 
110
  There are no guarantees blocking IPv6 works but as far as I was able to test IPv6 blocking it
111
  works just fine.
112
 
 
 
 
113
  = Does this plugin work with caching? =
114
 
115
  In some circumstances: No
127
 
128
  = How can I get a new version of the GeoIP database? =
129
 
130
+ You can download the database(s) directly from MaxMind and upload them to your website.
 
 
 
 
131
 
132
+ 1. Download the IPv4 database from: http://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP.dat.gz
133
+ 2. Unzip the GeoIP database and upload it to /wp-content/plugins/iq-block-country/GeoIP.dat
134
+ 3. Download the IPv6 database if you have a website running on IPv6 from: http://geolite.maxmind.com/download/geoip/database/GeoIPv6.dat.gz
135
+ 4. Unzip the GeoIP database and upload it to /wp-content/plugins/iq-block-country/GeoIPv6.dat
 
 
136
 
137
  Maxmind updates the GeoLite database every month.
138
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
139
  = I get "Cannot modify header information - headers already sent" errors =
140
 
141
  This is possible if another plugin or your template sends out header information before this plugin does. You can deactivate and reactivate this plugin, it will try to load as the first plugin upon activation.
159
 
160
  == Changelog ==
161
 
162
+ = 1.1.17 =
163
+
164
+ * Due to a conflict of the license where Wordpress is released under and the license the MaxMind databases are released under I was forced to remove all auto downloads of the GeoIP databases. You now have to manually download the databases and upload them yourself.
165
+ * Added Webence GeoIP API lookup. See http://geoip.webence.nl/ for more information about this API.
166
+
167
  = 1.1.16 =
168
 
169
  * New: Accessibility option. You can now choose if you want the country default selectbox or an normal selectbox.
321
 
322
  = 1.0 =
323
  * Initial release
324
+
325
+ == Upgrade Notice ==
326
+
327
+ = 1.1.17 =
328
+
329
+ This plugin no longer downloads the MaxMind database. You have to download manually or use the GeoIP API.