iQ Block Country - Version 1.1.47

Version Description

  • Change: You can now also enter IP Ranges in the black & whitelist in CIDR format.
  • Change: Altered logging clean up a little bit
Download this release

Release Info

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

Code changes from version 1.1.46 to 1.1.47

iq-block-country.php CHANGED
@@ -2,7 +2,7 @@
2
  /*
3
  Plugin Name: iQ Block Country
4
  Plugin URI: https://www.webence.nl/plugins/iq-block-country-the-wordpress-plugin-that-blocks-countries-for-you/
5
- Version: 1.1.46
6
  Author: Pascal
7
  Author URI: https://www.webence.nl/
8
  Description: Block visitors from visiting your website and backend website based on which country their IP address is from. The Maxmind GeoIP lite database is used for looking up from which country an ip address is from.
@@ -250,7 +250,7 @@ define("GEOIPAPIURLASIA","https://us2.geoip.webence.nl/geoipapi.php");
250
  define("GEOIPAPICHECKURL","https://eu.geoip.webence.nl/geoipapi-keycheck.php");
251
  define("ADMINAPICHECKURL","https://tracking.webence.nl/adminapi-keycheck.php");
252
  define("IPLOOKUPURL",'https://geoip.webence.nl/iplookup/iplookup.php');
253
- define("VERSION","1.1.46");
254
  define("DBVERSION","122");
255
  define("PLUGINPATH",plugin_dir_path( __FILE__ ));
256
 
@@ -266,7 +266,7 @@ require_once('libs/blockcountry-validation.php');
266
  require_once('libs/blockcountry-logging.php');
267
  require_once('libs/blockcountry-tracking.php');
268
  require_once('libs/blockcountry-search-engines.php');
269
-
270
  global $apiblacklist;
271
  $apiblacklist = FALSE;
272
  $backendblacklistcheck = FALSE;
@@ -283,7 +283,7 @@ register_uninstall_hook(__file__, 'iqblockcountry_uninstall');
283
 
284
  /* Clean logging database */
285
  iqblockcountry_clean_db();
286
-
287
 
288
  if (isset($_POST['action']))
289
  {
@@ -340,7 +340,6 @@ if (($blockcountry_is_login_page || is_admin() || $blockcountry_is_xmlrpc) && ge
340
  add_action ( 'init', 'iqblockcountry_checkCountryBackEnd', 1 );
341
  }
342
  elseif ((!$blockcountry_is_login_page && !is_admin() && !$blockcountry_is_xmlrpc) && get_option('blockcountry_blockfrontend') == 'on')
343
- //elseif (get_option('blockcountry_blockfrontend') == "on")
344
  {
345
  add_action ( 'wp', 'iqblockcountry_checkCountryFrontEnd', 1 );
346
  }
2
  /*
3
  Plugin Name: iQ Block Country
4
  Plugin URI: https://www.webence.nl/plugins/iq-block-country-the-wordpress-plugin-that-blocks-countries-for-you/
5
+ Version: 1.1.47
6
  Author: Pascal
7
  Author URI: https://www.webence.nl/
8
  Description: Block visitors from visiting your website and backend website based on which country their IP address is from. The Maxmind GeoIP lite database is used for looking up from which country an ip address is from.
250
  define("GEOIPAPICHECKURL","https://eu.geoip.webence.nl/geoipapi-keycheck.php");
251
  define("ADMINAPICHECKURL","https://tracking.webence.nl/adminapi-keycheck.php");
252
  define("IPLOOKUPURL",'https://geoip.webence.nl/iplookup/iplookup.php');
253
+ define("VERSION","1.1.47");
254
  define("DBVERSION","122");
255
  define("PLUGINPATH",plugin_dir_path( __FILE__ ));
256
 
266
  require_once('libs/blockcountry-logging.php');
267
  require_once('libs/blockcountry-tracking.php');
268
  require_once('libs/blockcountry-search-engines.php');
269
+
270
  global $apiblacklist;
271
  $apiblacklist = FALSE;
272
  $backendblacklistcheck = FALSE;
283
 
284
  /* Clean logging database */
285
  iqblockcountry_clean_db();
286
+ iqblockcountry_get_blackwhitelist();
287
 
288
  if (isset($_POST['action']))
289
  {
340
  add_action ( 'init', 'iqblockcountry_checkCountryBackEnd', 1 );
341
  }
342
  elseif ((!$blockcountry_is_login_page && !is_admin() && !$blockcountry_is_xmlrpc) && get_option('blockcountry_blockfrontend') == 'on')
 
343
  {
344
  add_action ( 'wp', 'iqblockcountry_checkCountryFrontEnd', 1 );
345
  }
lang/en_EN.mo CHANGED
Binary file
lang/en_EN.po CHANGED
@@ -2,7 +2,7 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: iQ Block Country\n"
4
  "POT-Creation-Date: 2016-08-02 20:45+0100\n"
5
- "PO-Revision-Date: 2018-02-16 10:10+0100\n"
6
  "Last-Translator: Pascal <pascal@webence.nl>\n"
7
  "Language-Team: iQ Block Country <info@redeo.nl>\n"
8
  "Language: en\n"
2
  msgstr ""
3
  "Project-Id-Version: iQ Block Country\n"
4
  "POT-Creation-Date: 2016-08-02 20:45+0100\n"
5
+ "PO-Revision-Date: 2018-03-28 20:02+0200\n"
6
  "Last-Translator: Pascal <pascal@webence.nl>\n"
7
  "Language-Team: iQ Block Country <info@redeo.nl>\n"
8
  "Language: en\n"
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: 2018-02-16 10:16+0100\n"
5
- "PO-Revision-Date: 2018-02-16 10:22+0100\n"
6
  "Last-Translator: Pascal <pascal@webence.nl>\n"
7
  "Language-Team: iQ Block Country <support@webence.nl>\n"
8
  "Language: nl\n"
@@ -83,308 +83,324 @@ msgstr ""
83
  msgid "IP Address to check:"
84
  msgstr "IP adres om te controleren:"
85
 
86
- #: libs/blockcountry-settings.php:293
87
  msgid "No country for"
88
  msgstr "Geen land voor"
89
 
90
- #: libs/blockcountry-settings.php:293
91
  msgid "could be found. Or"
92
  msgstr "gevonden. Of"
93
 
94
- #: libs/blockcountry-settings.php:293
95
  msgid "is not a valid IPv4 or IPv6 IP address"
96
  msgstr "is geen valide IPv4 of IPv6 ip adres."
97
 
98
- #: libs/blockcountry-settings.php:298
99
  msgid "IP Adress"
100
  msgstr "IP Adres"
101
 
102
- #: libs/blockcountry-settings.php:298
103
  msgid "belongs to"
104
  msgstr "behoort tot"
105
 
106
- #: libs/blockcountry-settings.php:304 libs/blockcountry-settings.php:309
107
  msgid "This country is not permitted to visit the frontend of this website."
108
  msgstr ""
109
  "Dit land wordt niet toegestaan om de voorkant van deze website te bezoeken."
110
 
111
- #: libs/blockcountry-settings.php:318 libs/blockcountry-settings.php:325
112
  msgid "This country is not permitted to visit the backend of this website."
113
  msgstr ""
114
  "Dit land wordt niet toegestaan om de achterkant van deze website te bezoeken."
115
 
116
- #: libs/blockcountry-settings.php:331
117
- msgid "This ip is present in the blacklist."
118
- msgstr "Dit ip adres staat op de zwarte lijst"
119
 
120
- #: libs/blockcountry-settings.php:337
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
121
  msgid "Check IP address"
122
  msgstr "Controleer IP adres"
123
 
124
- #: libs/blockcountry-settings.php:344
125
  msgid "Database information"
126
  msgstr "Database informatie"
127
 
128
- #: libs/blockcountry-settings.php:351
129
  msgid "IPv4 database exists. File date: "
130
  msgstr "IPv4 database bestaat. Bestands datum:"
131
 
132
- #: libs/blockcountry-settings.php:358 libs/blockcountry-settings.php:393
133
  msgid "Database is older than 3 months... Please update..."
134
  msgstr ""
135
  "Uw MaxMind GeoIP database is ouder dan 3 maanden. Update je database "
136
  "alstublieft."
137
 
138
- #: libs/blockcountry-settings.php:363
139
  msgid "IPv4 database does not exist."
140
  msgstr "IPv4 database bestaat niet."
141
 
142
- #: libs/blockcountry-settings.php:369
143
  msgid "IPv6 database exists. File date: "
144
  msgstr "IPv6 database bestaat. Bestands datum:"
145
 
146
- #: libs/blockcountry-settings.php:376
147
  msgid "Database is older than 3 months... Please update..."
148
  msgstr ""
149
  "Uw MaxMind GeoIP database is ouder dan 3 maanden. Update je database "
150
  "alstublieft."
151
 
152
- #: libs/blockcountry-settings.php:381
153
  msgid "IPv6 database does not exist."
154
  msgstr "IPv6 database bestaat niet."
155
 
156
- #: libs/blockcountry-settings.php:386
157
  msgid "GeoIP2 database exists. File date: "
158
  msgstr "GeoIP2 database bestaat. Bestands datum:"
159
 
160
- #: libs/blockcountry-settings.php:398
161
  msgid "GeoIP2 database does not exist."
162
  msgstr "GeoIP2 database bestaat niet."
163
 
164
- #: libs/blockcountry-settings.php:405
165
  msgid "Your GeoIP API key is valid till: "
166
  msgstr "Uw GeoIP API key is geldig tot:"
167
 
168
- #: libs/blockcountry-settings.php:412
169
  msgid "Active plugins"
170
  msgstr "Actieve plugins"
171
 
172
- #: libs/blockcountry-settings.php:419
173
  msgid "Plugin name"
174
  msgstr "Plugin naam"
175
 
176
- #: libs/blockcountry-settings.php:419
177
  msgid "Version"
178
  msgstr "Versie"
179
 
180
- #: libs/blockcountry-settings.php:419 libs/blockcountry-settings.php:1523
181
- #: libs/blockcountry-settings.php:1583
182
  msgid "URL"
183
  msgstr "URL"
184
 
185
- #: libs/blockcountry-settings.php:438
186
  msgid "none"
187
  msgstr "Geen"
188
 
189
- #: libs/blockcountry-settings.php:444 libs/blockcountry-settings.php:445
190
  msgid "unavailable"
191
  msgstr "niet beschikbaar"
192
 
193
- #: libs/blockcountry-settings.php:449
194
  msgid "File System Information"
195
  msgstr "File systeem informatie"
196
 
197
- #: libs/blockcountry-settings.php:452
198
  msgid "Website Root Folder"
199
  msgstr "Website root directory"
200
 
201
- #: libs/blockcountry-settings.php:453 libs/blockcountry-settings.php:647
202
  msgid "Document Root Path"
203
  msgstr "Document root pad"
204
 
205
- #: libs/blockcountry-settings.php:457
206
  msgid "Database Information"
207
  msgstr "Database informatie"
208
 
209
- #: libs/blockcountry-settings.php:459
210
  msgid "MySQL Database Version"
211
  msgstr "MySQL Database versie"
212
 
213
- #: libs/blockcountry-settings.php:460
214
  msgid "MySQL Client Version"
215
  msgstr "MySQL Client versie"
216
 
217
- #: libs/blockcountry-settings.php:461
218
  msgid "Database Host"
219
  msgstr "Database Host"
220
 
221
- #: libs/blockcountry-settings.php:467
222
  msgid "Not Set"
223
  msgstr "Niet gezet"
224
 
225
- #: libs/blockcountry-settings.php:469 libs/blockcountry-settings.php:549
226
- #: libs/blockcountry-settings.php:557 libs/blockcountry-settings.php:565
227
- #: libs/blockcountry-settings.php:573 libs/blockcountry-settings.php:582
228
- #: libs/blockcountry-settings.php:599
229
  msgid "Off"
230
  msgstr "Uit"
231
 
232
- #: libs/blockcountry-settings.php:472
233
  msgid "SQL Mode"
234
  msgstr "SQL Mode"
235
 
236
- #: libs/blockcountry-settings.php:476
237
  msgid "Server Information"
238
  msgstr "Server informatie"
239
 
240
- #: libs/blockcountry-settings.php:481
241
  msgid "Server IP Address"
242
  msgstr "Server IP Adres"
243
 
244
- #: libs/blockcountry-settings.php:483
245
  msgid "Server Type"
246
  msgstr "Server Type"
247
 
248
- #: libs/blockcountry-settings.php:484
249
  msgid "Operating System"
250
  msgstr "Operating System"
251
 
252
- #: libs/blockcountry-settings.php:485
253
  msgid "Browser Compression Supported"
254
  msgstr "Browser Compressie ondersteund"
255
 
256
- #: libs/blockcountry-settings.php:501
257
  msgid "undefined"
258
  msgstr "Ongedefinieerd"
259
 
260
- #: libs/blockcountry-settings.php:508
261
  msgid "PHP Process User (UID:GID)"
262
  msgstr "PHP Process User (UID:GID)"
263
 
264
- #: libs/blockcountry-settings.php:513
265
  msgid "PHP Information"
266
  msgstr "PHP Informatie"
267
 
268
- #: libs/blockcountry-settings.php:518
269
  msgid "PHP Version"
270
  msgstr "PHP versie"
271
 
272
- #: libs/blockcountry-settings.php:519
273
  msgid "PHP Memory Usage"
274
  msgstr "PHP Memory Usage"
275
 
276
- #: libs/blockcountry-settings.php:519
277
  msgid " MB"
278
  msgstr " MB"
279
 
280
- #: libs/blockcountry-settings.php:525 libs/blockcountry-settings.php:533
281
- #: libs/blockcountry-settings.php:541 libs/blockcountry-settings.php:590
282
  msgid "N/A"
283
  msgstr "N/A"
284
 
285
- #: libs/blockcountry-settings.php:528
286
  msgid "PHP Memory Limit"
287
  msgstr "PHP Memory Limit"
288
 
289
- #: libs/blockcountry-settings.php:536
290
  msgid "PHP Max Upload Size"
291
  msgstr "PHP Max Upload Size"
292
 
293
- #: libs/blockcountry-settings.php:544
294
  msgid "PHP Max Post Size"
295
  msgstr "PHP Max Post Size"
296
 
297
- #: libs/blockcountry-settings.php:547 libs/blockcountry-settings.php:555
298
- #: libs/blockcountry-settings.php:563 libs/blockcountry-settings.php:571
299
- #: libs/blockcountry-settings.php:580 libs/blockcountry-settings.php:597
300
  msgid "On"
301
  msgstr "Aan"
302
 
303
- #: libs/blockcountry-settings.php:552
304
  msgid "PHP Allow URL fopen"
305
  msgstr "PHP Allow URL fopen"
306
 
307
- #: libs/blockcountry-settings.php:560
308
  msgid "PHP Allow URL Include"
309
  msgstr "PHP Allow URL Include"
310
 
311
- #: libs/blockcountry-settings.php:568
312
  msgid "PHP Display Errors"
313
  msgstr "PHP Display Errors"
314
 
315
- #: libs/blockcountry-settings.php:576
316
  msgid "PHP Display Startup Errors"
317
  msgstr "PHP Display Startup Errors"
318
 
319
- #: libs/blockcountry-settings.php:585
320
  msgid "PHP Expose PHP"
321
  msgstr "PHP Expose PHP"
322
 
323
- #: libs/blockcountry-settings.php:593
324
  msgid "PHP Max Script Execution Time"
325
  msgstr "PHP Max Script Execution Time"
326
 
327
- #: libs/blockcountry-settings.php:594
328
  msgid "Seconds"
329
  msgstr "Seconden"
330
 
331
- #: libs/blockcountry-settings.php:602
332
  msgid "PHP open_basedir"
333
  msgstr "PHP open_basedir"
334
 
335
- #: libs/blockcountry-settings.php:605 libs/blockcountry-settings.php:613
336
  msgid "Yes"
337
  msgstr "Ja"
338
 
339
- #: libs/blockcountry-settings.php:607 libs/blockcountry-settings.php:615
340
  msgid "No"
341
  msgstr "Nee"
342
 
343
- #: libs/blockcountry-settings.php:610
344
  msgid "PHP XML Support"
345
  msgstr "PHP XML Support"
346
 
347
- #: libs/blockcountry-settings.php:618
348
  msgid "PHP IPTC Support"
349
  msgstr "PHP IPTC Support"
350
 
351
- #: libs/blockcountry-settings.php:620
352
  msgid "Disabled PHP Functions"
353
  msgstr "Disabled PHP Functions"
354
 
355
- #: libs/blockcountry-settings.php:627
356
  msgid "Wordpress info"
357
  msgstr "Wordpress Informatie"
358
 
359
- #: libs/blockcountry-settings.php:632
360
  msgid "is enabled"
361
  msgstr "is aangezet"
362
 
363
- #: libs/blockcountry-settings.php:634
364
  msgid "is disabled"
365
  msgstr "Is uitgezet"
366
 
367
- #: libs/blockcountry-settings.php:637
368
  msgid " Multisite"
369
  msgstr "Multisite"
370
 
371
- #: libs/blockcountry-settings.php:640
372
  msgid "are enabled"
373
  msgstr "is aangezet"
374
 
375
- #: libs/blockcountry-settings.php:642
376
  msgid "are disabled"
377
  msgstr "Is uitgezet"
378
 
379
- #: libs/blockcountry-settings.php:645
380
  msgid "Permalinks"
381
  msgstr "Permalinks"
382
 
383
- #: libs/blockcountry-settings.php:662
384
  msgid "Export"
385
  msgstr "Exporteren"
386
 
387
- #: libs/blockcountry-settings.php:663
388
  msgid ""
389
  "When you click on <tt>Backup all settings</tt> button a backup of the iQ "
390
  "Block Country configuration will be created."
@@ -392,7 +408,7 @@ msgstr ""
392
  "Wanneer je klikt op de <tt>Backup alle instellingen</tt> knop zal een backup "
393
  "van alle iQ Block Country instellingen worden gecreerd."
394
 
395
- #: libs/blockcountry-settings.php:664
396
  msgid ""
397
  "After exporting, you can either use the backup file to restore your settings "
398
  "on this site again or copy the settings to another WordPress site."
@@ -401,96 +417,96 @@ msgstr ""
401
  "te herstellen of je kunt het bestand gebruiken om je instellingen naar een "
402
  "andere WordPress site te exporteren."
403
 
404
- #: libs/blockcountry-settings.php:668
405
  msgid "Backup all settings"
406
  msgstr "Backup alle instellingen"
407
 
408
- #: libs/blockcountry-settings.php:675
409
  msgid "Import"
410
  msgstr "Importeer"
411
 
412
- #: libs/blockcountry-settings.php:676
413
  msgid "Click the browse button and choose a zip file that you exported before."
414
  msgstr ""
415
  "Klik op de Browse button and selecteer een zip file welke je eerder hebt "
416
  "geexporteerd."
417
 
418
- #: libs/blockcountry-settings.php:677
419
  msgid "Press Restore settings button, and let WordPress do the magic for you."
420
  msgstr ""
421
  "Druk op de herstel instellingen knop en laat WordPress haar magie voor je "
422
  "doen."
423
 
424
- #: libs/blockcountry-settings.php:682
425
  msgid "Restore settings"
426
  msgstr "Herstel instellingen"
427
 
428
- #: libs/blockcountry-settings.php:705 libs/blockcountry-settings.php:708
429
- #: libs/blockcountry-settings.php:717
430
  msgid "Something went wrong exporting this file"
431
  msgstr "Er is iets verkeerd gegaan met het exporteren van het bestand."
432
 
433
- #: libs/blockcountry-settings.php:720
434
  msgid "Exporting settings..."
435
  msgstr "Exporteer instellingen"
436
 
437
- #: libs/blockcountry-settings.php:735
438
  msgid "Something went wrong importing this file"
439
  msgstr "Er is iets verkeerd gegaan met het importeren van dit bestand"
440
 
441
- #: libs/blockcountry-settings.php:752
442
  msgid "All options are restored successfully."
443
  msgstr "Alle opties zijn succesvol hersteld"
444
 
445
- #: libs/blockcountry-settings.php:755
446
  msgid "Invalid file."
447
  msgstr "Ongeldig bestand"
448
 
449
- #: libs/blockcountry-settings.php:760
450
  msgid "No correct import or export option given."
451
  msgstr "Geen correcte importeer of exporteer optie gegeven."
452
 
453
- #: libs/blockcountry-settings.php:769
454
  msgid "Select which pages are blocked."
455
  msgstr "Selecteer welke pagina's geblokkeerd worden."
456
 
457
- #: libs/blockcountry-settings.php:776
458
  msgid "Do you want to block individual pages:"
459
  msgstr "Wil je individuele pagina's blokkeren:"
460
 
461
- #: libs/blockcountry-settings.php:777
462
  msgid "If you do not select this option all pages will be blocked."
463
  msgstr "Indien je deze optie niet selecteert worden alle pagina's geblokkeerd."
464
 
465
- #: libs/blockcountry-settings.php:782
466
  msgid "Select pages you want to block:"
467
  msgstr "Selecteer welke pagina's je wil blokkeren."
468
 
469
- #: libs/blockcountry-settings.php:804 libs/blockcountry-settings.php:858
470
- #: libs/blockcountry-settings.php:906 libs/blockcountry-settings.php:954
471
- #: libs/blockcountry-settings.php:1001 libs/blockcountry-settings.php:1133
472
- #: libs/blockcountry-settings.php:1262 libs/blockcountry-settings.php:1490
473
  msgid "Save Changes"
474
  msgstr "Bewaar wijzigingen"
475
 
476
- #: libs/blockcountry-settings.php:817
477
  msgid "Select which categories are blocked."
478
  msgstr "Selecteer welke categorieen geblokkeerd worden."
479
 
480
- #: libs/blockcountry-settings.php:824
481
  msgid "Do you want to block individual categories:"
482
  msgstr "Wil je individuele categorieen blokkeren:"
483
 
484
- #: libs/blockcountry-settings.php:825 libs/blockcountry-settings.php:879
485
  msgid "If you do not select this option all blog articles will be blocked."
486
  msgstr ""
487
  "Indien je deze optie niet selecteert worden alle blog artikelen geblokkeerd."
488
 
489
- #: libs/blockcountry-settings.php:830
490
  msgid "Do you want to block the homepage:"
491
  msgstr "Wil je je homepage blokkeren:"
492
 
493
- #: libs/blockcountry-settings.php:831
494
  msgid ""
495
  "If you do not select this option visitors will not be blocked from your "
496
  "homepage regardless of the categories you select."
@@ -499,43 +515,43 @@ msgstr ""
499
  "geblokkeerd van het bezoeken van je homepagina ongeacht welke categorieen je "
500
  "selecteert."
501
 
502
- #: libs/blockcountry-settings.php:836
503
  msgid "Select categories you want to block:"
504
  msgstr "Selecteer welke categorieen je wil blokkeren."
505
 
506
- #: libs/blockcountry-settings.php:871
507
  msgid "Select which tags are blocked."
508
  msgstr "Selecteer welke tags geblokkeerd moeten worden."
509
 
510
- #: libs/blockcountry-settings.php:878
511
  msgid "Do you want to block individual tags:"
512
  msgstr "Wil je individuele tags blokkeren?:"
513
 
514
- #: libs/blockcountry-settings.php:884
515
  msgid "Select tags you want to block:"
516
  msgstr "Selecteer welke tags geblokkeerd moeten worden."
517
 
518
- #: libs/blockcountry-settings.php:920
519
  msgid "Select which post types are blocked."
520
  msgstr "Selecteer welke post types geblokkeerd worden."
521
 
522
- #: libs/blockcountry-settings.php:927
523
  msgid "Do you want to block individual post types:"
524
  msgstr "Wil je individuele post types blokkeren:"
525
 
526
- #: libs/blockcountry-settings.php:932
527
  msgid "Select post types you want to block:"
528
  msgstr "Selecteer welke post types je wil blokkeren."
529
 
530
- #: libs/blockcountry-settings.php:969
531
  msgid "Select which services are allowed."
532
  msgstr "Selecteer welke diensten je wilt toestaan."
533
 
534
- #: libs/blockcountry-settings.php:976
535
  msgid "Select which services you want to allow:"
536
  msgstr "Selecteer welke diensten je wilt toestaan:"
537
 
538
- #: libs/blockcountry-settings.php:977
539
  msgid ""
540
  "This will allow a service like for instance a search engine to your site "
541
  "despite if you blocked the country."
@@ -543,50 +559,50 @@ msgstr ""
543
  "Dit staat een dienst toe zoals bijvoorbeeld een zoek machine ongeacht of je "
544
  "het land van de zoekmachine hebt geblokkeerd."
545
 
546
- #: libs/blockcountry-settings.php:978
547
  msgid "Please note the \"Search Engine Visibility\" should not be selected in "
548
  msgstr ""
549
  "Let op: \"Zoekmachine zichtbaarheid\" dient niet geselecteer te staan op "
550
 
551
- #: libs/blockcountry-settings.php:978
552
  msgid "reading settings."
553
  msgstr "lezen instellingen"
554
 
555
- #: libs/blockcountry-settings.php:1016
556
  msgid "Frontend options"
557
  msgstr "Voorkant opties"
558
 
559
- #: libs/blockcountry-settings.php:1043
560
  msgid ""
561
  "Do not block visitors that are logged in from visiting frontend website:"
562
  msgstr ""
563
  "Blokkeer geen bezoekers welke ingelogd zijn van het bezoeken van de voorkant:"
564
 
565
- #: libs/blockcountry-settings.php:1049
566
  msgid "Block visitors from visiting the frontend of your website:"
567
  msgstr "Blokkeer bezoekers van het bezoeken van de voorkant van je website:"
568
 
569
- #: libs/blockcountry-settings.php:1055
570
  msgid "Block visitors from using the search function of your website:"
571
  msgstr ""
572
  "Blokkeer bezoekers van het bezoeken van de zoek functie van je website:"
573
 
574
- #: libs/blockcountry-settings.php:1061
575
  msgid ""
576
  "Select the countries that should be blocked from visiting your frontend:"
577
  msgstr ""
578
  "Selecteer de landen welke geblokkeerd moeten worden voor het bezoeken van de "
579
  "voorkant van je website:"
580
 
581
- #: libs/blockcountry-settings.php:1062
582
  msgid "Use the CTRL key to select multiple countries"
583
  msgstr "Gebruik de CTRL toets om meerdere landen te selecteren"
584
 
585
- #: libs/blockcountry-settings.php:1104 libs/blockcountry-settings.php:1238
586
  msgid "Inverse the selection above:"
587
  msgstr "Keer bovenstaande selectie om:"
588
 
589
- #: libs/blockcountry-settings.php:1105 libs/blockcountry-settings.php:1239
590
  msgid ""
591
  "If you select this option only the countries that are selected are "
592
  "<em>allowed</em>."
@@ -594,49 +610,56 @@ msgstr ""
594
  "Indien je deze optie selecteert de zijn de landen die hierboven geselecteerd "
595
  "<em>toegestaan</em>."
596
 
597
- #: libs/blockcountry-settings.php:1110
598
  msgid "Block tag pages:"
599
  msgstr "Blokkeer tag pagina's"
600
 
601
- #: libs/blockcountry-settings.php:1111
602
  msgid "If you select this option tag pages will be blocked."
603
  msgstr "Indien je deze optie selecteert worden tag pagina's geblokkeerd."
604
 
605
- #: libs/blockcountry-settings.php:1116
606
  msgid "Frontend whitelist IPv4 and/or IPv6 addresses:"
607
  msgstr ""
608
  "Whitelist van IPv4 of IPv6 IP adressen voor de voorkant van je website:"
609
 
610
- #: libs/blockcountry-settings.php:1116 libs/blockcountry-settings.php:1124
611
- #: libs/blockcountry-settings.php:1245 libs/blockcountry-settings.php:1253
612
  msgid "Use a semicolon (;) to separate IP addresses"
613
  msgstr "Gebruik een puntkomma (;) om adressen van elkaar te scheiden"
614
 
615
- #: libs/blockcountry-settings.php:1124
 
 
 
 
 
 
 
616
  msgid "Frontend blacklist IPv4 and/or IPv6 addresses:"
617
  msgstr ""
618
  "Blacklist van IPv4 of IPv6 IP adressen voor de voorkant van je website:"
619
 
620
- #: libs/blockcountry-settings.php:1153
621
  msgid "Backend Options"
622
  msgstr "Achterkant opties"
623
 
624
- #: libs/blockcountry-settings.php:1181
625
  msgid ""
626
  "Block visitors from visiting the backend (administrator) of your website:"
627
  msgstr ""
628
  "Blokkeer bezoekers van het bezoeken van de achterkant (administratie "
629
  "gedeelte) van je website:"
630
 
631
- #: libs/blockcountry-settings.php:1189
632
  msgid "Your IP address is"
633
  msgstr "Je IP adres is"
634
 
635
- #: libs/blockcountry-settings.php:1189
636
  msgid "The country that is listed for this IP address is"
637
  msgstr "Het land waar dit adres toe behoort is"
638
 
639
- #: libs/blockcountry-settings.php:1190
640
  msgid ""
641
  "Do <strong>NOT</strong> set the 'Block visitors from visiting the backend "
642
  "(administrator) of your website' and also select"
@@ -644,11 +667,11 @@ msgstr ""
644
  "Selecteer <strong>NIET</strong> \"Blokkeer bezoekers van het bezoeken van de "
645
  "achterkant (administratie gedeelte) van je website\" en"
646
 
647
- #: libs/blockcountry-settings.php:1190
648
  msgid "below."
649
  msgstr "hier beneden."
650
 
651
- #: libs/blockcountry-settings.php:1191
652
  msgid ""
653
  "You will NOT be able to login the next time if you DO block your own country "
654
  "from visiting the backend."
@@ -656,44 +679,44 @@ msgstr ""
656
  "Het zal daarna niet meer mogelijk zijn om nog in te loggen als je je eigen "
657
  "land blokkeert van het bezoeken van de achterkant van je website."
658
 
659
- #: libs/blockcountry-settings.php:1196
660
  msgid "Select the countries that should be blocked from visiting your backend:"
661
  msgstr ""
662
  "Selecteer de landen welke geblokkeerd moeten worden voor het bezoeken van de "
663
  "achterkant (administratie gedeelte) van je website:"
664
 
665
- #: libs/blockcountry-settings.php:1197
666
  msgid "Use the x behind the country to remove a country from this blocklist."
667
  msgstr ""
668
  "Gebruik de x achter een land om het land te verwijderen uit deze lijst."
669
 
670
- #: libs/blockcountry-settings.php:1245
671
  msgid "Backend whitelist IPv4 and/or IPv6 addresses:"
672
  msgstr ""
673
  "Whitelist van IPv4 of IPv6 IP adressen voor de achterkant van je website:"
674
 
675
- #: libs/blockcountry-settings.php:1253
676
  msgid "Backend blacklist IPv4 and/or IPv6 addresses:"
677
  msgstr ""
678
  "Blacklist van IPv4 of IPv6 IP adressen voor de achterkant van je website:"
679
 
680
- #: libs/blockcountry-settings.php:1295
681
  msgid "Overall statistics since start"
682
  msgstr "Statistieken sinds het begin"
683
 
684
- #: libs/blockcountry-settings.php:1298
685
  msgid "visitors blocked from the backend."
686
  msgstr "bezoekers geblokkeerd op de achterkant."
687
 
688
- #: libs/blockcountry-settings.php:1300
689
  msgid "visitors blocked from the frontend."
690
  msgstr "bezoekers geblokkeerd op de voorkant."
691
 
692
- #: libs/blockcountry-settings.php:1317
693
  msgid "Block type"
694
  msgstr "Blokkeer type"
695
 
696
- #: libs/blockcountry-settings.php:1319
697
  msgid ""
698
  "You should choose one of the 3 block options below. This wil either show a "
699
  "block message, redirect to an internal page or redirect to an external page."
@@ -702,15 +725,15 @@ msgstr ""
702
  "bericht, stuurt de bezoeker door naar een interne pagina of stuurt de "
703
  "bezoeker door naar een externe pagina."
704
 
705
- #: libs/blockcountry-settings.php:1324
706
  msgid "Message to display when people are blocked:"
707
  msgstr "Welk bericht wil je tonen aan bezoekers welke geblokkeerd worden:"
708
 
709
- #: libs/blockcountry-settings.php:1335
710
  msgid "Page to redirect to:"
711
  msgstr "Naar welke pagina wilt u bezoekers toesturen:"
712
 
713
- #: libs/blockcountry-settings.php:1336
714
  msgid ""
715
  "If you select a page here blocked visitors will be redirected to this page "
716
  "instead of displaying above block message."
@@ -719,15 +742,15 @@ msgstr ""
719
  "doorgestuurd naar deze pagina anders wordt bovestaande tekst getoond aan "
720
  "bezoekers."
721
 
722
- #: libs/blockcountry-settings.php:1342
723
  msgid "Choose a page..."
724
  msgstr "Kies een pagina..."
725
 
726
- #: libs/blockcountry-settings.php:1357
727
  msgid "URL to redirect to:"
728
  msgstr "Naar welke URL wilt u geblokkerde bezoekers verwijzen:"
729
 
730
- #: libs/blockcountry-settings.php:1358
731
  msgid ""
732
  "If you enter a URL here blocked visitors will be redirected to this URL "
733
  "instead of displaying above block message or redirected to a local page."
@@ -736,15 +759,15 @@ msgstr ""
736
  "naar deze url anders wordt bovestaande blokkeer tekst getoond aan bezoekers "
737
  "of worden bezoekers doorverwezen naar de geselecteerde pagina."
738
 
739
- #: libs/blockcountry-settings.php:1365
740
  msgid "General settings"
741
  msgstr "Algemene instellingen"
742
 
743
- #: libs/blockcountry-settings.php:1369
744
  msgid "Send headers when user is blocked:"
745
  msgstr "Stuur headers wanneer een gebruiker is geblokkeerd:"
746
 
747
- #: libs/blockcountry-settings.php:1370
748
  msgid ""
749
  "Under normal circumstances you should keep this selected! Only if you have "
750
  "\"Cannot modify header information - headers already sent\" errors or if you "
@@ -754,11 +777,11 @@ msgstr ""
754
  "deze alleen indien je \"Cannot modify header information - headers already "
755
  "sent\" foutmeldingen krijgt of indien je weet wat je doet."
756
 
757
- #: libs/blockcountry-settings.php:1376
758
  msgid "Buffer output?:"
759
  msgstr "Buffer output?"
760
 
761
- #: libs/blockcountry-settings.php:1377
762
  msgid ""
763
  "You can use this option to buffer all output. This can be helpful in case "
764
  "you have \"headers already sent\" issues."
@@ -766,11 +789,11 @@ msgstr ""
766
  "Je kunt deze optie gebruiken om alle output te bufferen. Dit kan helpen "
767
  "indien je \"headers already sent\" problemen hebt."
768
 
769
- #: libs/blockcountry-settings.php:1383
770
  msgid "Do not log IP addresses:"
771
  msgstr "Log geen IP adressen"
772
 
773
- #: libs/blockcountry-settings.php:1384
774
  msgid ""
775
  "Check this box if the laws in your country do not permit you to log IP "
776
  "addresses or if you do not want to log the ip addresses."
@@ -779,50 +802,50 @@ msgstr ""
779
  "adressen vast te leggen of indien je zelf deze informatie niet wilt "
780
  "vastleggen."
781
 
782
- #: libs/blockcountry-settings.php:1390
783
  msgid "Do not block admin-ajax.php:"
784
  msgstr "Blokkeer admin-ajax.php niet:"
785
 
786
- #: libs/blockcountry-settings.php:1391
787
  msgid "Check this box if you use a plugin that uses admin-ajax.php."
788
  msgstr ""
789
  "Selecteer deze optie indien je een plugin gebruikt welke gebruik maakt van "
790
  "admin-ajax.php."
791
 
792
- #: libs/blockcountry-settings.php:1400
793
  msgid "Number of rows on logging tab:"
794
  msgstr "Aantal regels op het statistieken tabblad:"
795
 
796
- #: libs/blockcountry-settings.php:1401
797
  msgid "How many rows do you want to display on each column on the logging tab."
798
  msgstr "Hoeveel regels wil je tonen in elke kolom op de statistieken tabblad."
799
 
800
- #: libs/blockcountry-settings.php:1416
801
  msgid "Number of days to keep logging:"
802
  msgstr "Aantal dagen dat je logs wilt bewaren:"
803
 
804
- #: libs/blockcountry-settings.php:1417
805
  msgid "How many days do you want to keep the logging used for the logging tab."
806
  msgstr ""
807
  "Hoeveel dagen wil je de logs bewaren welke gebruikt wordt op het "
808
  "statistieken tabblad."
809
 
810
- #: libs/blockcountry-settings.php:1432
811
  msgid "Do not lookup hosts on the logging tab:"
812
  msgstr "Zoek niet de hostnaam op op het statistieken tabblad."
813
 
814
- #: libs/blockcountry-settings.php:1433
815
  msgid ""
816
  "On some hosting environments looking up hosts may slow down the logging tab."
817
  msgstr ""
818
  "Op sommige hosting omgevingen zal het opzoeken van hostnamen zorgen voor "
819
  "vertraging op het statistieken tabblad."
820
 
821
- #: libs/blockcountry-settings.php:1439
822
  msgid "Allow tracking:"
823
  msgstr "Sta traceren toe:"
824
 
825
- #: libs/blockcountry-settings.php:1440
826
  msgid ""
827
  "This sends only the IP address and the number of attempts this ip address "
828
  "tried to login to your backend and was blocked doing so to a central server. "
@@ -835,11 +858,11 @@ msgstr ""
835
  "ons om beter inzicht te krijgen in de landen waarvandaan een hoop hack "
836
  "pogingen worden gedaan. "
837
 
838
- #: libs/blockcountry-settings.php:1446
839
  msgid "GeoIP API Key:"
840
  msgstr "GeoIP API sleutel:"
841
 
842
- #: libs/blockcountry-settings.php:1447
843
  msgid ""
844
  "If for some reason you cannot or do not want to download the MaxMind GeoIP "
845
  "databases you will need an API key for the GeoIP api.<br />You can get an "
@@ -849,19 +872,19 @@ msgstr ""
849
  "Maxmind GeoIP heb je een API sleutelnodig voor de GeoIP api.<br />Je kunt "
850
  "een API sleutel verkrijgen op:"
851
 
852
- #: libs/blockcountry-settings.php:1455
853
  msgid "GeoIP API Key Server Location:"
854
  msgstr "GeoIP API sleutel server locatie:"
855
 
856
- #: libs/blockcountry-settings.php:1456
857
  msgid "Choose a location closest to your own location."
858
  msgstr "Kies een land welke het dichtsbij is bij je eigen land."
859
 
860
- #: libs/blockcountry-settings.php:1465
861
  msgid "Admin block API Key:"
862
  msgstr "Admin block API Sleutel:"
863
 
864
- #: libs/blockcountry-settings.php:1466
865
  msgid ""
866
  "For additional security you can protect your backend from known IP addresses "
867
  "who have made hack attempts at other WordPress sites.<br />You can get more "
@@ -872,21 +895,21 @@ msgstr ""
872
  "tegen andere WordPress sites.<br />Je kunt meer informatie hierover vinden "
873
  "en een API key verkrijgen op:"
874
 
875
- #: libs/blockcountry-settings.php:1474
876
  msgid "Accessibility options:"
877
  msgstr "Toegankelijkheids opties:"
878
 
879
- #: libs/blockcountry-settings.php:1475
880
  msgid "Set this option if you cannot use the default country selection box."
881
  msgstr ""
882
  "Selecteer deze optie indien je de landen standaard selectie methode niet "
883
  "kunt gebruiken. "
884
 
885
- #: libs/blockcountry-settings.php:1481
886
  msgid "Log all visits:"
887
  msgstr "Log alle bezoekers:"
888
 
889
- #: libs/blockcountry-settings.php:1482
890
  msgid ""
891
  "This logs all visits despite if they are blocked or not. This is only for "
892
  "debugging purposes."
@@ -894,72 +917,72 @@ msgstr ""
894
  "Dit logt alle bezoekers ondanks of ze geblokkeerd zijn of niet. Dit is "
895
  "alleen voor debugging."
896
 
897
- #: libs/blockcountry-settings.php:1508
898
  msgid "Last blocked visits"
899
  msgstr "Laatste geblokkeerde bezoekers"
900
 
901
- #: libs/blockcountry-settings.php:1523
902
  msgid "Date / Time"
903
  msgstr "Datum / Tijd"
904
 
905
- #: libs/blockcountry-settings.php:1523 libs/blockcountry-settings.php:1562
906
  msgid "IP Address"
907
  msgstr "IP adres"
908
 
909
- #: libs/blockcountry-settings.php:1523 libs/blockcountry-settings.php:1562
910
  msgid "Hostname"
911
  msgstr "Hostnaam"
912
 
913
- #: libs/blockcountry-settings.php:1523 libs/blockcountry-settings.php:1549
914
  msgid "Country"
915
  msgstr "Land"
916
 
917
- #: libs/blockcountry-settings.php:1523
918
  msgid "Frontend/Backend"
919
  msgstr "Voorkant/Achterkant"
920
 
921
- #: libs/blockcountry-settings.php:1540 libs/blockcountry-settings.php:1650
922
  msgid "Frontend"
923
  msgstr "Voorkant"
924
 
925
- #: libs/blockcountry-settings.php:1540
926
  msgid "Backend banlist"
927
  msgstr "Achterkant banlist"
928
 
929
- #: libs/blockcountry-settings.php:1540
930
  msgid "Backend & Backend banlist"
931
  msgstr "Achterkant & Achterkant banlist"
932
 
933
- #: libs/blockcountry-settings.php:1540 libs/blockcountry-settings.php:1651
934
  msgid "Backend"
935
  msgstr "Achterkant"
936
 
937
- #: libs/blockcountry-settings.php:1547
938
  msgid "Top countries that are blocked"
939
  msgstr "Top landen welke zijn geblokkeerd"
940
 
941
- #: libs/blockcountry-settings.php:1549 libs/blockcountry-settings.php:1562
942
- #: libs/blockcountry-settings.php:1583
943
  msgid "# of blocked attempts"
944
  msgstr "# of geblokkeerde pogingen"
945
 
946
- #: libs/blockcountry-settings.php:1560
947
  msgid "Top hosts that are blocked"
948
  msgstr "Top hosts welke geblokkeerd zijn"
949
 
950
- #: libs/blockcountry-settings.php:1581
951
  msgid "Top URLs that are blocked"
952
  msgstr "Top URLs welke geblokkeerd zijn"
953
 
954
- #: libs/blockcountry-settings.php:1597
955
  msgid "Clear database"
956
  msgstr "Leeg database"
957
 
958
- #: libs/blockcountry-settings.php:1620
959
  msgid "Download as CSV file"
960
  msgstr "Download als een csv bestand."
961
 
962
- #: libs/blockcountry-settings.php:1627
963
  msgid ""
964
  "You are not logging any information. Please uncheck the option 'Do not log "
965
  "IP addresses' if this is not what you want."
@@ -967,54 +990,57 @@ msgstr ""
967
  "Je logt geen informatie. Deselecteer alstublieft de optie 'Log geen IP "
968
  "adressen' indien dit niet is wat je wilt."
969
 
970
- #: libs/blockcountry-settings.php:1649
971
  msgid "Home"
972
  msgstr "Home"
973
 
974
- #: libs/blockcountry-settings.php:1652
975
  msgid "Pages"
976
  msgstr "Pagina's"
977
 
978
- #: libs/blockcountry-settings.php:1653
979
  msgid "Categories"
980
  msgstr "Categorieen"
981
 
982
- #: libs/blockcountry-settings.php:1654
983
  msgid "Tags"
984
  msgstr "Tags"
985
 
986
- #: libs/blockcountry-settings.php:1654
987
  msgid "Post types"
988
  msgstr "Post types"
989
 
990
- #: libs/blockcountry-settings.php:1655
991
  msgid "Services"
992
  msgstr "Diensten"
993
 
994
- #: libs/blockcountry-settings.php:1656
995
  msgid "Tools"
996
  msgstr "Gereedschap"
997
 
998
- #: libs/blockcountry-settings.php:1657
999
  msgid "Logging"
1000
  msgstr "Statistieken"
1001
 
1002
- #: libs/blockcountry-settings.php:1658
1003
  msgid "Import/Export"
1004
  msgstr "Importeren/Exporteren"
1005
 
1006
- #: libs/blockcountry-validation.php:102
1007
  msgid "The GeoIP API key is incorrect. Please update the key."
1008
  msgstr "De GeoIP API sleutel is incorrect. Corrigeer a.u.b. de sleutel."
1009
 
1010
- #: libs/blockcountry-validation.php:108 libs/blockcountry-validation.php:158
1011
  msgid "Setting saved."
1012
  msgstr "Instellingen opgeslagen."
1013
 
1014
- #: libs/blockcountry-validation.php:152
1015
  msgid "The Admin Block API key is incorrect. Please update the key."
1016
  msgstr "De Admin Block API sleutel is incorrect. Corrigeer a.u.b. de sleutel."
1017
 
 
 
 
1018
  #~ msgid "PHP Safe Mode"
1019
  #~ msgstr "PHP Safe Mode"
1020
 
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: iQ Block Country\n"
4
+ "POT-Creation-Date: 2018-03-28 20:02+0200\n"
5
+ "PO-Revision-Date: 2018-03-28 20:04+0200\n"
6
  "Last-Translator: Pascal <pascal@webence.nl>\n"
7
  "Language-Team: iQ Block Country <support@webence.nl>\n"
8
  "Language: nl\n"
83
  msgid "IP Address to check:"
84
  msgstr "IP adres om te controleren:"
85
 
86
+ #: libs/blockcountry-settings.php:294
87
  msgid "No country for"
88
  msgstr "Geen land voor"
89
 
90
+ #: libs/blockcountry-settings.php:294
91
  msgid "could be found. Or"
92
  msgstr "gevonden. Of"
93
 
94
+ #: libs/blockcountry-settings.php:294
95
  msgid "is not a valid IPv4 or IPv6 IP address"
96
  msgstr "is geen valide IPv4 of IPv6 ip adres."
97
 
98
+ #: libs/blockcountry-settings.php:299
99
  msgid "IP Adress"
100
  msgstr "IP Adres"
101
 
102
+ #: libs/blockcountry-settings.php:299
103
  msgid "belongs to"
104
  msgstr "behoort tot"
105
 
106
+ #: libs/blockcountry-settings.php:305 libs/blockcountry-settings.php:310
107
  msgid "This country is not permitted to visit the frontend of this website."
108
  msgstr ""
109
  "Dit land wordt niet toegestaan om de voorkant van deze website te bezoeken."
110
 
111
+ #: libs/blockcountry-settings.php:319 libs/blockcountry-settings.php:326
112
  msgid "This country is not permitted to visit the backend of this website."
113
  msgstr ""
114
  "Dit land wordt niet toegestaan om de achterkant van deze website te bezoeken."
115
 
116
+ #: libs/blockcountry-settings.php:332
117
+ msgid "This IP address is present in the blacklist."
118
+ msgstr "Dit IP adres staat op de zwarte lijst."
119
 
120
+ #: libs/blockcountry-settings.php:338
121
+ msgid "This IP address is present in the frontend blacklist."
122
+ msgstr "Dit IP adres staat op de zwarte lijst voor de voorkant."
123
+
124
+ #: libs/blockcountry-settings.php:343
125
+ msgid "This IP address is present in the frontend whitelist."
126
+ msgstr "Dit IP adres staat op de witte lijst voor de voorkant."
127
+
128
+ #: libs/blockcountry-settings.php:348
129
+ msgid "This IP address is present in the backend blacklist."
130
+ msgstr "Dit IP adres staat op de zwarte lijst voor de achterkant."
131
+
132
+ #: libs/blockcountry-settings.php:353
133
+ msgid "This IP address is present in the backend whitelist."
134
+ msgstr "Dit IP adres staat op de witte lijst voor de achterkant."
135
+
136
+ #: libs/blockcountry-settings.php:360
137
  msgid "Check IP address"
138
  msgstr "Controleer IP adres"
139
 
140
+ #: libs/blockcountry-settings.php:368
141
  msgid "Database information"
142
  msgstr "Database informatie"
143
 
144
+ #: libs/blockcountry-settings.php:375
145
  msgid "IPv4 database exists. File date: "
146
  msgstr "IPv4 database bestaat. Bestands datum:"
147
 
148
+ #: libs/blockcountry-settings.php:382 libs/blockcountry-settings.php:417
149
  msgid "Database is older than 3 months... Please update..."
150
  msgstr ""
151
  "Uw MaxMind GeoIP database is ouder dan 3 maanden. Update je database "
152
  "alstublieft."
153
 
154
+ #: libs/blockcountry-settings.php:387
155
  msgid "IPv4 database does not exist."
156
  msgstr "IPv4 database bestaat niet."
157
 
158
+ #: libs/blockcountry-settings.php:393
159
  msgid "IPv6 database exists. File date: "
160
  msgstr "IPv6 database bestaat. Bestands datum:"
161
 
162
+ #: libs/blockcountry-settings.php:400
163
  msgid "Database is older than 3 months... Please update..."
164
  msgstr ""
165
  "Uw MaxMind GeoIP database is ouder dan 3 maanden. Update je database "
166
  "alstublieft."
167
 
168
+ #: libs/blockcountry-settings.php:405
169
  msgid "IPv6 database does not exist."
170
  msgstr "IPv6 database bestaat niet."
171
 
172
+ #: libs/blockcountry-settings.php:410
173
  msgid "GeoIP2 database exists. File date: "
174
  msgstr "GeoIP2 database bestaat. Bestands datum:"
175
 
176
+ #: libs/blockcountry-settings.php:422
177
  msgid "GeoIP2 database does not exist."
178
  msgstr "GeoIP2 database bestaat niet."
179
 
180
+ #: libs/blockcountry-settings.php:429
181
  msgid "Your GeoIP API key is valid till: "
182
  msgstr "Uw GeoIP API key is geldig tot:"
183
 
184
+ #: libs/blockcountry-settings.php:436
185
  msgid "Active plugins"
186
  msgstr "Actieve plugins"
187
 
188
+ #: libs/blockcountry-settings.php:443
189
  msgid "Plugin name"
190
  msgstr "Plugin naam"
191
 
192
+ #: libs/blockcountry-settings.php:443
193
  msgid "Version"
194
  msgstr "Versie"
195
 
196
+ #: libs/blockcountry-settings.php:443 libs/blockcountry-settings.php:1547
197
+ #: libs/blockcountry-settings.php:1607
198
  msgid "URL"
199
  msgstr "URL"
200
 
201
+ #: libs/blockcountry-settings.php:462
202
  msgid "none"
203
  msgstr "Geen"
204
 
205
+ #: libs/blockcountry-settings.php:468 libs/blockcountry-settings.php:469
206
  msgid "unavailable"
207
  msgstr "niet beschikbaar"
208
 
209
+ #: libs/blockcountry-settings.php:473
210
  msgid "File System Information"
211
  msgstr "File systeem informatie"
212
 
213
+ #: libs/blockcountry-settings.php:476
214
  msgid "Website Root Folder"
215
  msgstr "Website root directory"
216
 
217
+ #: libs/blockcountry-settings.php:477 libs/blockcountry-settings.php:671
218
  msgid "Document Root Path"
219
  msgstr "Document root pad"
220
 
221
+ #: libs/blockcountry-settings.php:481
222
  msgid "Database Information"
223
  msgstr "Database informatie"
224
 
225
+ #: libs/blockcountry-settings.php:483
226
  msgid "MySQL Database Version"
227
  msgstr "MySQL Database versie"
228
 
229
+ #: libs/blockcountry-settings.php:484
230
  msgid "MySQL Client Version"
231
  msgstr "MySQL Client versie"
232
 
233
+ #: libs/blockcountry-settings.php:485
234
  msgid "Database Host"
235
  msgstr "Database Host"
236
 
237
+ #: libs/blockcountry-settings.php:491
238
  msgid "Not Set"
239
  msgstr "Niet gezet"
240
 
241
+ #: libs/blockcountry-settings.php:493 libs/blockcountry-settings.php:573
242
+ #: libs/blockcountry-settings.php:581 libs/blockcountry-settings.php:589
243
+ #: libs/blockcountry-settings.php:597 libs/blockcountry-settings.php:606
244
+ #: libs/blockcountry-settings.php:623
245
  msgid "Off"
246
  msgstr "Uit"
247
 
248
+ #: libs/blockcountry-settings.php:496
249
  msgid "SQL Mode"
250
  msgstr "SQL Mode"
251
 
252
+ #: libs/blockcountry-settings.php:500
253
  msgid "Server Information"
254
  msgstr "Server informatie"
255
 
256
+ #: libs/blockcountry-settings.php:505
257
  msgid "Server IP Address"
258
  msgstr "Server IP Adres"
259
 
260
+ #: libs/blockcountry-settings.php:507
261
  msgid "Server Type"
262
  msgstr "Server Type"
263
 
264
+ #: libs/blockcountry-settings.php:508
265
  msgid "Operating System"
266
  msgstr "Operating System"
267
 
268
+ #: libs/blockcountry-settings.php:509
269
  msgid "Browser Compression Supported"
270
  msgstr "Browser Compressie ondersteund"
271
 
272
+ #: libs/blockcountry-settings.php:525
273
  msgid "undefined"
274
  msgstr "Ongedefinieerd"
275
 
276
+ #: libs/blockcountry-settings.php:532
277
  msgid "PHP Process User (UID:GID)"
278
  msgstr "PHP Process User (UID:GID)"
279
 
280
+ #: libs/blockcountry-settings.php:537
281
  msgid "PHP Information"
282
  msgstr "PHP Informatie"
283
 
284
+ #: libs/blockcountry-settings.php:542
285
  msgid "PHP Version"
286
  msgstr "PHP versie"
287
 
288
+ #: libs/blockcountry-settings.php:543
289
  msgid "PHP Memory Usage"
290
  msgstr "PHP Memory Usage"
291
 
292
+ #: libs/blockcountry-settings.php:543
293
  msgid " MB"
294
  msgstr " MB"
295
 
296
+ #: libs/blockcountry-settings.php:549 libs/blockcountry-settings.php:557
297
+ #: libs/blockcountry-settings.php:565 libs/blockcountry-settings.php:614
298
  msgid "N/A"
299
  msgstr "N/A"
300
 
301
+ #: libs/blockcountry-settings.php:552
302
  msgid "PHP Memory Limit"
303
  msgstr "PHP Memory Limit"
304
 
305
+ #: libs/blockcountry-settings.php:560
306
  msgid "PHP Max Upload Size"
307
  msgstr "PHP Max Upload Size"
308
 
309
+ #: libs/blockcountry-settings.php:568
310
  msgid "PHP Max Post Size"
311
  msgstr "PHP Max Post Size"
312
 
313
+ #: libs/blockcountry-settings.php:571 libs/blockcountry-settings.php:579
314
+ #: libs/blockcountry-settings.php:587 libs/blockcountry-settings.php:595
315
+ #: libs/blockcountry-settings.php:604 libs/blockcountry-settings.php:621
316
  msgid "On"
317
  msgstr "Aan"
318
 
319
+ #: libs/blockcountry-settings.php:576
320
  msgid "PHP Allow URL fopen"
321
  msgstr "PHP Allow URL fopen"
322
 
323
+ #: libs/blockcountry-settings.php:584
324
  msgid "PHP Allow URL Include"
325
  msgstr "PHP Allow URL Include"
326
 
327
+ #: libs/blockcountry-settings.php:592
328
  msgid "PHP Display Errors"
329
  msgstr "PHP Display Errors"
330
 
331
+ #: libs/blockcountry-settings.php:600
332
  msgid "PHP Display Startup Errors"
333
  msgstr "PHP Display Startup Errors"
334
 
335
+ #: libs/blockcountry-settings.php:609
336
  msgid "PHP Expose PHP"
337
  msgstr "PHP Expose PHP"
338
 
339
+ #: libs/blockcountry-settings.php:617
340
  msgid "PHP Max Script Execution Time"
341
  msgstr "PHP Max Script Execution Time"
342
 
343
+ #: libs/blockcountry-settings.php:618
344
  msgid "Seconds"
345
  msgstr "Seconden"
346
 
347
+ #: libs/blockcountry-settings.php:626
348
  msgid "PHP open_basedir"
349
  msgstr "PHP open_basedir"
350
 
351
+ #: libs/blockcountry-settings.php:629 libs/blockcountry-settings.php:637
352
  msgid "Yes"
353
  msgstr "Ja"
354
 
355
+ #: libs/blockcountry-settings.php:631 libs/blockcountry-settings.php:639
356
  msgid "No"
357
  msgstr "Nee"
358
 
359
+ #: libs/blockcountry-settings.php:634
360
  msgid "PHP XML Support"
361
  msgstr "PHP XML Support"
362
 
363
+ #: libs/blockcountry-settings.php:642
364
  msgid "PHP IPTC Support"
365
  msgstr "PHP IPTC Support"
366
 
367
+ #: libs/blockcountry-settings.php:644
368
  msgid "Disabled PHP Functions"
369
  msgstr "Disabled PHP Functions"
370
 
371
+ #: libs/blockcountry-settings.php:651
372
  msgid "Wordpress info"
373
  msgstr "Wordpress Informatie"
374
 
375
+ #: libs/blockcountry-settings.php:656
376
  msgid "is enabled"
377
  msgstr "is aangezet"
378
 
379
+ #: libs/blockcountry-settings.php:658
380
  msgid "is disabled"
381
  msgstr "Is uitgezet"
382
 
383
+ #: libs/blockcountry-settings.php:661
384
  msgid " Multisite"
385
  msgstr "Multisite"
386
 
387
+ #: libs/blockcountry-settings.php:664
388
  msgid "are enabled"
389
  msgstr "is aangezet"
390
 
391
+ #: libs/blockcountry-settings.php:666
392
  msgid "are disabled"
393
  msgstr "Is uitgezet"
394
 
395
+ #: libs/blockcountry-settings.php:669
396
  msgid "Permalinks"
397
  msgstr "Permalinks"
398
 
399
+ #: libs/blockcountry-settings.php:686
400
  msgid "Export"
401
  msgstr "Exporteren"
402
 
403
+ #: libs/blockcountry-settings.php:687
404
  msgid ""
405
  "When you click on <tt>Backup all settings</tt> button a backup of the iQ "
406
  "Block Country configuration will be created."
408
  "Wanneer je klikt op de <tt>Backup alle instellingen</tt> knop zal een backup "
409
  "van alle iQ Block Country instellingen worden gecreerd."
410
 
411
+ #: libs/blockcountry-settings.php:688
412
  msgid ""
413
  "After exporting, you can either use the backup file to restore your settings "
414
  "on this site again or copy the settings to another WordPress site."
417
  "te herstellen of je kunt het bestand gebruiken om je instellingen naar een "
418
  "andere WordPress site te exporteren."
419
 
420
+ #: libs/blockcountry-settings.php:692
421
  msgid "Backup all settings"
422
  msgstr "Backup alle instellingen"
423
 
424
+ #: libs/blockcountry-settings.php:699
425
  msgid "Import"
426
  msgstr "Importeer"
427
 
428
+ #: libs/blockcountry-settings.php:700
429
  msgid "Click the browse button and choose a zip file that you exported before."
430
  msgstr ""
431
  "Klik op de Browse button and selecteer een zip file welke je eerder hebt "
432
  "geexporteerd."
433
 
434
+ #: libs/blockcountry-settings.php:701
435
  msgid "Press Restore settings button, and let WordPress do the magic for you."
436
  msgstr ""
437
  "Druk op de herstel instellingen knop en laat WordPress haar magie voor je "
438
  "doen."
439
 
440
+ #: libs/blockcountry-settings.php:706
441
  msgid "Restore settings"
442
  msgstr "Herstel instellingen"
443
 
444
+ #: libs/blockcountry-settings.php:729 libs/blockcountry-settings.php:732
445
+ #: libs/blockcountry-settings.php:741
446
  msgid "Something went wrong exporting this file"
447
  msgstr "Er is iets verkeerd gegaan met het exporteren van het bestand."
448
 
449
+ #: libs/blockcountry-settings.php:744
450
  msgid "Exporting settings..."
451
  msgstr "Exporteer instellingen"
452
 
453
+ #: libs/blockcountry-settings.php:759
454
  msgid "Something went wrong importing this file"
455
  msgstr "Er is iets verkeerd gegaan met het importeren van dit bestand"
456
 
457
+ #: libs/blockcountry-settings.php:776
458
  msgid "All options are restored successfully."
459
  msgstr "Alle opties zijn succesvol hersteld"
460
 
461
+ #: libs/blockcountry-settings.php:779
462
  msgid "Invalid file."
463
  msgstr "Ongeldig bestand"
464
 
465
+ #: libs/blockcountry-settings.php:784
466
  msgid "No correct import or export option given."
467
  msgstr "Geen correcte importeer of exporteer optie gegeven."
468
 
469
+ #: libs/blockcountry-settings.php:793
470
  msgid "Select which pages are blocked."
471
  msgstr "Selecteer welke pagina's geblokkeerd worden."
472
 
473
+ #: libs/blockcountry-settings.php:800
474
  msgid "Do you want to block individual pages:"
475
  msgstr "Wil je individuele pagina's blokkeren:"
476
 
477
+ #: libs/blockcountry-settings.php:801
478
  msgid "If you do not select this option all pages will be blocked."
479
  msgstr "Indien je deze optie niet selecteert worden alle pagina's geblokkeerd."
480
 
481
+ #: libs/blockcountry-settings.php:806
482
  msgid "Select pages you want to block:"
483
  msgstr "Selecteer welke pagina's je wil blokkeren."
484
 
485
+ #: libs/blockcountry-settings.php:828 libs/blockcountry-settings.php:882
486
+ #: libs/blockcountry-settings.php:930 libs/blockcountry-settings.php:978
487
+ #: libs/blockcountry-settings.php:1025 libs/blockcountry-settings.php:1157
488
+ #: libs/blockcountry-settings.php:1286 libs/blockcountry-settings.php:1514
489
  msgid "Save Changes"
490
  msgstr "Bewaar wijzigingen"
491
 
492
+ #: libs/blockcountry-settings.php:841
493
  msgid "Select which categories are blocked."
494
  msgstr "Selecteer welke categorieen geblokkeerd worden."
495
 
496
+ #: libs/blockcountry-settings.php:848
497
  msgid "Do you want to block individual categories:"
498
  msgstr "Wil je individuele categorieen blokkeren:"
499
 
500
+ #: libs/blockcountry-settings.php:849 libs/blockcountry-settings.php:903
501
  msgid "If you do not select this option all blog articles will be blocked."
502
  msgstr ""
503
  "Indien je deze optie niet selecteert worden alle blog artikelen geblokkeerd."
504
 
505
+ #: libs/blockcountry-settings.php:854
506
  msgid "Do you want to block the homepage:"
507
  msgstr "Wil je je homepage blokkeren:"
508
 
509
+ #: libs/blockcountry-settings.php:855
510
  msgid ""
511
  "If you do not select this option visitors will not be blocked from your "
512
  "homepage regardless of the categories you select."
515
  "geblokkeerd van het bezoeken van je homepagina ongeacht welke categorieen je "
516
  "selecteert."
517
 
518
+ #: libs/blockcountry-settings.php:860
519
  msgid "Select categories you want to block:"
520
  msgstr "Selecteer welke categorieen je wil blokkeren."
521
 
522
+ #: libs/blockcountry-settings.php:895
523
  msgid "Select which tags are blocked."
524
  msgstr "Selecteer welke tags geblokkeerd moeten worden."
525
 
526
+ #: libs/blockcountry-settings.php:902
527
  msgid "Do you want to block individual tags:"
528
  msgstr "Wil je individuele tags blokkeren?:"
529
 
530
+ #: libs/blockcountry-settings.php:908
531
  msgid "Select tags you want to block:"
532
  msgstr "Selecteer welke tags geblokkeerd moeten worden."
533
 
534
+ #: libs/blockcountry-settings.php:944
535
  msgid "Select which post types are blocked."
536
  msgstr "Selecteer welke post types geblokkeerd worden."
537
 
538
+ #: libs/blockcountry-settings.php:951
539
  msgid "Do you want to block individual post types:"
540
  msgstr "Wil je individuele post types blokkeren:"
541
 
542
+ #: libs/blockcountry-settings.php:956
543
  msgid "Select post types you want to block:"
544
  msgstr "Selecteer welke post types je wil blokkeren."
545
 
546
+ #: libs/blockcountry-settings.php:993
547
  msgid "Select which services are allowed."
548
  msgstr "Selecteer welke diensten je wilt toestaan."
549
 
550
+ #: libs/blockcountry-settings.php:1000
551
  msgid "Select which services you want to allow:"
552
  msgstr "Selecteer welke diensten je wilt toestaan:"
553
 
554
+ #: libs/blockcountry-settings.php:1001
555
  msgid ""
556
  "This will allow a service like for instance a search engine to your site "
557
  "despite if you blocked the country."
559
  "Dit staat een dienst toe zoals bijvoorbeeld een zoek machine ongeacht of je "
560
  "het land van de zoekmachine hebt geblokkeerd."
561
 
562
+ #: libs/blockcountry-settings.php:1002
563
  msgid "Please note the \"Search Engine Visibility\" should not be selected in "
564
  msgstr ""
565
  "Let op: \"Zoekmachine zichtbaarheid\" dient niet geselecteer te staan op "
566
 
567
+ #: libs/blockcountry-settings.php:1002
568
  msgid "reading settings."
569
  msgstr "lezen instellingen"
570
 
571
+ #: libs/blockcountry-settings.php:1040
572
  msgid "Frontend options"
573
  msgstr "Voorkant opties"
574
 
575
+ #: libs/blockcountry-settings.php:1067
576
  msgid ""
577
  "Do not block visitors that are logged in from visiting frontend website:"
578
  msgstr ""
579
  "Blokkeer geen bezoekers welke ingelogd zijn van het bezoeken van de voorkant:"
580
 
581
+ #: libs/blockcountry-settings.php:1073
582
  msgid "Block visitors from visiting the frontend of your website:"
583
  msgstr "Blokkeer bezoekers van het bezoeken van de voorkant van je website:"
584
 
585
+ #: libs/blockcountry-settings.php:1079
586
  msgid "Block visitors from using the search function of your website:"
587
  msgstr ""
588
  "Blokkeer bezoekers van het bezoeken van de zoek functie van je website:"
589
 
590
+ #: libs/blockcountry-settings.php:1085
591
  msgid ""
592
  "Select the countries that should be blocked from visiting your frontend:"
593
  msgstr ""
594
  "Selecteer de landen welke geblokkeerd moeten worden voor het bezoeken van de "
595
  "voorkant van je website:"
596
 
597
+ #: libs/blockcountry-settings.php:1086
598
  msgid "Use the CTRL key to select multiple countries"
599
  msgstr "Gebruik de CTRL toets om meerdere landen te selecteren"
600
 
601
+ #: libs/blockcountry-settings.php:1128 libs/blockcountry-settings.php:1262
602
  msgid "Inverse the selection above:"
603
  msgstr "Keer bovenstaande selectie om:"
604
 
605
+ #: libs/blockcountry-settings.php:1129 libs/blockcountry-settings.php:1263
606
  msgid ""
607
  "If you select this option only the countries that are selected are "
608
  "<em>allowed</em>."
610
  "Indien je deze optie selecteert de zijn de landen die hierboven geselecteerd "
611
  "<em>toegestaan</em>."
612
 
613
+ #: libs/blockcountry-settings.php:1134
614
  msgid "Block tag pages:"
615
  msgstr "Blokkeer tag pagina's"
616
 
617
+ #: libs/blockcountry-settings.php:1135
618
  msgid "If you select this option tag pages will be blocked."
619
  msgstr "Indien je deze optie selecteert worden tag pagina's geblokkeerd."
620
 
621
+ #: libs/blockcountry-settings.php:1140
622
  msgid "Frontend whitelist IPv4 and/or IPv6 addresses:"
623
  msgstr ""
624
  "Whitelist van IPv4 of IPv6 IP adressen voor de voorkant van je website:"
625
 
626
+ #: libs/blockcountry-settings.php:1140 libs/blockcountry-settings.php:1148
627
+ #: libs/blockcountry-settings.php:1269 libs/blockcountry-settings.php:1277
628
  msgid "Use a semicolon (;) to separate IP addresses"
629
  msgstr "Gebruik een puntkomma (;) om adressen van elkaar te scheiden"
630
 
631
+ #: libs/blockcountry-settings.php:1140 libs/blockcountry-settings.php:1148
632
+ #: libs/blockcountry-settings.php:1269 libs/blockcountry-settings.php:1277
633
+ msgid ""
634
+ "This field accepts single IP addresses as well as ranges in CIDR format."
635
+ msgstr ""
636
+ "Dit veld accepteert zowel enkele IP adressen als IP reeksen in CIDR formaat."
637
+
638
+ #: libs/blockcountry-settings.php:1148
639
  msgid "Frontend blacklist IPv4 and/or IPv6 addresses:"
640
  msgstr ""
641
  "Blacklist van IPv4 of IPv6 IP adressen voor de voorkant van je website:"
642
 
643
+ #: libs/blockcountry-settings.php:1177
644
  msgid "Backend Options"
645
  msgstr "Achterkant opties"
646
 
647
+ #: libs/blockcountry-settings.php:1205
648
  msgid ""
649
  "Block visitors from visiting the backend (administrator) of your website:"
650
  msgstr ""
651
  "Blokkeer bezoekers van het bezoeken van de achterkant (administratie "
652
  "gedeelte) van je website:"
653
 
654
+ #: libs/blockcountry-settings.php:1213
655
  msgid "Your IP address is"
656
  msgstr "Je IP adres is"
657
 
658
+ #: libs/blockcountry-settings.php:1213
659
  msgid "The country that is listed for this IP address is"
660
  msgstr "Het land waar dit adres toe behoort is"
661
 
662
+ #: libs/blockcountry-settings.php:1214
663
  msgid ""
664
  "Do <strong>NOT</strong> set the 'Block visitors from visiting the backend "
665
  "(administrator) of your website' and also select"
667
  "Selecteer <strong>NIET</strong> \"Blokkeer bezoekers van het bezoeken van de "
668
  "achterkant (administratie gedeelte) van je website\" en"
669
 
670
+ #: libs/blockcountry-settings.php:1214
671
  msgid "below."
672
  msgstr "hier beneden."
673
 
674
+ #: libs/blockcountry-settings.php:1215
675
  msgid ""
676
  "You will NOT be able to login the next time if you DO block your own country "
677
  "from visiting the backend."
679
  "Het zal daarna niet meer mogelijk zijn om nog in te loggen als je je eigen "
680
  "land blokkeert van het bezoeken van de achterkant van je website."
681
 
682
+ #: libs/blockcountry-settings.php:1220
683
  msgid "Select the countries that should be blocked from visiting your backend:"
684
  msgstr ""
685
  "Selecteer de landen welke geblokkeerd moeten worden voor het bezoeken van de "
686
  "achterkant (administratie gedeelte) van je website:"
687
 
688
+ #: libs/blockcountry-settings.php:1221
689
  msgid "Use the x behind the country to remove a country from this blocklist."
690
  msgstr ""
691
  "Gebruik de x achter een land om het land te verwijderen uit deze lijst."
692
 
693
+ #: libs/blockcountry-settings.php:1269
694
  msgid "Backend whitelist IPv4 and/or IPv6 addresses:"
695
  msgstr ""
696
  "Whitelist van IPv4 of IPv6 IP adressen voor de achterkant van je website:"
697
 
698
+ #: libs/blockcountry-settings.php:1277
699
  msgid "Backend blacklist IPv4 and/or IPv6 addresses:"
700
  msgstr ""
701
  "Blacklist van IPv4 of IPv6 IP adressen voor de achterkant van je website:"
702
 
703
+ #: libs/blockcountry-settings.php:1319
704
  msgid "Overall statistics since start"
705
  msgstr "Statistieken sinds het begin"
706
 
707
+ #: libs/blockcountry-settings.php:1322
708
  msgid "visitors blocked from the backend."
709
  msgstr "bezoekers geblokkeerd op de achterkant."
710
 
711
+ #: libs/blockcountry-settings.php:1324
712
  msgid "visitors blocked from the frontend."
713
  msgstr "bezoekers geblokkeerd op de voorkant."
714
 
715
+ #: libs/blockcountry-settings.php:1341
716
  msgid "Block type"
717
  msgstr "Blokkeer type"
718
 
719
+ #: libs/blockcountry-settings.php:1343
720
  msgid ""
721
  "You should choose one of the 3 block options below. This wil either show a "
722
  "block message, redirect to an internal page or redirect to an external page."
725
  "bericht, stuurt de bezoeker door naar een interne pagina of stuurt de "
726
  "bezoeker door naar een externe pagina."
727
 
728
+ #: libs/blockcountry-settings.php:1348
729
  msgid "Message to display when people are blocked:"
730
  msgstr "Welk bericht wil je tonen aan bezoekers welke geblokkeerd worden:"
731
 
732
+ #: libs/blockcountry-settings.php:1359
733
  msgid "Page to redirect to:"
734
  msgstr "Naar welke pagina wilt u bezoekers toesturen:"
735
 
736
+ #: libs/blockcountry-settings.php:1360
737
  msgid ""
738
  "If you select a page here blocked visitors will be redirected to this page "
739
  "instead of displaying above block message."
742
  "doorgestuurd naar deze pagina anders wordt bovestaande tekst getoond aan "
743
  "bezoekers."
744
 
745
+ #: libs/blockcountry-settings.php:1366
746
  msgid "Choose a page..."
747
  msgstr "Kies een pagina..."
748
 
749
+ #: libs/blockcountry-settings.php:1381
750
  msgid "URL to redirect to:"
751
  msgstr "Naar welke URL wilt u geblokkerde bezoekers verwijzen:"
752
 
753
+ #: libs/blockcountry-settings.php:1382
754
  msgid ""
755
  "If you enter a URL here blocked visitors will be redirected to this URL "
756
  "instead of displaying above block message or redirected to a local page."
759
  "naar deze url anders wordt bovestaande blokkeer tekst getoond aan bezoekers "
760
  "of worden bezoekers doorverwezen naar de geselecteerde pagina."
761
 
762
+ #: libs/blockcountry-settings.php:1389
763
  msgid "General settings"
764
  msgstr "Algemene instellingen"
765
 
766
+ #: libs/blockcountry-settings.php:1393
767
  msgid "Send headers when user is blocked:"
768
  msgstr "Stuur headers wanneer een gebruiker is geblokkeerd:"
769
 
770
+ #: libs/blockcountry-settings.php:1394
771
  msgid ""
772
  "Under normal circumstances you should keep this selected! Only if you have "
773
  "\"Cannot modify header information - headers already sent\" errors or if you "
777
  "deze alleen indien je \"Cannot modify header information - headers already "
778
  "sent\" foutmeldingen krijgt of indien je weet wat je doet."
779
 
780
+ #: libs/blockcountry-settings.php:1400
781
  msgid "Buffer output?:"
782
  msgstr "Buffer output?"
783
 
784
+ #: libs/blockcountry-settings.php:1401
785
  msgid ""
786
  "You can use this option to buffer all output. This can be helpful in case "
787
  "you have \"headers already sent\" issues."
789
  "Je kunt deze optie gebruiken om alle output te bufferen. Dit kan helpen "
790
  "indien je \"headers already sent\" problemen hebt."
791
 
792
+ #: libs/blockcountry-settings.php:1407
793
  msgid "Do not log IP addresses:"
794
  msgstr "Log geen IP adressen"
795
 
796
+ #: libs/blockcountry-settings.php:1408
797
  msgid ""
798
  "Check this box if the laws in your country do not permit you to log IP "
799
  "addresses or if you do not want to log the ip addresses."
802
  "adressen vast te leggen of indien je zelf deze informatie niet wilt "
803
  "vastleggen."
804
 
805
+ #: libs/blockcountry-settings.php:1414
806
  msgid "Do not block admin-ajax.php:"
807
  msgstr "Blokkeer admin-ajax.php niet:"
808
 
809
+ #: libs/blockcountry-settings.php:1415
810
  msgid "Check this box if you use a plugin that uses admin-ajax.php."
811
  msgstr ""
812
  "Selecteer deze optie indien je een plugin gebruikt welke gebruik maakt van "
813
  "admin-ajax.php."
814
 
815
+ #: libs/blockcountry-settings.php:1424
816
  msgid "Number of rows on logging tab:"
817
  msgstr "Aantal regels op het statistieken tabblad:"
818
 
819
+ #: libs/blockcountry-settings.php:1425
820
  msgid "How many rows do you want to display on each column on the logging tab."
821
  msgstr "Hoeveel regels wil je tonen in elke kolom op de statistieken tabblad."
822
 
823
+ #: libs/blockcountry-settings.php:1440
824
  msgid "Number of days to keep logging:"
825
  msgstr "Aantal dagen dat je logs wilt bewaren:"
826
 
827
+ #: libs/blockcountry-settings.php:1441
828
  msgid "How many days do you want to keep the logging used for the logging tab."
829
  msgstr ""
830
  "Hoeveel dagen wil je de logs bewaren welke gebruikt wordt op het "
831
  "statistieken tabblad."
832
 
833
+ #: libs/blockcountry-settings.php:1456
834
  msgid "Do not lookup hosts on the logging tab:"
835
  msgstr "Zoek niet de hostnaam op op het statistieken tabblad."
836
 
837
+ #: libs/blockcountry-settings.php:1457
838
  msgid ""
839
  "On some hosting environments looking up hosts may slow down the logging tab."
840
  msgstr ""
841
  "Op sommige hosting omgevingen zal het opzoeken van hostnamen zorgen voor "
842
  "vertraging op het statistieken tabblad."
843
 
844
+ #: libs/blockcountry-settings.php:1463
845
  msgid "Allow tracking:"
846
  msgstr "Sta traceren toe:"
847
 
848
+ #: libs/blockcountry-settings.php:1464
849
  msgid ""
850
  "This sends only the IP address and the number of attempts this ip address "
851
  "tried to login to your backend and was blocked doing so to a central server. "
858
  "ons om beter inzicht te krijgen in de landen waarvandaan een hoop hack "
859
  "pogingen worden gedaan. "
860
 
861
+ #: libs/blockcountry-settings.php:1470
862
  msgid "GeoIP API Key:"
863
  msgstr "GeoIP API sleutel:"
864
 
865
+ #: libs/blockcountry-settings.php:1471
866
  msgid ""
867
  "If for some reason you cannot or do not want to download the MaxMind GeoIP "
868
  "databases you will need an API key for the GeoIP api.<br />You can get an "
872
  "Maxmind GeoIP heb je een API sleutelnodig voor de GeoIP api.<br />Je kunt "
873
  "een API sleutel verkrijgen op:"
874
 
875
+ #: libs/blockcountry-settings.php:1479
876
  msgid "GeoIP API Key Server Location:"
877
  msgstr "GeoIP API sleutel server locatie:"
878
 
879
+ #: libs/blockcountry-settings.php:1480
880
  msgid "Choose a location closest to your own location."
881
  msgstr "Kies een land welke het dichtsbij is bij je eigen land."
882
 
883
+ #: libs/blockcountry-settings.php:1489
884
  msgid "Admin block API Key:"
885
  msgstr "Admin block API Sleutel:"
886
 
887
+ #: libs/blockcountry-settings.php:1490
888
  msgid ""
889
  "For additional security you can protect your backend from known IP addresses "
890
  "who have made hack attempts at other WordPress sites.<br />You can get more "
895
  "tegen andere WordPress sites.<br />Je kunt meer informatie hierover vinden "
896
  "en een API key verkrijgen op:"
897
 
898
+ #: libs/blockcountry-settings.php:1498
899
  msgid "Accessibility options:"
900
  msgstr "Toegankelijkheids opties:"
901
 
902
+ #: libs/blockcountry-settings.php:1499
903
  msgid "Set this option if you cannot use the default country selection box."
904
  msgstr ""
905
  "Selecteer deze optie indien je de landen standaard selectie methode niet "
906
  "kunt gebruiken. "
907
 
908
+ #: libs/blockcountry-settings.php:1505
909
  msgid "Log all visits:"
910
  msgstr "Log alle bezoekers:"
911
 
912
+ #: libs/blockcountry-settings.php:1506
913
  msgid ""
914
  "This logs all visits despite if they are blocked or not. This is only for "
915
  "debugging purposes."
917
  "Dit logt alle bezoekers ondanks of ze geblokkeerd zijn of niet. Dit is "
918
  "alleen voor debugging."
919
 
920
+ #: libs/blockcountry-settings.php:1532
921
  msgid "Last blocked visits"
922
  msgstr "Laatste geblokkeerde bezoekers"
923
 
924
+ #: libs/blockcountry-settings.php:1547
925
  msgid "Date / Time"
926
  msgstr "Datum / Tijd"
927
 
928
+ #: libs/blockcountry-settings.php:1547 libs/blockcountry-settings.php:1586
929
  msgid "IP Address"
930
  msgstr "IP adres"
931
 
932
+ #: libs/blockcountry-settings.php:1547 libs/blockcountry-settings.php:1586
933
  msgid "Hostname"
934
  msgstr "Hostnaam"
935
 
936
+ #: libs/blockcountry-settings.php:1547 libs/blockcountry-settings.php:1573
937
  msgid "Country"
938
  msgstr "Land"
939
 
940
+ #: libs/blockcountry-settings.php:1547
941
  msgid "Frontend/Backend"
942
  msgstr "Voorkant/Achterkant"
943
 
944
+ #: libs/blockcountry-settings.php:1564 libs/blockcountry-settings.php:1674
945
  msgid "Frontend"
946
  msgstr "Voorkant"
947
 
948
+ #: libs/blockcountry-settings.php:1564
949
  msgid "Backend banlist"
950
  msgstr "Achterkant banlist"
951
 
952
+ #: libs/blockcountry-settings.php:1564
953
  msgid "Backend & Backend banlist"
954
  msgstr "Achterkant & Achterkant banlist"
955
 
956
+ #: libs/blockcountry-settings.php:1564 libs/blockcountry-settings.php:1675
957
  msgid "Backend"
958
  msgstr "Achterkant"
959
 
960
+ #: libs/blockcountry-settings.php:1571
961
  msgid "Top countries that are blocked"
962
  msgstr "Top landen welke zijn geblokkeerd"
963
 
964
+ #: libs/blockcountry-settings.php:1573 libs/blockcountry-settings.php:1586
965
+ #: libs/blockcountry-settings.php:1607
966
  msgid "# of blocked attempts"
967
  msgstr "# of geblokkeerde pogingen"
968
 
969
+ #: libs/blockcountry-settings.php:1584
970
  msgid "Top hosts that are blocked"
971
  msgstr "Top hosts welke geblokkeerd zijn"
972
 
973
+ #: libs/blockcountry-settings.php:1605
974
  msgid "Top URLs that are blocked"
975
  msgstr "Top URLs welke geblokkeerd zijn"
976
 
977
+ #: libs/blockcountry-settings.php:1621
978
  msgid "Clear database"
979
  msgstr "Leeg database"
980
 
981
+ #: libs/blockcountry-settings.php:1644
982
  msgid "Download as CSV file"
983
  msgstr "Download als een csv bestand."
984
 
985
+ #: libs/blockcountry-settings.php:1651
986
  msgid ""
987
  "You are not logging any information. Please uncheck the option 'Do not log "
988
  "IP addresses' if this is not what you want."
990
  "Je logt geen informatie. Deselecteer alstublieft de optie 'Log geen IP "
991
  "adressen' indien dit niet is wat je wilt."
992
 
993
+ #: libs/blockcountry-settings.php:1673
994
  msgid "Home"
995
  msgstr "Home"
996
 
997
+ #: libs/blockcountry-settings.php:1676
998
  msgid "Pages"
999
  msgstr "Pagina's"
1000
 
1001
+ #: libs/blockcountry-settings.php:1677
1002
  msgid "Categories"
1003
  msgstr "Categorieen"
1004
 
1005
+ #: libs/blockcountry-settings.php:1678
1006
  msgid "Tags"
1007
  msgstr "Tags"
1008
 
1009
+ #: libs/blockcountry-settings.php:1678
1010
  msgid "Post types"
1011
  msgstr "Post types"
1012
 
1013
+ #: libs/blockcountry-settings.php:1679
1014
  msgid "Services"
1015
  msgstr "Diensten"
1016
 
1017
+ #: libs/blockcountry-settings.php:1680
1018
  msgid "Tools"
1019
  msgstr "Gereedschap"
1020
 
1021
+ #: libs/blockcountry-settings.php:1681
1022
  msgid "Logging"
1023
  msgstr "Statistieken"
1024
 
1025
+ #: libs/blockcountry-settings.php:1682
1026
  msgid "Import/Export"
1027
  msgstr "Importeren/Exporteren"
1028
 
1029
+ #: libs/blockcountry-validation.php:127
1030
  msgid "The GeoIP API key is incorrect. Please update the key."
1031
  msgstr "De GeoIP API sleutel is incorrect. Corrigeer a.u.b. de sleutel."
1032
 
1033
+ #: libs/blockcountry-validation.php:133 libs/blockcountry-validation.php:183
1034
  msgid "Setting saved."
1035
  msgstr "Instellingen opgeslagen."
1036
 
1037
+ #: libs/blockcountry-validation.php:177
1038
  msgid "The Admin Block API key is incorrect. Please update the key."
1039
  msgstr "De Admin Block API sleutel is incorrect. Corrigeer a.u.b. de sleutel."
1040
 
1041
+ #~ msgid "This ip is present in the blacklist."
1042
+ #~ msgstr "Dit ip adres staat op de zwarte lijst"
1043
+
1044
  #~ msgid "PHP Safe Mode"
1045
  #~ msgstr "PHP Safe Mode"
1046
 
libs/blockcountry-checks.php CHANGED
@@ -118,32 +118,12 @@ function iqblockcountry_check($country,$badcountries,$ip_address)
118
  $blockedtag = get_option('blockcountry_blocktag');
119
  $postid = get_the_ID();
120
 
121
- $frontendblacklistip = array(); $frontendblacklist = get_option ( 'blockcountry_frontendblacklist' );
122
- $frontendwhitelistip = array(); $frontendwhitelist = get_option ( 'blockcountry_frontendwhitelist' );
123
- $backendblacklistip = array(); $backendblacklist = get_option ( 'blockcountry_backendblacklist' );
124
- $backendwhitelistip = array(); $backendwhitelist = get_option ( 'blockcountry_backendwhitelist' );
125
 
126
  $backendbanlistip = unserialize(get_option('blockcountry_backendbanlistip'));
127
  $blockredirect = get_option ( 'blockcountry_redirect');
128
 
129
-
130
- if (preg_match('/;/',$frontendblacklist))
131
- {
132
- $frontendblacklistip = explode(";", $frontendblacklist);
133
- }
134
- if (preg_match('/;/',$frontendwhitelist))
135
- {
136
- $frontendwhitelistip = explode(";", $frontendwhitelist);
137
- }
138
- if (preg_match('/;/',$backendblacklist))
139
- {
140
- $backendblacklistip = explode(";", $backendblacklist);
141
- }
142
- if (preg_match('/;/',$backendwhitelist))
143
- {
144
- $backendwhitelistip = explode(";", $backendwhitelist);
145
- }
146
-
147
  /* Block if user is in a bad country from frontend or backend. Unblock may happen later */
148
  if (is_array ( $badcountries ) && in_array ( $country, $badcountries )) {
149
  $blocked = TRUE;
@@ -155,12 +135,14 @@ function iqblockcountry_check($country,$badcountries,$ip_address)
155
 
156
 
157
  /* Check if requested url is not login page. Else check against frontend whitelist/blacklist. */
158
- if (!$blockcountry_is_login_page )
159
  {
160
- if (is_array ( $frontendblacklistip ) && in_array ( $ip_address, $frontendblacklistip)) {
 
161
  $blocked = TRUE;
162
  }
163
- if (is_array ( $frontendwhitelistip ) && in_array ( $ip_address, $frontendwhitelistip)) {
 
164
  $blocked = FALSE;
165
  }
166
  }
@@ -174,10 +156,10 @@ function iqblockcountry_check($country,$badcountries,$ip_address)
174
  global $apiblacklist;
175
  $apiblacklist = TRUE;
176
  }
177
- if (is_array ( $backendblacklistip ) && in_array ( $ip_address, $backendblacklistip)) {
178
  $blocked = TRUE;
179
  }
180
- if (is_array ( $backendwhitelistip ) && in_array ( $ip_address, $backendwhitelistip)) {
181
  $blocked = FALSE;
182
  }
183
  if (iqblockcountry_is_adminajax() && get_option('blockcountry_adminajax'))
@@ -189,10 +171,10 @@ function iqblockcountry_check($country,$badcountries,$ip_address)
189
  if ($blockedposttypes == "on")
190
  {
191
  $blockedposttypes = get_option('blockcountry_posttypes');
192
- if (is_array($blockedposttypes) && in_array(get_post_type( $postid ), $blockedposttypes) && ((is_array ( $badcountries ) && in_array ( $country, $badcountries ) || (is_array ( $frontendblacklistip ) && in_array ( $ip_address, $frontendblacklistip)))))
193
  {
194
  $blocked = TRUE;
195
- if (is_array ( $frontendwhitelistip ) && in_array ( $ip_address, $frontendwhitelistip)) {
196
  $blocked = FALSE;
197
  }
198
  }
@@ -205,10 +187,10 @@ function iqblockcountry_check($country,$badcountries,$ip_address)
205
  if (is_page() && $blockedpage == "on")
206
  {
207
  $blockedpages = get_option('blockcountry_pages');
208
- if (is_page($blockedpages) && !empty($blockedpages) && ((is_array ( $badcountries ) && in_array ( $country, $badcountries ) || (is_array ( $frontendblacklistip ) && in_array ( $ip_address, $frontendblacklistip)))))
209
  {
210
  $blocked = TRUE;
211
- if (is_array ( $frontendwhitelistip ) && in_array ( $ip_address, $frontendwhitelistip)) {
212
  $blocked = FALSE;
213
  }
214
  }
@@ -227,10 +209,10 @@ function iqblockcountry_check($country,$badcountries,$ip_address)
227
  {
228
  if (in_array($value,$blockedcategories))
229
  {
230
- if (is_single() && ((is_array ( $badcountries ) && in_array ( $country, $badcountries ) || (is_array ( $frontendblacklistip ) && in_array ( $ip_address, $frontendblacklistip)))))
231
  {
232
  $flagged = TRUE;
233
- if (is_array ( $frontendwhitelistip ) && in_array ( $ip_address, $frontendwhitelistip)) {
234
  $flagged = FALSE;
235
  }
236
  }
@@ -251,10 +233,11 @@ function iqblockcountry_check($country,$badcountries,$ip_address)
251
  {
252
  if (in_array($tag->term_id,$blockedtags))
253
  {
254
- if (is_single() && ((is_array ( $badcountries ) && in_array ( $country, $badcountries ) || (is_array ( $frontendblacklistip ) && in_array ( $ip_address, $frontendblacklistip)))))
255
  {
256
  $flagged = TRUE;
257
- if (is_array ( $frontendwhitelistip ) && in_array ( $ip_address, $frontendwhitelistip)) {
 
258
  $flagged = FALSE;
259
  }
260
  }
@@ -268,11 +251,12 @@ function iqblockcountry_check($country,$badcountries,$ip_address)
268
  {
269
  $flagged = FALSE;
270
  $blockedcategories = get_option('blockcountry_categories');
271
- if (is_category($blockedcategories) && ((is_array ( $badcountries ) && in_array ( $country, $badcountries ) || (is_array ( $frontendblacklistip ) && in_array ( $ip_address, $frontendblacklistip)))))
272
  {
273
  $flagged = TRUE;
274
  }
275
- if (is_array ( $frontendwhitelistip ) && in_array ( $ip_address, $frontendwhitelistip)) {
 
276
  $flagged = FALSE;
277
  }
278
  if ($flagged) { $blocked = TRUE; } else { $blocked = FALSE; }
@@ -282,11 +266,12 @@ function iqblockcountry_check($country,$badcountries,$ip_address)
282
  if (is_tag() && $blockedtag == "on")
283
  {
284
  $flagged = FALSE;
285
- if ((is_array ( $badcountries ) && in_array ( $country, $badcountries ) || (is_array ( $frontendblacklistip ) && in_array ( $ip_address, $frontendblacklistip))))
286
  {
287
  $flagged = TRUE;
288
  }
289
- if (is_array ( $frontendwhitelistip ) && in_array ( $ip_address, $frontendwhitelistip)) {
 
290
  $flagged = FALSE;
291
  }
292
  if ($flagged) { $blocked = TRUE; } else { $blocked = FALSE; }
@@ -299,11 +284,12 @@ function iqblockcountry_check($country,$badcountries,$ip_address)
299
  if (is_feed())
300
  {
301
  $flagged = FALSE;
302
- if ((is_array ( $badcountries ) && in_array ( $country, $badcountries ) || (is_array ( $frontendblacklistip ) && in_array ( $ip_address, $frontendblacklistip))))
303
  {
304
  $flagged = TRUE;
305
  }
306
- if (is_array ( $frontendwhitelistip ) && in_array ( $ip_address, $frontendwhitelistip)) {
 
307
  $flagged = FALSE;
308
  }
309
  if ($flagged) { $blocked = TRUE; } else { $blocked = FALSE; }
118
  $blockedtag = get_option('blockcountry_blocktag');
119
  $postid = get_the_ID();
120
 
121
+ global $feblacklistip,$feblacklistiprange4,$feblacklistiprange6,$fewhitelistip,$fewhitelistiprange4,$fewhitelistiprange6;
122
+ global $beblacklistip,$beblacklistiprange4,$beblacklistiprange6,$bewhitelistip,$bewhitelistiprange4,$bewhitelistiprange6;
 
 
123
 
124
  $backendbanlistip = unserialize(get_option('blockcountry_backendbanlistip'));
125
  $blockredirect = get_option ( 'blockcountry_redirect');
126
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
127
  /* Block if user is in a bad country from frontend or backend. Unblock may happen later */
128
  if (is_array ( $badcountries ) && in_array ( $country, $badcountries )) {
129
  $blocked = TRUE;
135
 
136
 
137
  /* Check if requested url is not login page. Else check against frontend whitelist/blacklist. */
138
+ if (!($blockcountry_is_login_page) && !(is_admin()) && !($blockcountry_is_xmlrpc))
139
  {
140
+ if (iqblockcountry_validate_ip_in_list($ip_address,$feblacklistiprange4,$feblacklistiprange6,$feblacklistip))
141
+ {
142
  $blocked = TRUE;
143
  }
144
+ if (iqblockcountry_validate_ip_in_list($ip_address,$fewhitelistiprange4,$fewhitelistiprange6,$fewhitelistip))
145
+ {
146
  $blocked = FALSE;
147
  }
148
  }
156
  global $apiblacklist;
157
  $apiblacklist = TRUE;
158
  }
159
+ if (iqblockcountry_validate_ip_in_list($ip_address,$beblacklistiprange4,$beblacklistiprange6,$beblacklistip)) {
160
  $blocked = TRUE;
161
  }
162
+ if (iqblockcountry_validate_ip_in_list($ip_address,$bewhitelistiprange4,$bewhitelistiprange6,$bewhitelistip)) {
163
  $blocked = FALSE;
164
  }
165
  if (iqblockcountry_is_adminajax() && get_option('blockcountry_adminajax'))
171
  if ($blockedposttypes == "on")
172
  {
173
  $blockedposttypes = get_option('blockcountry_posttypes');
174
+ if (is_array($blockedposttypes) && in_array(get_post_type( $postid ), $blockedposttypes) && ((is_array ( $badcountries ) && in_array ( $country, $badcountries ) || (iqblockcountry_validate_ip_in_list($ip_address,$feblacklistiprange4,$feblacklistiprange6,$feblacklistip)))))
175
  {
176
  $blocked = TRUE;
177
+ if (iqblockcountry_validate_ip_in_list($ip_address,$fewhitelistiprange4,$fewhitelistiprange6,$fewhitelistip)) {
178
  $blocked = FALSE;
179
  }
180
  }
187
  if (is_page() && $blockedpage == "on")
188
  {
189
  $blockedpages = get_option('blockcountry_pages');
190
+ if (is_page($blockedpages) && !empty($blockedpages) && ((is_array ( $badcountries ) && in_array ( $country, $badcountries ) || (iqblockcountry_validate_ip_in_list($ip_address,$feblacklistiprange4,$feblacklistiprange6,$feblacklistip)))))
191
  {
192
  $blocked = TRUE;
193
+ if (iqblockcountry_validate_ip_in_list($ip_address,$fewhitelistiprange4,$fewhitelistiprange6,$fewhitelistip)) {
194
  $blocked = FALSE;
195
  }
196
  }
209
  {
210
  if (in_array($value,$blockedcategories))
211
  {
212
+ if (is_single() && ((is_array ( $badcountries ) && in_array ( $country, $badcountries ) || (iqblockcountry_validate_ip_in_list($ip_address,$feblacklistiprange4,$feblacklistiprange6,$feblacklistip)))))
213
  {
214
  $flagged = TRUE;
215
+ if (iqblockcountry_validate_ip_in_list($ip_address,$fewhitelistiprange4,$fewhitelistiprange6,$fewhitelistip)) {
216
  $flagged = FALSE;
217
  }
218
  }
233
  {
234
  if (in_array($tag->term_id,$blockedtags))
235
  {
236
+ if (is_single() && ((is_array ( $badcountries ) && in_array ( $country, $badcountries ) || (iqblockcountry_validate_ip_in_list($ip_address,$feblacklistiprange4,$feblacklistiprange6,$feblacklistip)))))
237
  {
238
  $flagged = TRUE;
239
+ if (iqblockcountry_validate_ip_in_list($ip_address,$fewhitelistiprange4,$fewhitelistiprange6,$fewhitelistip)) {
240
+
241
  $flagged = FALSE;
242
  }
243
  }
251
  {
252
  $flagged = FALSE;
253
  $blockedcategories = get_option('blockcountry_categories');
254
+ if (is_category($blockedcategories) && ((is_array ( $badcountries ) && in_array ( $country, $badcountries ) || (iqblockcountry_validate_ip_in_list($ip_address,$feblacklistiprange4,$feblacklistiprange6,$feblacklistip)))))
255
  {
256
  $flagged = TRUE;
257
  }
258
+ if (iqblockcountry_validate_ip_in_list($ip_address,$fewhitelistiprange4,$fewhitelistiprange6,$fewhitelistip)) {
259
+
260
  $flagged = FALSE;
261
  }
262
  if ($flagged) { $blocked = TRUE; } else { $blocked = FALSE; }
266
  if (is_tag() && $blockedtag == "on")
267
  {
268
  $flagged = FALSE;
269
+ if ((is_array ( $badcountries ) && in_array ( $country, $badcountries ) || (iqblockcountry_validate_ip_in_list($ip_address,$feblacklistiprange4,$feblacklistiprange6,$feblacklistip))))
270
  {
271
  $flagged = TRUE;
272
  }
273
+ if (iqblockcountry_validate_ip_in_list($ip_address,$fewhitelistiprange4,$fewhitelistiprange6,$fewhitelistip)) {
274
+
275
  $flagged = FALSE;
276
  }
277
  if ($flagged) { $blocked = TRUE; } else { $blocked = FALSE; }
284
  if (is_feed())
285
  {
286
  $flagged = FALSE;
287
+ if ((is_array ( $badcountries ) && in_array ( $country, $badcountries ) || (iqblockcountry_validate_ip_in_list($ip_address,$feblacklistiprange4,$feblacklistiprange6,$feblacklistip))))
288
  {
289
  $flagged = TRUE;
290
  }
291
+ if (iqblockcountry_validate_ip_in_list($ip_address,$fewhitelistiprange4,$fewhitelistiprange6,$fewhitelistip)) {
292
+
293
  $flagged = FALSE;
294
  }
295
  if ($flagged) { $blocked = TRUE; } else { $blocked = FALSE; }
libs/blockcountry-geoip.php CHANGED
@@ -4,6 +4,8 @@ function iqblockcountry_get_isocountries()
4
  {
5
 
6
  $iqcountrylist = array(
 
 
7
  'AF' => 'Afghanistan',
8
  'AX' => 'Aland Islands',
9
  'AL' => 'Albania',
4
  {
5
 
6
  $iqcountrylist = array(
7
+ 'A1' => "Anonymous Proxy",
8
+ 'A2' => "Satellite Provider",
9
  'AF' => 'Afghanistan',
10
  'AX' => 'Aland Islands',
11
  'AL' => 'Albania',
libs/blockcountry-logging.php CHANGED
@@ -39,9 +39,9 @@ function iqblockcountry_clean_db()
39
 
40
  $nrdays = get_option('blockcountry_daysstatistics');
41
 
42
-
43
  $table_name = $wpdb->prefix . "iqblock_logging";
44
- $sql = "DELETE FROM " . $table_name . " WHERE DATE_SUB(CURDATE(),INTERVAL " . $nrdays . " DAY) >= datetime;";
 
45
  $wpdb->query($sql);
46
 
47
  }
39
 
40
  $nrdays = get_option('blockcountry_daysstatistics');
41
 
 
42
  $table_name = $wpdb->prefix . "iqblock_logging";
43
+ // $sql = "DELETE FROM " . $table_name . " WHERE DATE_SUB(CURDATE(),INTERVAL " . $nrdays . " DAY) >= datetime;";
44
+ $sql = "DELETE FROM " . $table_name . " WHERE `datetime` < DATE_SUB(NOW(), INTERVAL " . $nrdays . " DAY)";
45
  $wpdb->query($sql);
46
 
47
  }
libs/blockcountry-settings.php CHANGED
@@ -275,6 +275,8 @@ function iqblockcountry_settings_tools() {
275
  <input name="ipcheck_nonce" type="hidden" value="<?php echo wp_create_nonce('ipcheck_nonce'); ?>" />
276
  <?php _e('IP Address to check:', 'iq-block-country'); ?> <input type="text" name="ipaddress" lenth="50" />
277
  <?php
 
 
278
 
279
 
280
  if ( isset($_POST['action']) && $_POST[ 'action' ] == 'ipcheck') {
@@ -327,15 +329,38 @@ function iqblockcountry_settings_tools() {
327
  }
328
  $backendbanlistip = unserialize(get_option('blockcountry_backendbanlistip'));
329
  if (is_array($backendbanlistip) && in_array($ip_address,$backendbanlistip)) {
330
- _e('This ip is present in the blacklist.', 'iq-block-country');
331
  }
 
332
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
333
  }
334
  }
335
  }
336
  echo '<div class="submit"><input type="submit" name="test" value="' . __( 'Check IP address', 'iq-block-country' ) . '" /></div>';
337
  wp_nonce_field('iqblockcountry');
338
- ?>
 
339
  </form>
340
 
341
  <hr />
@@ -1112,7 +1137,7 @@ function iqblockcountry_settings_frontend()
1112
  <input type="checkbox" name="blockcountry_blocktag" <?php checked('on', get_option('blockcountry_blocktag'), true); ?> />
1113
  </td></tr>
1114
  <tr valign="top">
1115
- <th width="30%"><?php _e('Frontend whitelist IPv4 and/or IPv6 addresses:', 'iq-block-country'); ?><br /><?php _e('Use a semicolon (;) to separate IP addresses', 'iq-block-country'); ?></th>
1116
  <td width="70%">
1117
  <?php
1118
  $frontendwhitelist = get_option ( 'blockcountry_frontendwhitelist' );
@@ -1120,7 +1145,7 @@ function iqblockcountry_settings_frontend()
1120
  <textarea cols="70" rows="5" name="blockcountry_frontendwhitelist"><?php echo $frontendwhitelist; ?></textarea>
1121
  </td></tr>
1122
  <tr valign="top">
1123
- <th width="30%"><?php _e('Frontend blacklist IPv4 and/or IPv6 addresses:', 'iq-block-country'); ?><br /><?php _e('Use a semicolon (;) to separate IP addresses', 'iq-block-country'); ?></th>
1124
  <td width="70%">
1125
  <?php
1126
  $frontendblacklist = get_option ( 'blockcountry_frontendblacklist' );
@@ -1241,7 +1266,7 @@ function iqblockcountry_settings_backend()
1241
  </td></tr>
1242
 
1243
  <tr valign="top">
1244
- <th width="30%"><?php _e('Backend whitelist IPv4 and/or IPv6 addresses:', 'iq-block-country'); ?><br /><?php _e('Use a semicolon (;) to separate IP addresses', 'iq-block-country'); ?></th>
1245
  <td width="70%">
1246
  <?php
1247
  $backendwhitelist = get_option ( 'blockcountry_backendwhitelist' );
@@ -1249,7 +1274,7 @@ function iqblockcountry_settings_backend()
1249
  <textarea cols="70" rows="5" name="blockcountry_backendwhitelist"><?php echo $backendwhitelist; ?></textarea>
1250
  </td></tr>
1251
  <tr valign="top">
1252
- <th width="30%"><?php _e('Backend blacklist IPv4 and/or IPv6 addresses:', 'iq-block-country'); ?><br /><?php _e('Use a semicolon (;) to separate IP addresses', 'iq-block-country'); ?></th>
1253
  <td width="70%">
1254
  <?php
1255
  $backendblacklist = get_option ( 'blockcountry_backendblacklist' );
@@ -1773,4 +1798,75 @@ function iqblockcountry_find_geoip_location()
1773
  update_option('blockcountry_geoapilocation','EU');
1774
  }
1775
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1776
  }
275
  <input name="ipcheck_nonce" type="hidden" value="<?php echo wp_create_nonce('ipcheck_nonce'); ?>" />
276
  <?php _e('IP Address to check:', 'iq-block-country'); ?> <input type="text" name="ipaddress" lenth="50" />
277
  <?php
278
+ global $feblacklistip,$feblacklistiprange4,$feblacklistiprange6,$fewhitelistip,$fewhitelistiprange4,$fewhitelistiprange6;
279
+ global $beblacklistip,$beblacklistiprange4,$beblacklistiprange6,$bewhitelistip,$bewhitelistiprange4,$bewhitelistiprange6;
280
 
281
 
282
  if ( isset($_POST['action']) && $_POST[ 'action' ] == 'ipcheck') {
329
  }
330
  $backendbanlistip = unserialize(get_option('blockcountry_backendbanlistip'));
331
  if (is_array($backendbanlistip) && in_array($ip_address,$backendbanlistip)) {
332
+ _e('This IP address is present in the blacklist.', 'iq-block-country');
333
  }
334
+
335
  }
336
+ if (iqblockcountry_validate_ip_in_list($ip_address,$feblacklistiprange4,$feblacklistiprange6,$feblacklistip))
337
+ {
338
+ _e('This IP address is present in the frontend blacklist.', 'iq-block-country');
339
+ echo "<br />";
340
+ }
341
+ if (iqblockcountry_validate_ip_in_list($ip_address,$fewhitelistiprange4,$fewhitelistiprange6,$fewhitelistip))
342
+ {
343
+ _e('This IP address is present in the frontend whitelist.', 'iq-block-country');
344
+ echo "<br />";
345
+ }
346
+ if (iqblockcountry_validate_ip_in_list($ip_address,$beblacklistiprange4,$beblacklistiprange6,$beblacklistip))
347
+ {
348
+ _e('This IP address is present in the backend blacklist.', 'iq-block-country');
349
+ echo "<br />";
350
+ }
351
+ if (iqblockcountry_validate_ip_in_list($ip_address,$bewhitelistiprange4,$bewhitelistiprange6,$beblacklistip))
352
+ {
353
+ _e('This IP address is present in the backend whitelist.', 'iq-block-country');
354
+ echo "<br />";
355
+ }
356
+
357
  }
358
  }
359
  }
360
  echo '<div class="submit"><input type="submit" name="test" value="' . __( 'Check IP address', 'iq-block-country' ) . '" /></div>';
361
  wp_nonce_field('iqblockcountry');
362
+
363
+ ?>
364
  </form>
365
 
366
  <hr />
1137
  <input type="checkbox" name="blockcountry_blocktag" <?php checked('on', get_option('blockcountry_blocktag'), true); ?> />
1138
  </td></tr>
1139
  <tr valign="top">
1140
+ <th width="30%"><?php _e('Frontend whitelist IPv4 and/or IPv6 addresses:', 'iq-block-country'); ?><br /><?php _e('Use a semicolon (;) to separate IP addresses', 'iq-block-country'); ?><br /><?php _e('This field accepts single IP addresses as well as ranges in CIDR format.', 'iq-block-country'); ?></th>
1141
  <td width="70%">
1142
  <?php
1143
  $frontendwhitelist = get_option ( 'blockcountry_frontendwhitelist' );
1145
  <textarea cols="70" rows="5" name="blockcountry_frontendwhitelist"><?php echo $frontendwhitelist; ?></textarea>
1146
  </td></tr>
1147
  <tr valign="top">
1148
+ <th width="30%"><?php _e('Frontend blacklist IPv4 and/or IPv6 addresses:', 'iq-block-country'); ?><br /><?php _e('Use a semicolon (;) to separate IP addresses', 'iq-block-country'); ?><br /><?php _e('This field accepts single IP addresses as well as ranges in CIDR format.', 'iq-block-country'); ?></th>
1149
  <td width="70%">
1150
  <?php
1151
  $frontendblacklist = get_option ( 'blockcountry_frontendblacklist' );
1266
  </td></tr>
1267
 
1268
  <tr valign="top">
1269
+ <th width="30%"><?php _e('Backend whitelist IPv4 and/or IPv6 addresses:', 'iq-block-country'); ?><br /><?php _e('Use a semicolon (;) to separate IP addresses', 'iq-block-country'); ?><br /><?php _e('This field accepts single IP addresses as well as ranges in CIDR format.', 'iq-block-country'); ?></th>
1270
  <td width="70%">
1271
  <?php
1272
  $backendwhitelist = get_option ( 'blockcountry_backendwhitelist' );
1274
  <textarea cols="70" rows="5" name="blockcountry_backendwhitelist"><?php echo $backendwhitelist; ?></textarea>
1275
  </td></tr>
1276
  <tr valign="top">
1277
+ <th width="30%"><?php _e('Backend blacklist IPv4 and/or IPv6 addresses:', 'iq-block-country'); ?><br /><?php _e('Use a semicolon (;) to separate IP addresses', 'iq-block-country'); ?><br /><?php _e('This field accepts single IP addresses as well as ranges in CIDR format.', 'iq-block-country'); ?></th>
1278
  <td width="70%">
1279
  <?php
1280
  $backendblacklist = get_option ( 'blockcountry_backendblacklist' );
1798
  update_option('blockcountry_geoapilocation','EU');
1799
  }
1800
  }
1801
+ }
1802
+
1803
+ /*
1804
+ * Get different lists of black and whitelist
1805
+ */
1806
+ function iqblockcountry_get_blackwhitelist()
1807
+ {
1808
+ $frontendblacklistip = array(); $frontendblacklist = get_option ( 'blockcountry_frontendblacklist' );
1809
+ $frontendwhitelistip = array(); $frontendwhitelist = get_option ( 'blockcountry_frontendwhitelist' );
1810
+ $backendblacklistip = array(); $backendblacklist = get_option ( 'blockcountry_backendblacklist' );
1811
+ $backendwhitelistip = array(); $backendwhitelist = get_option ( 'blockcountry_backendwhitelist' );
1812
+
1813
+
1814
+ $feblacklistip = array();
1815
+ $feblacklistiprange4 = array();
1816
+ $feblacklistiprange6 = array();
1817
+ $fewhitelistip = array();
1818
+ $fewhitelistiprange4 = array();
1819
+ $fewhitelistiprange6 = array();
1820
+ global $feblacklistip,$feblacklistiprange4,$feblacklistiprange6,$fewhitelistip,$fewhitelistiprange4,$fewhitelistiprange6;
1821
+
1822
+ $beblacklistip = array();
1823
+ $beblacklistiprange4 = array();
1824
+ $beblacklistiprange6 = array();
1825
+ $bewhitelistip = array();
1826
+ $bewhitelistiprange4 = array();
1827
+ $bewhitelistiprange6 = array();
1828
+ global $beblacklistip,$beblacklistiprange4,$beblacklistiprange6,$bewhitelistip,$bewhitelistiprange4,$bewhitelistiprange6;
1829
+
1830
+
1831
+ if (preg_match('/;/',$frontendblacklist))
1832
+ {
1833
+ $frontendblacklistip = explode(";", $frontendblacklist);
1834
+ foreach ($frontendblacklistip AS $ip)
1835
+ {
1836
+ if (iqblockcountry_is_valid_ipv4($ip) || iqblockcountry_is_valid_ipv6($ip)) { $feblacklistip[] = $ip; }
1837
+ elseif (iqblockcountry_is_valid_ipv4_cidr($ip)) { $feblacklistiprange4[] = $ip; }
1838
+ elseif (iqblockcountry_is_valid_ipv6_cidr($ip)) { $feblacklistiprange6[] = $ip; }
1839
+ }
1840
+ }
1841
+ if (preg_match('/;/',$frontendwhitelist))
1842
+ {
1843
+ $frontendwhitelistip = explode(";", $frontendwhitelist);
1844
+ foreach ($frontendwhitelistip AS $ip)
1845
+ {
1846
+ if (iqblockcountry_is_valid_ipv4($ip) || iqblockcountry_is_valid_ipv6($ip)) { $fewhitelistip[] = $ip; }
1847
+ elseif (iqblockcountry_is_valid_ipv4_cidr($ip)) { $fewhitelistiprange4[] = $ip; }
1848
+ elseif (iqblockcountry_is_valid_ipv6_cidr($ip)) { $fewhitelistiprange6[] = $ip; }
1849
+ }
1850
+ }
1851
+ if (preg_match('/;/',$backendblacklist))
1852
+ {
1853
+ $backendblacklistip = explode(";", $backendblacklist);
1854
+ foreach ($backendblacklistip AS $ip)
1855
+ {
1856
+ if (iqblockcountry_is_valid_ipv4($ip) || iqblockcountry_is_valid_ipv6($ip)) { $beblacklistip[] = $ip; }
1857
+ elseif (iqblockcountry_is_valid_ipv4_cidr($ip)) { $beblacklistiprange4[] = $ip; }
1858
+ elseif (iqblockcountry_is_valid_ipv6_cidr($ip)) { $beblacklistiprange6[] = $ip; }
1859
+ }
1860
+ }
1861
+ if (preg_match('/;/',$backendwhitelist))
1862
+ {
1863
+ $backendwhitelistip = explode(";", $backendwhitelist);
1864
+ foreach ($backendwhitelistip AS $ip)
1865
+ {
1866
+ if (iqblockcountry_is_valid_ipv4($ip) || iqblockcountry_is_valid_ipv6($ip)) { $bewhitelistip[] = $ip; }
1867
+ elseif (iqblockcountry_is_valid_ipv4_cidr($ip)) { $bewhitelistiprange4[] = $ip; }
1868
+ elseif (iqblockcountry_is_valid_ipv6_cidr($ip)) { $bewhitelistiprange6[] = $ip; }
1869
+ }
1870
+ }
1871
+
1872
  }
libs/blockcountry-validation.php CHANGED
@@ -24,6 +24,31 @@ function iqblockcountry_is_valid_ipv6($ipv6)
24
  return true;
25
  }
26
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
27
  /*
28
  * Check of given url is a valid url
29
  */
@@ -50,7 +75,7 @@ function iqblockcountry_validate_ip($input)
50
  {
51
  $arr = explode(";", $input);
52
  foreach ($arr as $value) {
53
- if (iqblockcountry_is_valid_ipv4($value) || iqblockcountry_is_valid_ipv6($value))
54
  {
55
  $validips .= $value . ";";
56
  }
@@ -59,7 +84,7 @@ function iqblockcountry_validate_ip($input)
59
  }
60
  else
61
  {
62
- if (iqblockcountry_is_valid_ipv4($input) || iqblockcountry_is_valid_ipv6($input))
63
  {
64
  $validips = $input . ";";
65
  }
@@ -208,3 +233,158 @@ function iqblockcountry_get_licensedate_geoapikey($apikey)
208
  }
209
  return "";
210
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
24
  return true;
25
  }
26
 
27
+ function iqblockcountry_is_valid_ipv4_cidr($ip)
28
+ {
29
+ if (preg_match('/^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])(\/([0-9]|[1-2][0-9]|3[0-2]))$/',$ip))
30
+ {
31
+ return true;
32
+ }
33
+ else
34
+ {
35
+ return false;
36
+ }
37
+ }
38
+
39
+ function iqblockcountry_is_valid_ipv6_cidr($ip)
40
+ {
41
+ if (preg_match('/^s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]d|1dd|[1-9]?d)(.(25[0-5]|2[0-4]d|1dd|[1-9]?d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]d|1dd|[1-9]?d)(.(25[0-5]|2[0-4]d|1dd|[1-9]?d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]d|1dd|[1-9]?d)(.(25[0-5]|2[0-4]d|1dd|[1-9]?d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]d|1dd|[1-9]?d)(.(25[0-5]|2[0-4]d|1dd|[1-9]?d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]d|1dd|[1-9]?d)(.(25[0-5]|2[0-4]d|1dd|[1-9]?d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]d|1dd|[1-9]?d)(.(25[0-5]|2[0-4]d|1dd|[1-9]?d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]d|1dd|[1-9]?d)(.(25[0-5]|2[0-4]d|1dd|[1-9]?d)){3}))|:)))(%.+)?s*(\/([0-9]|[1-9][0-9]|1[0-1][0-9]|12[0-8]))?$/',$ip))
42
+ {
43
+ return true;
44
+ }
45
+ else
46
+ {
47
+ return false;
48
+ }
49
+ }
50
+
51
+
52
  /*
53
  * Check of given url is a valid url
54
  */
75
  {
76
  $arr = explode(";", $input);
77
  foreach ($arr as $value) {
78
+ if (iqblockcountry_is_valid_ipv4($value) || iqblockcountry_is_valid_ipv6($value) || iqblockcountry_is_valid_ipv4_cidr($value) || iqblockcountry_is_valid_ipv6_cidr($value))
79
  {
80
  $validips .= $value . ";";
81
  }
84
  }
85
  else
86
  {
87
+ if (iqblockcountry_is_valid_ipv4($input) || iqblockcountry_is_valid_ipv6($input) || iqblockcountry_is_valid_ipv4_cidr($input) || iqblockcountry_is_valid_ipv6_cidr($input))
88
  {
89
  $validips = $input . ";";
90
  }
233
  }
234
  return "";
235
  }
236
+
237
+ /**
238
+ * Check if a given ip is in a network
239
+ * @param string $ip IP to check in IPV4 format eg. 127.0.0.1
240
+ * @param string $range IP/CIDR netmask eg. 127.0.0.0/24, also 127.0.0.1 is accepted and /32 assumed
241
+ * @return boolean true if the ip is in this range / false if not.
242
+ */
243
+ function iqblockcountry_ip_in_ipv4_range( $ip, $range ) {
244
+ if ( strpos( $range, '/' ) == false ) {
245
+ $range .= '/32';
246
+ }
247
+ // $range is in IP/CIDR format eg 127.0.0.1/24
248
+ list( $range, $netmask ) = explode( '/', $range, 2 );
249
+ $range_decimal = ip2long( $range );
250
+ $ip_decimal = ip2long( $ip );
251
+ $wildcard_decimal = pow( 2, ( 32 - $netmask ) ) - 1;
252
+ $netmask_decimal = ~ $wildcard_decimal;
253
+ return ( ( $ip_decimal & $netmask_decimal ) == ( $range_decimal & $netmask_decimal ) );
254
+ }
255
+
256
+ function iqblockcountry_ip2long6($ip) {
257
+ if (substr_count($ip, '::')) {
258
+ $ip = str_replace('::', str_repeat(':0000', 8 - substr_count($ip, ':')) . ':', $ip);
259
+ }
260
+
261
+ $ip = explode(':', $ip);
262
+ $r_ip = '';
263
+ foreach ($ip as $v) {
264
+ $r_ip .= str_pad(base_convert($v, 16, 2), 16, 0, STR_PAD_LEFT);
265
+ }
266
+
267
+ return base_convert($r_ip, 2, 10);
268
+ }
269
+ // Get the ipv6 full format and return it as a decimal value.
270
+ function iqblockcountry_get_ipv6_full($ip)
271
+ {
272
+ $pieces = explode ("/", $ip, 2);
273
+ $left_piece = $pieces[0];
274
+ $right_piece = $pieces[1];
275
+ // Extract out the main IP pieces
276
+ $ip_pieces = explode("::", $left_piece, 2);
277
+ $main_ip_piece = $ip_pieces[0];
278
+ $last_ip_piece = $ip_pieces[1];
279
+ // Pad out the shorthand entries.
280
+ $main_ip_pieces = explode(":", $main_ip_piece);
281
+ foreach($main_ip_pieces as $key=>$val) {
282
+ $main_ip_pieces[$key] = str_pad($main_ip_pieces[$key], 4, "0", STR_PAD_LEFT);
283
+ }
284
+ // Check to see if the last IP block (part after ::) is set
285
+ $last_piece = "";
286
+ $size = count($main_ip_pieces);
287
+ if (trim($last_ip_piece) != "") {
288
+ $last_piece = str_pad($last_ip_piece, 4, "0", STR_PAD_LEFT);
289
+
290
+ // Build the full form of the IPV6 address considering the last IP block set
291
+ for ($i = $size; $i < 7; $i++) {
292
+ $main_ip_pieces[$i] = "0000";
293
+ }
294
+ $main_ip_pieces[7] = $last_piece;
295
+ }
296
+ else {
297
+ // Build the full form of the IPV6 address
298
+ for ($i = $size; $i < 8; $i++) {
299
+ $main_ip_pieces[$i] = "0000";
300
+ }
301
+ }
302
+
303
+ // Rebuild the final long form IPV6 address
304
+ $final_ip = implode(":", $main_ip_pieces);
305
+ return iqblockcountry_ip2long6($final_ip);
306
+ }
307
+ // Determine whether the IPV6 address is within range.
308
+ // $ip is the IPV6 address in decimal format to check if its within the IP range created by the cloudflare IPV6 address, $range_ip.
309
+ // $ip and $range_ip are converted to full IPV6 format.
310
+ // Returns true if the IPV6 address, $ip, is within the range from $range_ip. False otherwise.
311
+ function iqblockcountry_ipv6_in_range($ip, $range_ip)
312
+ {
313
+ $pieces = explode ("/", $range_ip, 2);
314
+ $left_piece = $pieces[0];
315
+ $right_piece = $pieces[1];
316
+ // Extract out the main IP pieces
317
+ $ip_pieces = explode("::", $left_piece, 2);
318
+ $main_ip_piece = $ip_pieces[0];
319
+ $last_ip_piece = $ip_pieces[1];
320
+ // Pad out the shorthand entries.
321
+ $main_ip_pieces = explode(":", $main_ip_piece);
322
+ foreach($main_ip_pieces as $key=>$val) {
323
+ $main_ip_pieces[$key] = str_pad($main_ip_pieces[$key], 4, "0", STR_PAD_LEFT);
324
+ }
325
+ // Create the first and last pieces that will denote the IPV6 range.
326
+ $first = $main_ip_pieces;
327
+ $last = $main_ip_pieces;
328
+ // Check to see if the last IP block (part after ::) is set
329
+ $last_piece = "";
330
+ $size = count($main_ip_pieces);
331
+ if (trim($last_ip_piece) != "") {
332
+ $last_piece = str_pad($last_ip_piece, 4, "0", STR_PAD_LEFT);
333
+
334
+ // Build the full form of the IPV6 address considering the last IP block set
335
+ for ($i = $size; $i < 7; $i++) {
336
+ $first[$i] = "0000";
337
+ $last[$i] = "ffff";
338
+ }
339
+ $main_ip_pieces[7] = $last_piece;
340
+ }
341
+ else {
342
+ // Build the full form of the IPV6 address
343
+ for ($i = $size; $i < 8; $i++) {
344
+ $first[$i] = "0000";
345
+ $last[$i] = "ffff";
346
+ }
347
+ }
348
+ // Rebuild the final long form IPV6 address
349
+ $first = iqblockcountry_ip2long6(implode(":", $first));
350
+ $last = iqblockcountry_ip2long6(implode(":", $last));
351
+ $in_range = ($ip >= $first && $ip <= $last);
352
+ return $in_range;
353
+ }
354
+
355
+
356
+ function iqblockcountry_validate_ip_in_list($ipaddress,$ipv4list,$ipv6list,$iplist)
357
+ {
358
+
359
+ $match = FALSE;
360
+ if (iqblockcountry_is_valid_ipv4($ipaddress))
361
+ {
362
+ foreach ($ipv4list AS $iprange)
363
+ {
364
+ if (iqblockcountry_ip_in_ipv4_range($ipaddress,$iprange))
365
+ {
366
+ $match = TRUE;
367
+ }
368
+ }
369
+ }
370
+ elseif (iqblockcountry_is_valid_ipv6($ipaddress))
371
+ {
372
+ foreach ($ipv6list AS $iprange)
373
+ {
374
+ $ipaddress6 = iqblockcountry_get_ipv6_full($ipaddress);
375
+ if (iqblockcountry_ipv6_in_range($ipaddress6,$iprange))
376
+ {
377
+ $match = TRUE;
378
+ }
379
+ }
380
+
381
+ }
382
+ if (iqblockcountry_is_valid_ipv4($ipaddress) || iqblockcountry_is_valid_ipv6($ipaddress))
383
+ {
384
+ if (in_array($ipaddress,$iplist))
385
+ {
386
+ $match = TRUE;
387
+ }
388
+ }
389
+ return $match;
390
+ }
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.webence.nl/plugins/donate
4
  Tags: spam, block, country, comments, ban, geo, geo blocking, geo ip, block country, block countries, ban countries, ban country, blacklist, whitelist, security
5
  Requires at least: 3.5.2
6
  Tested up to: 4.9.4
7
- Stable tag: 1.1.46
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -206,6 +206,11 @@ As the basic rule is to block all and every post you have to configure this in a
206
 
207
  == Changelog ==
208
 
 
 
 
 
 
209
  = 1.1.46 =
210
 
211
  * Bugfix: Added extra aiwop checking due to a notice error.
4
  Tags: spam, block, country, comments, ban, geo, geo blocking, geo ip, block country, block countries, ban countries, ban country, blacklist, whitelist, security
5
  Requires at least: 3.5.2
6
  Tested up to: 4.9.4
7
+ Stable tag: 1.1.47
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
206
 
207
  == Changelog ==
208
 
209
+ = 1.1.47 =
210
+
211
+ * Change: You can now also enter IP Ranges in the black & whitelist in CIDR format.
212
+ * Change: Altered logging clean up a little bit
213
+
214
  = 1.1.46 =
215
 
216
  * Bugfix: Added extra aiwop checking due to a notice error.