Version Description
- Added to ban categories. This works the same way as blocking pages (By request of FVCS)
- Changed the admin page layout. Added tabs for frontend and backend blocking to make it look less cluttered
- Added optional tracking to the plugin. This is an experiment to see if building a database of IP addresses that try to login to the backend is viable.
- Upon first activation the plugin now fills the backend block list with all countries except the country that is currently used to activate.
- Added IP checking in header HTTP_CLIENT_IP and HTTP_X_REAL_IP
Download this release
Release Info
Developer | iqpascal |
Plugin | iQ Block Country |
Version | 1.1.6 |
Comparing to | |
See all releases |
Code changes from version 1.1.5 to 1.1.6
- iq-block-country.php +67 -3
- lang/en_EN.mo +0 -0
- lang/en_EN.po +170 -99
- lang/iqblockcountry-nl_NL.mo +0 -0
- lang/iqblockcountry-nl_NL.po +193 -110
- lang/iqblockcountry-ru_RU.mo +0 -0
- lang/iqblockcountry-ru_RU.po +473 -0
- libs/blockcountry-checks.php +47 -13
- libs/blockcountry-settings.php +284 -56
- readme.txt +23 -2
iq-block-country.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
/*
|
3 |
Plugin Name: iQ Block Country
|
4 |
Plugin URI: http://www.redeo.nl/2013/12/iq-block-country-wordpress-plugin-blocks-countries/
|
5 |
-
Version: 1.1.
|
6 |
Author: Pascal
|
7 |
Author URI: http://www.redeo.nl/
|
8 |
Description: Block visitors from visiting your website and backend website based on which country their IP address is from. The Maxmind GeoIP lite database is used for looking up from which country an ip address is from.
|
@@ -51,6 +51,67 @@ function iqblockcountry_this_plugin_first()
|
|
51 |
}
|
52 |
}
|
53 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
54 |
/*
|
55 |
* Download the GeoIP database from MaxMind
|
56 |
*/
|
@@ -250,7 +311,8 @@ define("IPV6DB","http://geolite.maxmind.com/download/geoip/database/GeoIPv6.dat.
|
|
250 |
define("IPV4DB","http://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP.dat.gz");
|
251 |
define("IPV4DBFILE",WP_PLUGIN_DIR . "/" . dirname ( plugin_basename ( __FILE__ ) ) . "/GeoIP.dat");
|
252 |
define("IPV6DBFILE",WP_PLUGIN_DIR . "/" . dirname ( plugin_basename ( __FILE__ ) ) . "/GeoIPv6.dat");
|
253 |
-
define("
|
|
|
254 |
define("DBVERSION","110");
|
255 |
define("PLUGINPATH",plugin_dir_path( __FILE__ ));
|
256 |
|
@@ -283,7 +345,9 @@ if (get_option('blockcountry_blockfrontend'))
|
|
283 |
add_action ( 'admin_init', 'iqblockcountry_localization');
|
284 |
add_action ( 'admin_menu', 'iqblockcountry_create_menu' );
|
285 |
add_action ( 'admin_init', 'iqblockcountry_checkupdatedb' );
|
286 |
-
|
|
|
|
|
287 |
|
288 |
|
289 |
?>
|
2 |
/*
|
3 |
Plugin Name: iQ Block Country
|
4 |
Plugin URI: http://www.redeo.nl/2013/12/iq-block-country-wordpress-plugin-blocks-countries/
|
5 |
+
Version: 1.1.6
|
6 |
Author: Pascal
|
7 |
Author URI: http://www.redeo.nl/
|
8 |
Description: Block visitors from visiting your website and backend website based on which country their IP address is from. The Maxmind GeoIP lite database is used for looking up from which country an ip address is from.
|
51 |
}
|
52 |
}
|
53 |
|
54 |
+
/*
|
55 |
+
*
|
56 |
+
*/
|
57 |
+
function iqblockcountry_schedule_tracking($old_value, $new_value)
|
58 |
+
{
|
59 |
+
$current_schedule = wp_next_scheduled( 'blockcountry_tracking' );
|
60 |
+
if ($old_value !== $new_value)
|
61 |
+
{
|
62 |
+
if ($new_value == '')
|
63 |
+
{
|
64 |
+
wp_clear_scheduled_hook( 'blockcountry_tracking' );
|
65 |
+
}
|
66 |
+
elseif ($new_value == 'on' && $current_schedule == FALSE)
|
67 |
+
{
|
68 |
+
wp_schedule_event( time(), 'hourly', 'blockcountry_tracking' );
|
69 |
+
}
|
70 |
+
}
|
71 |
+
}
|
72 |
+
|
73 |
+
|
74 |
+
/*
|
75 |
+
* iQ Block Tracking
|
76 |
+
*/
|
77 |
+
function iqblockcountry_tracking()
|
78 |
+
{
|
79 |
+
if (get_option("blockcountry_tracking") == "on")
|
80 |
+
{
|
81 |
+
$lasttracked = get_option("blockcountry_lasttrack");
|
82 |
+
global $wpdb;
|
83 |
+
|
84 |
+
$table_name = $wpdb->prefix . "iqblock_logging";
|
85 |
+
|
86 |
+
$content = array();
|
87 |
+
if (!empty($lasttracked))
|
88 |
+
{
|
89 |
+
$query = "SELECT id,ipaddress,count(ipaddress) as countip FROM $table_name WHERE banned=\"B\" and id > $lasttracked GROUP BY ipaddress ORDER BY id";
|
90 |
+
}
|
91 |
+
else
|
92 |
+
{
|
93 |
+
$query = "SELECT id,ipaddress,count(ipaddress) as countip FROM $table_name WHERE banned=\"B\" GROUP BY ipaddress ORDER BY id";
|
94 |
+
}
|
95 |
+
foreach ($wpdb->get_results( $query ) as $row)
|
96 |
+
{
|
97 |
+
$newcontent = array('ipaddress' => $row->ipaddress,'count' => $row->countip);
|
98 |
+
array_push($content,$newcontent);
|
99 |
+
$id = $row->id;
|
100 |
+
}
|
101 |
+
|
102 |
+
if (!empty($content))
|
103 |
+
{
|
104 |
+
$response = wp_remote_post(TRACKINGURL,
|
105 |
+
array(
|
106 |
+
'body' => $content
|
107 |
+
)
|
108 |
+
);
|
109 |
+
|
110 |
+
if (isset($id)) { update_option('blockcountry_lasttrack',$id); }
|
111 |
+
}
|
112 |
+
}
|
113 |
+
}
|
114 |
+
|
115 |
/*
|
116 |
* Download the GeoIP database from MaxMind
|
117 |
*/
|
311 |
define("IPV4DB","http://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP.dat.gz");
|
312 |
define("IPV4DBFILE",WP_PLUGIN_DIR . "/" . dirname ( plugin_basename ( __FILE__ ) ) . "/GeoIP.dat");
|
313 |
define("IPV6DBFILE",WP_PLUGIN_DIR . "/" . dirname ( plugin_basename ( __FILE__ ) ) . "/GeoIPv6.dat");
|
314 |
+
define("TRACKINGURL","http://tracking.webence.nl/iq-block-country-tracking.php");
|
315 |
+
define("VERSION","1.6h");
|
316 |
define("DBVERSION","110");
|
317 |
define("PLUGINPATH",plugin_dir_path( __FILE__ ));
|
318 |
|
345 |
add_action ( 'admin_init', 'iqblockcountry_localization');
|
346 |
add_action ( 'admin_menu', 'iqblockcountry_create_menu' );
|
347 |
add_action ( 'admin_init', 'iqblockcountry_checkupdatedb' );
|
348 |
+
add_filter ( 'update_option_blockcountry_tracking', 'iqblockcountry_schedule_tracking', 10, 2);
|
349 |
+
add_filter ( 'add_option_blockcountry_tracking', 'iqblockcountry_schedule_tracking', 10, 2);
|
350 |
+
add_action ( 'blockcountry_tracking', 'iqblockcountry_tracking' );
|
351 |
|
352 |
|
353 |
?>
|
lang/en_EN.mo
CHANGED
Binary file
|
lang/en_EN.po
CHANGED
@@ -1,8 +1,8 @@
|
|
1 |
msgid ""
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: iQ Block Country\n"
|
4 |
-
"POT-Creation-Date: 2014-
|
5 |
-
"PO-Revision-Date: 2014-
|
6 |
"Last-Translator: \n"
|
7 |
"Language-Team: iQ Block Country <info@redeo.nl>\n"
|
8 |
"Language: English\n"
|
@@ -15,351 +15,422 @@ msgstr ""
|
|
15 |
"X-Poedit-SearchPath-0: libs\n"
|
16 |
"X-Poedit-SearchPath-1: .\n"
|
17 |
|
18 |
-
#: libs/blockcountry-settings.php:
|
19 |
msgid ""
|
20 |
"Check which country belongs to an IP Address according to the current "
|
21 |
"database."
|
22 |
msgstr ""
|
23 |
|
24 |
-
#: libs/blockcountry-settings.php:
|
25 |
msgid "IP Address to check:"
|
26 |
msgstr ""
|
27 |
|
28 |
-
#: libs/blockcountry-settings.php:
|
29 |
msgid "No country for"
|
30 |
msgstr ""
|
31 |
|
32 |
-
#: libs/blockcountry-settings.php:
|
33 |
msgid "could be found. Or"
|
34 |
msgstr ""
|
35 |
|
36 |
-
#: libs/blockcountry-settings.php:
|
37 |
msgid "is not a valid IPv4 or IPv6 IP address"
|
38 |
msgstr ""
|
39 |
|
40 |
-
#: libs/blockcountry-settings.php:
|
41 |
msgid "IP Adress"
|
42 |
msgstr ""
|
43 |
|
44 |
-
#: libs/blockcountry-settings.php:
|
45 |
msgid "belongs to"
|
46 |
msgstr ""
|
47 |
|
48 |
-
#: libs/blockcountry-settings.php:
|
49 |
msgid "This country is not permitted to visit the frontend of this website."
|
50 |
msgstr ""
|
51 |
|
52 |
-
#: libs/blockcountry-settings.php:
|
53 |
msgid "This country is not permitted to visit the backend of this website."
|
54 |
msgstr ""
|
55 |
|
56 |
-
#: libs/blockcountry-settings.php:
|
57 |
msgid "Check IP address"
|
58 |
msgstr ""
|
59 |
|
60 |
-
#: libs/blockcountry-settings.php:
|
|
|
|
|
|
|
|
|
61 |
msgid "The GeoIP database is updated once a month. Last update: "
|
62 |
msgstr ""
|
63 |
|
64 |
-
#: libs/blockcountry-settings.php:
|
65 |
msgid "If you need a manual update please press buttons below to update."
|
66 |
msgstr ""
|
67 |
|
68 |
-
#: libs/blockcountry-settings.php:
|
69 |
msgid "Download new GeoIP IPv4 Database"
|
70 |
msgstr ""
|
71 |
|
72 |
-
#: libs/blockcountry-settings.php:
|
73 |
msgid "Download new GeoIP IPv6 Database"
|
74 |
msgstr ""
|
75 |
|
76 |
-
#: libs/blockcountry-settings.php:
|
77 |
msgid "Downloading..."
|
78 |
msgstr ""
|
79 |
|
80 |
-
#: libs/blockcountry-settings.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
81 |
msgid "Export"
|
82 |
msgstr ""
|
83 |
|
84 |
-
#: libs/blockcountry-settings.php:
|
85 |
msgid ""
|
86 |
"When you click on <tt>Backup all settings</tt> button a backup of the iQ "
|
87 |
"Block Country configuration will be created."
|
88 |
msgstr ""
|
89 |
|
90 |
-
#: libs/blockcountry-settings.php:
|
91 |
msgid ""
|
92 |
"After exporting, you can either use the backup file to restore your settings "
|
93 |
"on this site again or copy the settings to another WordPress site."
|
94 |
msgstr ""
|
95 |
|
96 |
-
#: libs/blockcountry-settings.php:
|
97 |
msgid "Backup all settings"
|
98 |
msgstr ""
|
99 |
|
100 |
-
#: libs/blockcountry-settings.php:
|
101 |
msgid "Import"
|
102 |
msgstr ""
|
103 |
|
104 |
-
#: libs/blockcountry-settings.php:
|
105 |
msgid "Click the browse button and choose a zip file that you exported before."
|
106 |
msgstr ""
|
107 |
|
108 |
-
#: libs/blockcountry-settings.php:
|
109 |
msgid "Press Restore settings button, and let WordPress do the magic for you."
|
110 |
msgstr ""
|
111 |
|
112 |
-
#: libs/blockcountry-settings.php:
|
113 |
msgid "Restore settings"
|
114 |
msgstr ""
|
115 |
|
116 |
-
#: libs/blockcountry-settings.php:
|
117 |
-
#: libs/blockcountry-settings.php:
|
118 |
msgid "Something went wrong exporting this file"
|
119 |
msgstr ""
|
120 |
|
121 |
-
#: libs/blockcountry-settings.php:
|
122 |
msgid "Exporting settings..."
|
123 |
msgstr ""
|
124 |
|
125 |
-
#: libs/blockcountry-settings.php:
|
126 |
msgid "Something went wrong importing this file"
|
127 |
msgstr ""
|
128 |
|
129 |
-
#: libs/blockcountry-settings.php:
|
130 |
msgid "All options are restored successfully."
|
131 |
msgstr ""
|
132 |
|
133 |
-
#: libs/blockcountry-settings.php:
|
134 |
msgid "Invalid file."
|
135 |
msgstr ""
|
136 |
|
137 |
-
#: libs/blockcountry-settings.php:
|
138 |
msgid "No correct import or export option given."
|
139 |
msgstr ""
|
140 |
|
141 |
-
#: libs/blockcountry-settings.php:
|
142 |
msgid "Select which pages are blocked."
|
143 |
msgstr ""
|
144 |
|
145 |
-
#: libs/blockcountry-settings.php:
|
146 |
msgid "Do you want to block individual pages:"
|
147 |
msgstr ""
|
148 |
|
149 |
-
#: libs/blockcountry-settings.php:
|
150 |
msgid "If you do not select this option all pages will be blocked."
|
151 |
msgstr ""
|
152 |
|
153 |
-
#: libs/blockcountry-settings.php:
|
154 |
msgid "Select pages you want to block:"
|
155 |
msgstr ""
|
156 |
|
157 |
-
#: libs/blockcountry-settings.php:
|
|
|
|
|
158 |
msgid "Save Changes"
|
159 |
msgstr ""
|
160 |
|
161 |
-
#: libs/blockcountry-settings.php:
|
162 |
-
msgid "
|
163 |
msgstr ""
|
164 |
|
165 |
-
#: libs/blockcountry-settings.php:
|
166 |
-
msgid "
|
167 |
msgstr ""
|
168 |
|
169 |
-
#: libs/blockcountry-settings.php:
|
170 |
-
msgid "
|
171 |
msgstr ""
|
172 |
|
173 |
-
#: libs/blockcountry-settings.php:
|
174 |
-
msgid "
|
175 |
msgstr ""
|
176 |
|
177 |
-
#: libs/blockcountry-settings.php:
|
178 |
-
msgid "
|
|
|
|
|
179 |
msgstr ""
|
180 |
|
181 |
-
#: libs/blockcountry-settings.php:
|
182 |
-
msgid "
|
183 |
msgstr ""
|
184 |
|
185 |
-
#: libs/blockcountry-settings.php:
|
186 |
-
msgid "
|
187 |
msgstr ""
|
188 |
|
189 |
-
#: libs/blockcountry-settings.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
190 |
msgid ""
|
191 |
"Select the countries that should be blocked from visiting your frontend:"
|
192 |
msgstr ""
|
193 |
|
194 |
-
#: libs/blockcountry-settings.php:
|
195 |
msgid "Use the CTRL key to select multiple countries"
|
196 |
msgstr ""
|
197 |
|
198 |
-
#: libs/blockcountry-settings.php:
|
199 |
msgid "Frontend whitelist IPv4 and/or IPv6 addresses:"
|
200 |
msgstr ""
|
201 |
|
202 |
-
#: libs/blockcountry-settings.php:
|
203 |
msgid "Use a semicolon (;) to separate IP addresses"
|
204 |
msgstr ""
|
205 |
|
206 |
-
#: libs/blockcountry-settings.php:
|
207 |
msgid "Frontend blacklist IPv4 and/or IPv6 addresses:"
|
208 |
msgstr ""
|
209 |
|
210 |
-
#: libs/blockcountry-settings.php:
|
211 |
-
msgid "
|
|
|
|
|
|
|
|
|
|
|
212 |
msgstr ""
|
213 |
|
214 |
-
#: libs/blockcountry-settings.php:
|
215 |
msgid "Your IP address is"
|
216 |
msgstr ""
|
217 |
|
218 |
-
#: libs/blockcountry-settings.php:
|
219 |
msgid "The country that is listed for this IP address is"
|
220 |
msgstr ""
|
221 |
|
222 |
-
#: libs/blockcountry-settings.php:
|
223 |
msgid ""
|
224 |
-
"Do <strong>NOT</strong> set the 'Block
|
225 |
"(administrator) of your website' and also select"
|
226 |
msgstr ""
|
227 |
|
228 |
-
#: libs/blockcountry-settings.php:
|
229 |
msgid "below."
|
230 |
msgstr ""
|
231 |
|
232 |
-
#: libs/blockcountry-settings.php:
|
233 |
msgid ""
|
234 |
"You will NOT be able to login the next time if you DO block your own country "
|
235 |
"from visiting the backend."
|
236 |
msgstr ""
|
237 |
|
238 |
-
#: libs/blockcountry-settings.php:
|
239 |
msgid "Select the countries that should be blocked from visiting your backend:"
|
240 |
msgstr ""
|
241 |
|
242 |
-
#: libs/blockcountry-settings.php:
|
243 |
msgid "Use the x behind the country to remove a country from this blocklist."
|
244 |
msgstr ""
|
245 |
|
246 |
-
#: libs/blockcountry-settings.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
247 |
msgid "Send headers when user is blocked:"
|
248 |
msgstr ""
|
249 |
|
250 |
-
#: libs/blockcountry-settings.php:
|
251 |
msgid ""
|
252 |
"Under normal circumstances you should keep this selected! Only if you have "
|
253 |
"\"Cannot modify header information - headers already sent\" errors or if you "
|
254 |
"know what you are doing uncheck this."
|
255 |
msgstr ""
|
256 |
|
257 |
-
#: libs/blockcountry-settings.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
258 |
msgid "Last 15 blocked visits"
|
259 |
msgstr ""
|
260 |
|
261 |
-
#: libs/blockcountry-settings.php:
|
262 |
msgid "Date / Time"
|
263 |
msgstr ""
|
264 |
|
265 |
-
#: libs/blockcountry-settings.php:
|
266 |
msgid "IP Address"
|
267 |
msgstr ""
|
268 |
|
269 |
-
#: libs/blockcountry-settings.php:
|
270 |
msgid "Hostname"
|
271 |
msgstr ""
|
272 |
|
273 |
-
#: libs/blockcountry-settings.php:
|
274 |
-
msgid "URL"
|
275 |
-
msgstr ""
|
276 |
-
|
277 |
-
#: libs/blockcountry-settings.php:504 libs/blockcountry-settings.php:523
|
278 |
msgid "Country"
|
279 |
msgstr ""
|
280 |
|
281 |
-
#: libs/blockcountry-settings.php:
|
282 |
msgid "Frontend/Backend"
|
283 |
msgstr ""
|
284 |
|
285 |
-
#: libs/blockcountry-settings.php:
|
286 |
msgid "Frontend"
|
287 |
msgstr ""
|
288 |
|
289 |
-
#: libs/blockcountry-settings.php:
|
290 |
msgid "Backend"
|
291 |
msgstr ""
|
292 |
|
293 |
-
#: libs/blockcountry-settings.php:
|
294 |
msgid "Top countries that are blocked"
|
295 |
msgstr ""
|
296 |
|
297 |
-
#: libs/blockcountry-settings.php:
|
298 |
-
#: libs/blockcountry-settings.php:
|
299 |
msgid "# of blocked attempts"
|
300 |
msgstr ""
|
301 |
|
302 |
-
#: libs/blockcountry-settings.php:
|
303 |
msgid "Top hosts that are blocked"
|
304 |
msgstr ""
|
305 |
|
306 |
-
#: libs/blockcountry-settings.php:
|
307 |
msgid "Top URLs that are blocked"
|
308 |
msgstr ""
|
309 |
|
310 |
-
#: libs/blockcountry-settings.php:
|
311 |
msgid "Home"
|
312 |
msgstr ""
|
313 |
|
314 |
-
#: libs/blockcountry-settings.php:
|
315 |
msgid "Pages"
|
316 |
msgstr ""
|
317 |
|
318 |
-
#: libs/blockcountry-settings.php:
|
319 |
-
msgid "
|
|
|
|
|
|
|
|
|
320 |
msgstr ""
|
321 |
|
322 |
-
#: libs/blockcountry-settings.php:
|
323 |
msgid "Logging"
|
324 |
msgstr ""
|
325 |
|
326 |
-
#: libs/blockcountry-settings.php:
|
327 |
msgid "Import/Export"
|
328 |
msgstr ""
|
329 |
|
330 |
-
#: libs/blockcountry-settings.php:
|
331 |
msgid "GeoIP database does not exists. Trying to download it..."
|
332 |
msgstr ""
|
333 |
|
334 |
-
#: iq-block-country.php:
|
335 |
msgid "Error occured: Could not download the GeoIP database from"
|
336 |
msgstr ""
|
337 |
|
338 |
-
#: iq-block-country.php:
|
339 |
msgid ""
|
340 |
"MaxMind has blocked requests from your IP address for 24 hours. Please check "
|
341 |
"again in 24 hours or download this file from your own PC"
|
342 |
msgstr ""
|
343 |
|
344 |
-
#: iq-block-country.php:
|
345 |
msgid "Unzip this file and upload it (via FTP for instance) to:"
|
346 |
msgstr ""
|
347 |
|
348 |
-
#: iq-block-country.php:
|
349 |
msgid ""
|
350 |
"Please download this file from your own PC unzip this file and upload it "
|
351 |
"(via FTP for instance) to:"
|
352 |
msgstr ""
|
353 |
|
354 |
-
#: iq-block-country.php:
|
355 |
msgid "Finished downloading"
|
356 |
msgstr ""
|
357 |
|
358 |
-
#: iq-block-country.php:
|
359 |
msgid "Fatal error: GeoIP"
|
360 |
msgstr ""
|
361 |
|
362 |
-
#: iq-block-country.php:
|
363 |
msgid ""
|
364 |
"database does not exists. This plugin will not work until the database file "
|
365 |
"is present."
|
1 |
msgid ""
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: iQ Block Country\n"
|
4 |
+
"POT-Creation-Date: 2014-03-31 15:52+0100\n"
|
5 |
+
"PO-Revision-Date: 2014-03-31 15:52+0100\n"
|
6 |
"Last-Translator: \n"
|
7 |
"Language-Team: iQ Block Country <info@redeo.nl>\n"
|
8 |
"Language: English\n"
|
15 |
"X-Poedit-SearchPath-0: libs\n"
|
16 |
"X-Poedit-SearchPath-1: .\n"
|
17 |
|
18 |
+
#: libs/blockcountry-settings.php:113
|
19 |
msgid ""
|
20 |
"Check which country belongs to an IP Address according to the current "
|
21 |
"database."
|
22 |
msgstr ""
|
23 |
|
24 |
+
#: libs/blockcountry-settings.php:117
|
25 |
msgid "IP Address to check:"
|
26 |
msgstr ""
|
27 |
|
28 |
+
#: libs/blockcountry-settings.php:127
|
29 |
msgid "No country for"
|
30 |
msgstr ""
|
31 |
|
32 |
+
#: libs/blockcountry-settings.php:127
|
33 |
msgid "could be found. Or"
|
34 |
msgstr ""
|
35 |
|
36 |
+
#: libs/blockcountry-settings.php:127
|
37 |
msgid "is not a valid IPv4 or IPv6 IP address"
|
38 |
msgstr ""
|
39 |
|
40 |
+
#: libs/blockcountry-settings.php:132
|
41 |
msgid "IP Adress"
|
42 |
msgstr ""
|
43 |
|
44 |
+
#: libs/blockcountry-settings.php:132
|
45 |
msgid "belongs to"
|
46 |
msgstr ""
|
47 |
|
48 |
+
#: libs/blockcountry-settings.php:135
|
49 |
msgid "This country is not permitted to visit the frontend of this website."
|
50 |
msgstr ""
|
51 |
|
52 |
+
#: libs/blockcountry-settings.php:140
|
53 |
msgid "This country is not permitted to visit the backend of this website."
|
54 |
msgstr ""
|
55 |
|
56 |
+
#: libs/blockcountry-settings.php:146
|
57 |
msgid "Check IP address"
|
58 |
msgstr ""
|
59 |
|
60 |
+
#: libs/blockcountry-settings.php:152
|
61 |
+
msgid "Download GeoIP database"
|
62 |
+
msgstr ""
|
63 |
+
|
64 |
+
#: libs/blockcountry-settings.php:159
|
65 |
msgid "The GeoIP database is updated once a month. Last update: "
|
66 |
msgstr ""
|
67 |
|
68 |
+
#: libs/blockcountry-settings.php:160
|
69 |
msgid "If you need a manual update please press buttons below to update."
|
70 |
msgstr ""
|
71 |
|
72 |
+
#: libs/blockcountry-settings.php:166
|
73 |
msgid "Download new GeoIP IPv4 Database"
|
74 |
msgstr ""
|
75 |
|
76 |
+
#: libs/blockcountry-settings.php:173
|
77 |
msgid "Download new GeoIP IPv6 Database"
|
78 |
msgstr ""
|
79 |
|
80 |
+
#: libs/blockcountry-settings.php:178 libs/blockcountry-settings.php:182
|
81 |
msgid "Downloading..."
|
82 |
msgstr ""
|
83 |
|
84 |
+
#: libs/blockcountry-settings.php:188
|
85 |
+
msgid "Active plugins"
|
86 |
+
msgstr ""
|
87 |
+
|
88 |
+
#: libs/blockcountry-settings.php:195
|
89 |
+
msgid "Plugin name"
|
90 |
+
msgstr ""
|
91 |
+
|
92 |
+
#: libs/blockcountry-settings.php:195
|
93 |
+
msgid "Version"
|
94 |
+
msgstr ""
|
95 |
+
|
96 |
+
#: libs/blockcountry-settings.php:195 libs/blockcountry-settings.php:716
|
97 |
+
#: libs/blockcountry-settings.php:759
|
98 |
+
msgid "URL"
|
99 |
+
msgstr ""
|
100 |
+
|
101 |
+
#: libs/blockcountry-settings.php:220
|
102 |
msgid "Export"
|
103 |
msgstr ""
|
104 |
|
105 |
+
#: libs/blockcountry-settings.php:221
|
106 |
msgid ""
|
107 |
"When you click on <tt>Backup all settings</tt> button a backup of the iQ "
|
108 |
"Block Country configuration will be created."
|
109 |
msgstr ""
|
110 |
|
111 |
+
#: libs/blockcountry-settings.php:222
|
112 |
msgid ""
|
113 |
"After exporting, you can either use the backup file to restore your settings "
|
114 |
"on this site again or copy the settings to another WordPress site."
|
115 |
msgstr ""
|
116 |
|
117 |
+
#: libs/blockcountry-settings.php:226
|
118 |
msgid "Backup all settings"
|
119 |
msgstr ""
|
120 |
|
121 |
+
#: libs/blockcountry-settings.php:233
|
122 |
msgid "Import"
|
123 |
msgstr ""
|
124 |
|
125 |
+
#: libs/blockcountry-settings.php:234
|
126 |
msgid "Click the browse button and choose a zip file that you exported before."
|
127 |
msgstr ""
|
128 |
|
129 |
+
#: libs/blockcountry-settings.php:235
|
130 |
msgid "Press Restore settings button, and let WordPress do the magic for you."
|
131 |
msgstr ""
|
132 |
|
133 |
+
#: libs/blockcountry-settings.php:240
|
134 |
msgid "Restore settings"
|
135 |
msgstr ""
|
136 |
|
137 |
+
#: libs/blockcountry-settings.php:263 libs/blockcountry-settings.php:266
|
138 |
+
#: libs/blockcountry-settings.php:275
|
139 |
msgid "Something went wrong exporting this file"
|
140 |
msgstr ""
|
141 |
|
142 |
+
#: libs/blockcountry-settings.php:278
|
143 |
msgid "Exporting settings..."
|
144 |
msgstr ""
|
145 |
|
146 |
+
#: libs/blockcountry-settings.php:293
|
147 |
msgid "Something went wrong importing this file"
|
148 |
msgstr ""
|
149 |
|
150 |
+
#: libs/blockcountry-settings.php:310
|
151 |
msgid "All options are restored successfully."
|
152 |
msgstr ""
|
153 |
|
154 |
+
#: libs/blockcountry-settings.php:313
|
155 |
msgid "Invalid file."
|
156 |
msgstr ""
|
157 |
|
158 |
+
#: libs/blockcountry-settings.php:318
|
159 |
msgid "No correct import or export option given."
|
160 |
msgstr ""
|
161 |
|
162 |
+
#: libs/blockcountry-settings.php:327
|
163 |
msgid "Select which pages are blocked."
|
164 |
msgstr ""
|
165 |
|
166 |
+
#: libs/blockcountry-settings.php:334
|
167 |
msgid "Do you want to block individual pages:"
|
168 |
msgstr ""
|
169 |
|
170 |
+
#: libs/blockcountry-settings.php:335
|
171 |
msgid "If you do not select this option all pages will be blocked."
|
172 |
msgstr ""
|
173 |
|
174 |
+
#: libs/blockcountry-settings.php:340
|
175 |
msgid "Select pages you want to block:"
|
176 |
msgstr ""
|
177 |
|
178 |
+
#: libs/blockcountry-settings.php:362 libs/blockcountry-settings.php:416
|
179 |
+
#: libs/blockcountry-settings.php:511 libs/blockcountry-settings.php:599
|
180 |
+
#: libs/blockcountry-settings.php:689
|
181 |
msgid "Save Changes"
|
182 |
msgstr ""
|
183 |
|
184 |
+
#: libs/blockcountry-settings.php:375
|
185 |
+
msgid "Select which categories are blocked."
|
186 |
msgstr ""
|
187 |
|
188 |
+
#: libs/blockcountry-settings.php:382
|
189 |
+
msgid "Do you want to block individual categories:"
|
190 |
msgstr ""
|
191 |
|
192 |
+
#: libs/blockcountry-settings.php:383
|
193 |
+
msgid "If you do not select this option all blog articles will be blocked."
|
194 |
msgstr ""
|
195 |
|
196 |
+
#: libs/blockcountry-settings.php:388
|
197 |
+
msgid "Do you want to block the homepage:"
|
198 |
msgstr ""
|
199 |
|
200 |
+
#: libs/blockcountry-settings.php:389
|
201 |
+
msgid ""
|
202 |
+
"If you do not select this option visitors will not be blocked from your "
|
203 |
+
"homepage regardless of the categories you select."
|
204 |
msgstr ""
|
205 |
|
206 |
+
#: libs/blockcountry-settings.php:394
|
207 |
+
msgid "Select categories you want to block:"
|
208 |
msgstr ""
|
209 |
|
210 |
+
#: libs/blockcountry-settings.php:430
|
211 |
+
msgid "Frontend options"
|
212 |
msgstr ""
|
213 |
|
214 |
+
#: libs/blockcountry-settings.php:465
|
215 |
+
msgid ""
|
216 |
+
"Do not block visitors that are logged in from visiting frontend website:"
|
217 |
+
msgstr ""
|
218 |
+
|
219 |
+
#: libs/blockcountry-settings.php:471
|
220 |
+
msgid "Block visitors from visiting the frontend of your website:"
|
221 |
+
msgstr ""
|
222 |
+
|
223 |
+
#: libs/blockcountry-settings.php:477
|
224 |
msgid ""
|
225 |
"Select the countries that should be blocked from visiting your frontend:"
|
226 |
msgstr ""
|
227 |
|
228 |
+
#: libs/blockcountry-settings.php:478
|
229 |
msgid "Use the CTRL key to select multiple countries"
|
230 |
msgstr ""
|
231 |
|
232 |
+
#: libs/blockcountry-settings.php:494
|
233 |
msgid "Frontend whitelist IPv4 and/or IPv6 addresses:"
|
234 |
msgstr ""
|
235 |
|
236 |
+
#: libs/blockcountry-settings.php:494 libs/blockcountry-settings.php:502
|
237 |
msgid "Use a semicolon (;) to separate IP addresses"
|
238 |
msgstr ""
|
239 |
|
240 |
+
#: libs/blockcountry-settings.php:502
|
241 |
msgid "Frontend blacklist IPv4 and/or IPv6 addresses:"
|
242 |
msgstr ""
|
243 |
|
244 |
+
#: libs/blockcountry-settings.php:531
|
245 |
+
msgid "Backend Options"
|
246 |
+
msgstr ""
|
247 |
+
|
248 |
+
#: libs/blockcountry-settings.php:565
|
249 |
+
msgid ""
|
250 |
+
"Block visitors from visiting the backend (administrator) of your website:"
|
251 |
msgstr ""
|
252 |
|
253 |
+
#: libs/blockcountry-settings.php:573
|
254 |
msgid "Your IP address is"
|
255 |
msgstr ""
|
256 |
|
257 |
+
#: libs/blockcountry-settings.php:573
|
258 |
msgid "The country that is listed for this IP address is"
|
259 |
msgstr ""
|
260 |
|
261 |
+
#: libs/blockcountry-settings.php:574
|
262 |
msgid ""
|
263 |
+
"Do <strong>NOT</strong> set the 'Block visitors from visiting the backend "
|
264 |
"(administrator) of your website' and also select"
|
265 |
msgstr ""
|
266 |
|
267 |
+
#: libs/blockcountry-settings.php:574
|
268 |
msgid "below."
|
269 |
msgstr ""
|
270 |
|
271 |
+
#: libs/blockcountry-settings.php:575
|
272 |
msgid ""
|
273 |
"You will NOT be able to login the next time if you DO block your own country "
|
274 |
"from visiting the backend."
|
275 |
msgstr ""
|
276 |
|
277 |
+
#: libs/blockcountry-settings.php:580
|
278 |
msgid "Select the countries that should be blocked from visiting your backend:"
|
279 |
msgstr ""
|
280 |
|
281 |
+
#: libs/blockcountry-settings.php:581
|
282 |
msgid "Use the x behind the country to remove a country from this blocklist."
|
283 |
msgstr ""
|
284 |
|
285 |
+
#: libs/blockcountry-settings.php:620
|
286 |
+
msgid "Overall statistics since start"
|
287 |
+
msgstr ""
|
288 |
+
|
289 |
+
#: libs/blockcountry-settings.php:623
|
290 |
+
msgid "visitors blocked from the backend."
|
291 |
+
msgstr ""
|
292 |
+
|
293 |
+
#: libs/blockcountry-settings.php:625
|
294 |
+
msgid "visitors blocked from the frontend."
|
295 |
+
msgstr ""
|
296 |
+
|
297 |
+
#: libs/blockcountry-settings.php:629
|
298 |
+
msgid "Basic Options"
|
299 |
+
msgstr ""
|
300 |
+
|
301 |
+
#: libs/blockcountry-settings.php:664
|
302 |
+
msgid "Message to display when people are blocked:"
|
303 |
+
msgstr ""
|
304 |
+
|
305 |
+
#: libs/blockcountry-settings.php:674
|
306 |
msgid "Send headers when user is blocked:"
|
307 |
msgstr ""
|
308 |
|
309 |
+
#: libs/blockcountry-settings.php:675
|
310 |
msgid ""
|
311 |
"Under normal circumstances you should keep this selected! Only if you have "
|
312 |
"\"Cannot modify header information - headers already sent\" errors or if you "
|
313 |
"know what you are doing uncheck this."
|
314 |
msgstr ""
|
315 |
|
316 |
+
#: libs/blockcountry-settings.php:681
|
317 |
+
msgid "Allow tracking:"
|
318 |
+
msgstr ""
|
319 |
+
|
320 |
+
#: libs/blockcountry-settings.php:682
|
321 |
+
msgid ""
|
322 |
+
"This sends only the IP address and the number of attempts this ip address "
|
323 |
+
"tried to login to your backend and was blocked doing so to a central server. "
|
324 |
+
"No other data is being send. This helps us to get a better picture of rogue "
|
325 |
+
"countries."
|
326 |
+
msgstr ""
|
327 |
+
|
328 |
+
#: libs/blockcountry-settings.php:708
|
329 |
msgid "Last 15 blocked visits"
|
330 |
msgstr ""
|
331 |
|
332 |
+
#: libs/blockcountry-settings.php:716
|
333 |
msgid "Date / Time"
|
334 |
msgstr ""
|
335 |
|
336 |
+
#: libs/blockcountry-settings.php:716 libs/blockcountry-settings.php:748
|
337 |
msgid "IP Address"
|
338 |
msgstr ""
|
339 |
|
340 |
+
#: libs/blockcountry-settings.php:716 libs/blockcountry-settings.php:748
|
341 |
msgid "Hostname"
|
342 |
msgstr ""
|
343 |
|
344 |
+
#: libs/blockcountry-settings.php:716 libs/blockcountry-settings.php:735
|
|
|
|
|
|
|
|
|
345 |
msgid "Country"
|
346 |
msgstr ""
|
347 |
|
348 |
+
#: libs/blockcountry-settings.php:716
|
349 |
msgid "Frontend/Backend"
|
350 |
msgstr ""
|
351 |
|
352 |
+
#: libs/blockcountry-settings.php:726 libs/blockcountry-settings.php:787
|
353 |
msgid "Frontend"
|
354 |
msgstr ""
|
355 |
|
356 |
+
#: libs/blockcountry-settings.php:726 libs/blockcountry-settings.php:788
|
357 |
msgid "Backend"
|
358 |
msgstr ""
|
359 |
|
360 |
+
#: libs/blockcountry-settings.php:733
|
361 |
msgid "Top countries that are blocked"
|
362 |
msgstr ""
|
363 |
|
364 |
+
#: libs/blockcountry-settings.php:735 libs/blockcountry-settings.php:748
|
365 |
+
#: libs/blockcountry-settings.php:759
|
366 |
msgid "# of blocked attempts"
|
367 |
msgstr ""
|
368 |
|
369 |
+
#: libs/blockcountry-settings.php:746
|
370 |
msgid "Top hosts that are blocked"
|
371 |
msgstr ""
|
372 |
|
373 |
+
#: libs/blockcountry-settings.php:757
|
374 |
msgid "Top URLs that are blocked"
|
375 |
msgstr ""
|
376 |
|
377 |
+
#: libs/blockcountry-settings.php:786
|
378 |
msgid "Home"
|
379 |
msgstr ""
|
380 |
|
381 |
+
#: libs/blockcountry-settings.php:789
|
382 |
msgid "Pages"
|
383 |
msgstr ""
|
384 |
|
385 |
+
#: libs/blockcountry-settings.php:790
|
386 |
+
msgid "Categories"
|
387 |
+
msgstr ""
|
388 |
+
|
389 |
+
#: libs/blockcountry-settings.php:791
|
390 |
+
msgid "Tools"
|
391 |
msgstr ""
|
392 |
|
393 |
+
#: libs/blockcountry-settings.php:792
|
394 |
msgid "Logging"
|
395 |
msgstr ""
|
396 |
|
397 |
+
#: libs/blockcountry-settings.php:793
|
398 |
msgid "Import/Export"
|
399 |
msgstr ""
|
400 |
|
401 |
+
#: libs/blockcountry-settings.php:843
|
402 |
msgid "GeoIP database does not exists. Trying to download it..."
|
403 |
msgstr ""
|
404 |
|
405 |
+
#: iq-block-country.php:142 iq-block-country.php:152
|
406 |
msgid "Error occured: Could not download the GeoIP database from"
|
407 |
msgstr ""
|
408 |
|
409 |
+
#: iq-block-country.php:143
|
410 |
msgid ""
|
411 |
"MaxMind has blocked requests from your IP address for 24 hours. Please check "
|
412 |
"again in 24 hours or download this file from your own PC"
|
413 |
msgstr ""
|
414 |
|
415 |
+
#: iq-block-country.php:144
|
416 |
msgid "Unzip this file and upload it (via FTP for instance) to:"
|
417 |
msgstr ""
|
418 |
|
419 |
+
#: iq-block-country.php:153
|
420 |
msgid ""
|
421 |
"Please download this file from your own PC unzip this file and upload it "
|
422 |
"(via FTP for instance) to:"
|
423 |
msgstr ""
|
424 |
|
425 |
+
#: iq-block-country.php:179
|
426 |
msgid "Finished downloading"
|
427 |
msgstr ""
|
428 |
|
429 |
+
#: iq-block-country.php:185
|
430 |
msgid "Fatal error: GeoIP"
|
431 |
msgstr ""
|
432 |
|
433 |
+
#: iq-block-country.php:185
|
434 |
msgid ""
|
435 |
"database does not exists. This plugin will not work until the database file "
|
436 |
"is present."
|
lang/iqblockcountry-nl_NL.mo
CHANGED
Binary file
|
lang/iqblockcountry-nl_NL.po
CHANGED
@@ -1,8 +1,8 @@
|
|
1 |
msgid ""
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: iQ Block Country\n"
|
4 |
-
"POT-Creation-Date: 2014-
|
5 |
-
"PO-Revision-Date: 2014-
|
6 |
"Last-Translator: \n"
|
7 |
"Language-Team: iQ Block Country <info@redeo.nl>\n"
|
8 |
"Language: Dutch\n"
|
@@ -15,78 +15,99 @@ msgstr ""
|
|
15 |
"X-Poedit-SearchPath-0: libs\n"
|
16 |
"X-Poedit-SearchPath-1: .\n"
|
17 |
|
18 |
-
#: libs/blockcountry-settings.php:
|
19 |
msgid ""
|
20 |
"Check which country belongs to an IP Address according to the current "
|
21 |
"database."
|
22 |
msgstr ""
|
23 |
"Controleer welk land behoort tot een IP adres volgens de huidige database."
|
24 |
|
25 |
-
#: libs/blockcountry-settings.php:
|
26 |
msgid "IP Address to check:"
|
27 |
msgstr "IP adres om te controleren:"
|
28 |
|
29 |
-
#: libs/blockcountry-settings.php:
|
30 |
msgid "No country for"
|
31 |
msgstr "Geen land voor"
|
32 |
|
33 |
-
#: libs/blockcountry-settings.php:
|
34 |
msgid "could be found. Or"
|
35 |
msgstr "gevonden. Of"
|
36 |
|
37 |
-
#: libs/blockcountry-settings.php:
|
38 |
msgid "is not a valid IPv4 or IPv6 IP address"
|
39 |
msgstr "is geen valide IPv4 of IPv6 ip adres."
|
40 |
|
41 |
-
#: libs/blockcountry-settings.php:
|
42 |
msgid "IP Adress"
|
43 |
msgstr "IP Adres"
|
44 |
|
45 |
-
#: libs/blockcountry-settings.php:
|
46 |
msgid "belongs to"
|
47 |
msgstr "behoort tot"
|
48 |
|
49 |
-
#: libs/blockcountry-settings.php:
|
50 |
msgid "This country is not permitted to visit the frontend of this website."
|
51 |
msgstr ""
|
52 |
"Dit land wordt niet toegestaan om de voorkant van deze website te bezoeken."
|
53 |
|
54 |
-
#: libs/blockcountry-settings.php:
|
55 |
msgid "This country is not permitted to visit the backend of this website."
|
56 |
msgstr ""
|
57 |
"Dit land wordt niet toegestaan om de achterkant van deze website te bezoeken."
|
58 |
|
59 |
-
#: libs/blockcountry-settings.php:
|
60 |
msgid "Check IP address"
|
61 |
msgstr "Controleer IP adres"
|
62 |
|
63 |
-
#: libs/blockcountry-settings.php:
|
|
|
|
|
|
|
|
|
64 |
msgid "The GeoIP database is updated once a month. Last update: "
|
65 |
msgstr ""
|
66 |
"De GeoIP database wordt eenmaal per maand bijgewerkt. Laatste keer "
|
67 |
"bijgewerkt:"
|
68 |
|
69 |
-
#: libs/blockcountry-settings.php:
|
70 |
msgid "If you need a manual update please press buttons below to update."
|
71 |
msgstr "Indien je handmatig wilt bijwerken druk je op de knoppen hier beneden."
|
72 |
|
73 |
-
#: libs/blockcountry-settings.php:
|
74 |
msgid "Download new GeoIP IPv4 Database"
|
75 |
msgstr "Download nieuwe GeoIP IPv4 database"
|
76 |
|
77 |
-
#: libs/blockcountry-settings.php:
|
78 |
msgid "Download new GeoIP IPv6 Database"
|
79 |
msgstr "Download nieuwe GeoIP IPv6 database"
|
80 |
|
81 |
-
#: libs/blockcountry-settings.php:
|
82 |
msgid "Downloading..."
|
83 |
msgstr "Downloading..."
|
84 |
|
85 |
-
#: libs/blockcountry-settings.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
86 |
msgid "Export"
|
87 |
msgstr "Exporteren"
|
88 |
|
89 |
-
#: libs/blockcountry-settings.php:
|
90 |
msgid ""
|
91 |
"When you click on <tt>Backup all settings</tt> button a backup of the iQ "
|
92 |
"Block Country configuration will be created."
|
@@ -94,7 +115,7 @@ msgstr ""
|
|
94 |
"Wanneer je klikt op de <tt>Backup alle instellingen</tt> knop zal een backup "
|
95 |
"van alle iQ Block Country instellingen worden gecreerd."
|
96 |
|
97 |
-
#: libs/blockcountry-settings.php:
|
98 |
msgid ""
|
99 |
"After exporting, you can either use the backup file to restore your settings "
|
100 |
"on this site again or copy the settings to another WordPress site."
|
@@ -103,157 +124,178 @@ msgstr ""
|
|
103 |
"te herstellen of je kunt het bestand gebruiken om je instellingen naar een "
|
104 |
"andere WordPress site te exporteren."
|
105 |
|
106 |
-
#: libs/blockcountry-settings.php:
|
107 |
msgid "Backup all settings"
|
108 |
msgstr "Backup alle instellingen"
|
109 |
|
110 |
-
#: libs/blockcountry-settings.php:
|
111 |
msgid "Import"
|
112 |
msgstr "Importeer"
|
113 |
|
114 |
-
#: libs/blockcountry-settings.php:
|
115 |
msgid "Click the browse button and choose a zip file that you exported before."
|
116 |
msgstr ""
|
117 |
"Klik op de Browse button and selecteer een zip file welke je eerder hebt "
|
118 |
"geexporteerd."
|
119 |
|
120 |
-
#: libs/blockcountry-settings.php:
|
121 |
msgid "Press Restore settings button, and let WordPress do the magic for you."
|
122 |
msgstr ""
|
123 |
"Druk op de herstel instellingen knop en laat WordPress haar magie voor je "
|
124 |
"doen."
|
125 |
|
126 |
-
#: libs/blockcountry-settings.php:
|
127 |
msgid "Restore settings"
|
128 |
msgstr "Herstel instellingen"
|
129 |
|
130 |
-
#: libs/blockcountry-settings.php:
|
131 |
-
#: libs/blockcountry-settings.php:
|
132 |
msgid "Something went wrong exporting this file"
|
133 |
msgstr "Er is iets verkeerd gegaan met het exporteren van het bestand."
|
134 |
|
135 |
-
#: libs/blockcountry-settings.php:
|
136 |
msgid "Exporting settings..."
|
137 |
msgstr "Exporteer instellingen"
|
138 |
|
139 |
-
#: libs/blockcountry-settings.php:
|
140 |
msgid "Something went wrong importing this file"
|
141 |
msgstr "Er is iets verkeerd gegaan met het importeren van dit bestand"
|
142 |
|
143 |
-
#: libs/blockcountry-settings.php:
|
144 |
msgid "All options are restored successfully."
|
145 |
msgstr "Alle opties zijn succesvol hersteld"
|
146 |
|
147 |
-
#: libs/blockcountry-settings.php:
|
148 |
msgid "Invalid file."
|
149 |
msgstr "Ongeldig bestand"
|
150 |
|
151 |
-
#: libs/blockcountry-settings.php:
|
152 |
msgid "No correct import or export option given."
|
153 |
msgstr "Geen correcte importeer of exporteer optie gegeven."
|
154 |
|
155 |
-
#: libs/blockcountry-settings.php:
|
156 |
msgid "Select which pages are blocked."
|
157 |
msgstr "Selecteer welke pagina's geblokkeerd worden."
|
158 |
|
159 |
-
#: libs/blockcountry-settings.php:
|
160 |
msgid "Do you want to block individual pages:"
|
161 |
msgstr "Wil je individuele pagina's blokkeren:"
|
162 |
|
163 |
-
#: libs/blockcountry-settings.php:
|
164 |
msgid "If you do not select this option all pages will be blocked."
|
165 |
msgstr "Indien je deze optie niet selecteert worden alle pagina's geblokkeerd."
|
166 |
|
167 |
-
#: libs/blockcountry-settings.php:
|
168 |
msgid "Select pages you want to block:"
|
169 |
msgstr "Selecteer welke pagina's je wil blokkeren."
|
170 |
|
171 |
-
#: libs/blockcountry-settings.php:
|
|
|
|
|
172 |
msgid "Save Changes"
|
173 |
msgstr "Bewaar wijzigingen"
|
174 |
|
175 |
-
#: libs/blockcountry-settings.php:
|
176 |
-
msgid "
|
177 |
-
msgstr "
|
178 |
|
179 |
-
#: libs/blockcountry-settings.php:
|
180 |
-
msgid "
|
181 |
-
msgstr "
|
182 |
|
183 |
-
#: libs/blockcountry-settings.php:
|
184 |
-
msgid "
|
185 |
-
msgstr "
|
|
|
186 |
|
187 |
-
#: libs/blockcountry-settings.php:
|
188 |
-
msgid "
|
189 |
-
msgstr "
|
190 |
|
191 |
-
#: libs/blockcountry-settings.php:
|
192 |
-
msgid "
|
193 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
194 |
|
195 |
-
#: libs/blockcountry-settings.php:
|
196 |
-
msgid "
|
|
|
197 |
msgstr ""
|
198 |
-
"Blokkeer geen
|
199 |
-
"voorkant:"
|
200 |
|
201 |
-
#: libs/blockcountry-settings.php:
|
202 |
-
msgid "Block
|
203 |
-
msgstr "Blokkeer
|
204 |
|
205 |
-
#: libs/blockcountry-settings.php:
|
206 |
msgid ""
|
207 |
"Select the countries that should be blocked from visiting your frontend:"
|
208 |
msgstr ""
|
209 |
"Selecteer de landen welke geblokkeerd moeten worden voor het bezoeken van de "
|
210 |
"voorkant van je website:"
|
211 |
|
212 |
-
#: libs/blockcountry-settings.php:
|
213 |
msgid "Use the CTRL key to select multiple countries"
|
214 |
msgstr "Gebruik de CTRL toets om meerdere landen te selecteren"
|
215 |
|
216 |
-
#: libs/blockcountry-settings.php:
|
217 |
msgid "Frontend whitelist IPv4 and/or IPv6 addresses:"
|
218 |
msgstr ""
|
219 |
"Whitelist van IPv4 of IPv6 IP adressen voor de voorkant van je website:"
|
220 |
|
221 |
-
#: libs/blockcountry-settings.php:
|
222 |
msgid "Use a semicolon (;) to separate IP addresses"
|
223 |
msgstr "Gebruik een puntkomma (;) om adressen van elkaar te scheiden"
|
224 |
|
225 |
-
#: libs/blockcountry-settings.php:
|
226 |
msgid "Frontend blacklist IPv4 and/or IPv6 addresses:"
|
227 |
msgstr ""
|
228 |
"Blacklist van IPv4 of IPv6 IP adressen voor de voorkant van je website:"
|
229 |
|
230 |
-
#: libs/blockcountry-settings.php:
|
231 |
-
msgid "
|
|
|
|
|
|
|
|
|
|
|
232 |
msgstr ""
|
233 |
-
"Blokkeer
|
234 |
"gedeelte) van je website:"
|
235 |
|
236 |
-
#: libs/blockcountry-settings.php:
|
237 |
msgid "Your IP address is"
|
238 |
msgstr "Je IP adres is"
|
239 |
|
240 |
-
#: libs/blockcountry-settings.php:
|
241 |
msgid "The country that is listed for this IP address is"
|
242 |
msgstr "Het land waar dit adres toe behoort is"
|
243 |
|
244 |
-
#: libs/blockcountry-settings.php:
|
245 |
msgid ""
|
246 |
-
"Do <strong>NOT</strong> set the 'Block
|
247 |
"(administrator) of your website' and also select"
|
248 |
msgstr ""
|
249 |
-
"Selecteer <strong>NIET</strong> \"Blokkeer
|
250 |
-
"
|
251 |
|
252 |
-
#: libs/blockcountry-settings.php:
|
253 |
msgid "below."
|
254 |
msgstr "hier beneden."
|
255 |
|
256 |
-
#: libs/blockcountry-settings.php:
|
257 |
msgid ""
|
258 |
"You will NOT be able to login the next time if you DO block your own country "
|
259 |
"from visiting the backend."
|
@@ -261,22 +303,42 @@ msgstr ""
|
|
261 |
"Het zal daarna niet meer mogelijk zijn om nog in te loggen als je je eigen "
|
262 |
"land blokkeert van het bezoeken van de achterkant van je website."
|
263 |
|
264 |
-
#: libs/blockcountry-settings.php:
|
265 |
msgid "Select the countries that should be blocked from visiting your backend:"
|
266 |
msgstr ""
|
267 |
"Selecteer de landen welke geblokkeerd moeten worden voor het bezoeken van de "
|
268 |
"achterkant (administratie gedeelte) van je website:"
|
269 |
|
270 |
-
#: libs/blockcountry-settings.php:
|
271 |
msgid "Use the x behind the country to remove a country from this blocklist."
|
272 |
msgstr ""
|
273 |
"Gebruik de x achter een land om het land te verwijderen uit deze lijst."
|
274 |
|
275 |
-
#: libs/blockcountry-settings.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
276 |
msgid "Send headers when user is blocked:"
|
277 |
msgstr "Stuur headers wanneer een gebruiker is geblokkeerd:"
|
278 |
|
279 |
-
#: libs/blockcountry-settings.php:
|
280 |
msgid ""
|
281 |
"Under normal circumstances you should keep this selected! Only if you have "
|
282 |
"\"Cannot modify header information - headers already sent\" errors or if you "
|
@@ -286,88 +348,106 @@ msgstr ""
|
|
286 |
"deze alleen indien je \"Cannot modify header information - headers already "
|
287 |
"sent\" foutmeldingen krijgt of indien je weet wat je doet."
|
288 |
|
289 |
-
#: libs/blockcountry-settings.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
290 |
msgid "Last 15 blocked visits"
|
291 |
msgstr "Laatste 15 geblokkeerde bezoekers"
|
292 |
|
293 |
-
#: libs/blockcountry-settings.php:
|
294 |
msgid "Date / Time"
|
295 |
msgstr "Datum / Tijd"
|
296 |
|
297 |
-
#: libs/blockcountry-settings.php:
|
298 |
msgid "IP Address"
|
299 |
msgstr "IP adres"
|
300 |
|
301 |
-
#: libs/blockcountry-settings.php:
|
302 |
msgid "Hostname"
|
303 |
msgstr "Hostnaam"
|
304 |
|
305 |
-
#: libs/blockcountry-settings.php:
|
306 |
-
msgid "URL"
|
307 |
-
msgstr "URL"
|
308 |
-
|
309 |
-
#: libs/blockcountry-settings.php:504 libs/blockcountry-settings.php:523
|
310 |
msgid "Country"
|
311 |
msgstr "Land"
|
312 |
|
313 |
-
#: libs/blockcountry-settings.php:
|
314 |
msgid "Frontend/Backend"
|
315 |
msgstr "Voorkant/Achterkant"
|
316 |
|
317 |
-
#: libs/blockcountry-settings.php:
|
318 |
msgid "Frontend"
|
319 |
msgstr "Voorkant"
|
320 |
|
321 |
-
#: libs/blockcountry-settings.php:
|
322 |
msgid "Backend"
|
323 |
msgstr "Achterkant"
|
324 |
|
325 |
-
#: libs/blockcountry-settings.php:
|
326 |
msgid "Top countries that are blocked"
|
327 |
msgstr "Top landen welke zijn geblokkeerd"
|
328 |
|
329 |
-
#: libs/blockcountry-settings.php:
|
330 |
-
#: libs/blockcountry-settings.php:
|
331 |
msgid "# of blocked attempts"
|
332 |
msgstr "# of geblokkeerde pogingen"
|
333 |
|
334 |
-
#: libs/blockcountry-settings.php:
|
335 |
msgid "Top hosts that are blocked"
|
336 |
msgstr "Top hosts welke geblokkeerd zijn"
|
337 |
|
338 |
-
#: libs/blockcountry-settings.php:
|
339 |
msgid "Top URLs that are blocked"
|
340 |
msgstr "Top URLs welke geblokkeerd zijn"
|
341 |
|
342 |
-
#: libs/blockcountry-settings.php:
|
343 |
msgid "Home"
|
344 |
msgstr "Home"
|
345 |
|
346 |
-
#: libs/blockcountry-settings.php:
|
347 |
msgid "Pages"
|
348 |
msgstr "Pagina's"
|
349 |
|
350 |
-
#: libs/blockcountry-settings.php:
|
351 |
-
msgid "
|
|
|
|
|
|
|
|
|
|
|
352 |
msgstr "Gereedschap"
|
353 |
|
354 |
-
#: libs/blockcountry-settings.php:
|
355 |
msgid "Logging"
|
356 |
msgstr "Statistieken"
|
357 |
|
358 |
-
#: libs/blockcountry-settings.php:
|
359 |
msgid "Import/Export"
|
360 |
msgstr "Importeren/Exporteren"
|
361 |
|
362 |
-
#: libs/blockcountry-settings.php:
|
363 |
msgid "GeoIP database does not exists. Trying to download it..."
|
364 |
msgstr "GeoIP database bestaat niet. Probeer om nieuwe versie te downloaden"
|
365 |
|
366 |
-
#: iq-block-country.php:
|
367 |
msgid "Error occured: Could not download the GeoIP database from"
|
368 |
msgstr "Uh oh: Kon de GeoIP database niet downloaden van"
|
369 |
|
370 |
-
#: iq-block-country.php:
|
371 |
msgid ""
|
372 |
"MaxMind has blocked requests from your IP address for 24 hours. Please check "
|
373 |
"again in 24 hours or download this file from your own PC"
|
@@ -375,11 +455,11 @@ msgstr ""
|
|
375 |
"MaxMind heeft alle verzoeken vanaf dit IP adres voor 24 uur geblokkeerd. "
|
376 |
"Controleer nogmaals na 24 uur of download dit bestand via je eigen pc"
|
377 |
|
378 |
-
#: iq-block-country.php:
|
379 |
msgid "Unzip this file and upload it (via FTP for instance) to:"
|
380 |
msgstr "Pak dit bestand uit en upload deze (via FTP bijvoorbeeld) naar:"
|
381 |
|
382 |
-
#: iq-block-country.php:
|
383 |
msgid ""
|
384 |
"Please download this file from your own PC unzip this file and upload it "
|
385 |
"(via FTP for instance) to:"
|
@@ -387,15 +467,15 @@ msgstr ""
|
|
387 |
"Download dit bestand alsjeblieft naar je eigen PC. Pak het bestand daar uit "
|
388 |
"en upload deze (bijvoorbeeld via FTP) naar:"
|
389 |
|
390 |
-
#: iq-block-country.php:
|
391 |
msgid "Finished downloading"
|
392 |
msgstr "Klaar met downloaden"
|
393 |
|
394 |
-
#: iq-block-country.php:
|
395 |
msgid "Fatal error: GeoIP"
|
396 |
msgstr "Fatale fout: GeoIP"
|
397 |
|
398 |
-
#: iq-block-country.php:
|
399 |
msgid ""
|
400 |
"database does not exists. This plugin will not work until the database file "
|
401 |
"is present."
|
@@ -403,6 +483,9 @@ msgstr ""
|
|
403 |
"database bestaat niet. Deze plugin kan niet werken totdat deze database "
|
404 |
"beschikbaar is."
|
405 |
|
|
|
|
|
|
|
406 |
#~ msgid "Voorkant"
|
407 |
#~ msgstr "Voorkant"
|
408 |
|
1 |
msgid ""
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: iQ Block Country\n"
|
4 |
+
"POT-Creation-Date: 2014-03-31 15:52+0100\n"
|
5 |
+
"PO-Revision-Date: 2014-03-31 15:54+0100\n"
|
6 |
"Last-Translator: \n"
|
7 |
"Language-Team: iQ Block Country <info@redeo.nl>\n"
|
8 |
"Language: Dutch\n"
|
15 |
"X-Poedit-SearchPath-0: libs\n"
|
16 |
"X-Poedit-SearchPath-1: .\n"
|
17 |
|
18 |
+
#: libs/blockcountry-settings.php:113
|
19 |
msgid ""
|
20 |
"Check which country belongs to an IP Address according to the current "
|
21 |
"database."
|
22 |
msgstr ""
|
23 |
"Controleer welk land behoort tot een IP adres volgens de huidige database."
|
24 |
|
25 |
+
#: libs/blockcountry-settings.php:117
|
26 |
msgid "IP Address to check:"
|
27 |
msgstr "IP adres om te controleren:"
|
28 |
|
29 |
+
#: libs/blockcountry-settings.php:127
|
30 |
msgid "No country for"
|
31 |
msgstr "Geen land voor"
|
32 |
|
33 |
+
#: libs/blockcountry-settings.php:127
|
34 |
msgid "could be found. Or"
|
35 |
msgstr "gevonden. Of"
|
36 |
|
37 |
+
#: libs/blockcountry-settings.php:127
|
38 |
msgid "is not a valid IPv4 or IPv6 IP address"
|
39 |
msgstr "is geen valide IPv4 of IPv6 ip adres."
|
40 |
|
41 |
+
#: libs/blockcountry-settings.php:132
|
42 |
msgid "IP Adress"
|
43 |
msgstr "IP Adres"
|
44 |
|
45 |
+
#: libs/blockcountry-settings.php:132
|
46 |
msgid "belongs to"
|
47 |
msgstr "behoort tot"
|
48 |
|
49 |
+
#: libs/blockcountry-settings.php:135
|
50 |
msgid "This country is not permitted to visit the frontend of this website."
|
51 |
msgstr ""
|
52 |
"Dit land wordt niet toegestaan om de voorkant van deze website te bezoeken."
|
53 |
|
54 |
+
#: libs/blockcountry-settings.php:140
|
55 |
msgid "This country is not permitted to visit the backend of this website."
|
56 |
msgstr ""
|
57 |
"Dit land wordt niet toegestaan om de achterkant van deze website te bezoeken."
|
58 |
|
59 |
+
#: libs/blockcountry-settings.php:146
|
60 |
msgid "Check IP address"
|
61 |
msgstr "Controleer IP adres"
|
62 |
|
63 |
+
#: libs/blockcountry-settings.php:152
|
64 |
+
msgid "Download GeoIP database"
|
65 |
+
msgstr "Download GeoIP database"
|
66 |
+
|
67 |
+
#: libs/blockcountry-settings.php:159
|
68 |
msgid "The GeoIP database is updated once a month. Last update: "
|
69 |
msgstr ""
|
70 |
"De GeoIP database wordt eenmaal per maand bijgewerkt. Laatste keer "
|
71 |
"bijgewerkt:"
|
72 |
|
73 |
+
#: libs/blockcountry-settings.php:160
|
74 |
msgid "If you need a manual update please press buttons below to update."
|
75 |
msgstr "Indien je handmatig wilt bijwerken druk je op de knoppen hier beneden."
|
76 |
|
77 |
+
#: libs/blockcountry-settings.php:166
|
78 |
msgid "Download new GeoIP IPv4 Database"
|
79 |
msgstr "Download nieuwe GeoIP IPv4 database"
|
80 |
|
81 |
+
#: libs/blockcountry-settings.php:173
|
82 |
msgid "Download new GeoIP IPv6 Database"
|
83 |
msgstr "Download nieuwe GeoIP IPv6 database"
|
84 |
|
85 |
+
#: libs/blockcountry-settings.php:178 libs/blockcountry-settings.php:182
|
86 |
msgid "Downloading..."
|
87 |
msgstr "Downloading..."
|
88 |
|
89 |
+
#: libs/blockcountry-settings.php:188
|
90 |
+
msgid "Active plugins"
|
91 |
+
msgstr "Actieve plugins"
|
92 |
+
|
93 |
+
#: libs/blockcountry-settings.php:195
|
94 |
+
msgid "Plugin name"
|
95 |
+
msgstr "Plugin naam"
|
96 |
+
|
97 |
+
#: libs/blockcountry-settings.php:195
|
98 |
+
msgid "Version"
|
99 |
+
msgstr "Versie"
|
100 |
+
|
101 |
+
#: libs/blockcountry-settings.php:195 libs/blockcountry-settings.php:716
|
102 |
+
#: libs/blockcountry-settings.php:759
|
103 |
+
msgid "URL"
|
104 |
+
msgstr "URL"
|
105 |
+
|
106 |
+
#: libs/blockcountry-settings.php:220
|
107 |
msgid "Export"
|
108 |
msgstr "Exporteren"
|
109 |
|
110 |
+
#: libs/blockcountry-settings.php:221
|
111 |
msgid ""
|
112 |
"When you click on <tt>Backup all settings</tt> button a backup of the iQ "
|
113 |
"Block Country configuration will be created."
|
115 |
"Wanneer je klikt op de <tt>Backup alle instellingen</tt> knop zal een backup "
|
116 |
"van alle iQ Block Country instellingen worden gecreerd."
|
117 |
|
118 |
+
#: libs/blockcountry-settings.php:222
|
119 |
msgid ""
|
120 |
"After exporting, you can either use the backup file to restore your settings "
|
121 |
"on this site again or copy the settings to another WordPress site."
|
124 |
"te herstellen of je kunt het bestand gebruiken om je instellingen naar een "
|
125 |
"andere WordPress site te exporteren."
|
126 |
|
127 |
+
#: libs/blockcountry-settings.php:226
|
128 |
msgid "Backup all settings"
|
129 |
msgstr "Backup alle instellingen"
|
130 |
|
131 |
+
#: libs/blockcountry-settings.php:233
|
132 |
msgid "Import"
|
133 |
msgstr "Importeer"
|
134 |
|
135 |
+
#: libs/blockcountry-settings.php:234
|
136 |
msgid "Click the browse button and choose a zip file that you exported before."
|
137 |
msgstr ""
|
138 |
"Klik op de Browse button and selecteer een zip file welke je eerder hebt "
|
139 |
"geexporteerd."
|
140 |
|
141 |
+
#: libs/blockcountry-settings.php:235
|
142 |
msgid "Press Restore settings button, and let WordPress do the magic for you."
|
143 |
msgstr ""
|
144 |
"Druk op de herstel instellingen knop en laat WordPress haar magie voor je "
|
145 |
"doen."
|
146 |
|
147 |
+
#: libs/blockcountry-settings.php:240
|
148 |
msgid "Restore settings"
|
149 |
msgstr "Herstel instellingen"
|
150 |
|
151 |
+
#: libs/blockcountry-settings.php:263 libs/blockcountry-settings.php:266
|
152 |
+
#: libs/blockcountry-settings.php:275
|
153 |
msgid "Something went wrong exporting this file"
|
154 |
msgstr "Er is iets verkeerd gegaan met het exporteren van het bestand."
|
155 |
|
156 |
+
#: libs/blockcountry-settings.php:278
|
157 |
msgid "Exporting settings..."
|
158 |
msgstr "Exporteer instellingen"
|
159 |
|
160 |
+
#: libs/blockcountry-settings.php:293
|
161 |
msgid "Something went wrong importing this file"
|
162 |
msgstr "Er is iets verkeerd gegaan met het importeren van dit bestand"
|
163 |
|
164 |
+
#: libs/blockcountry-settings.php:310
|
165 |
msgid "All options are restored successfully."
|
166 |
msgstr "Alle opties zijn succesvol hersteld"
|
167 |
|
168 |
+
#: libs/blockcountry-settings.php:313
|
169 |
msgid "Invalid file."
|
170 |
msgstr "Ongeldig bestand"
|
171 |
|
172 |
+
#: libs/blockcountry-settings.php:318
|
173 |
msgid "No correct import or export option given."
|
174 |
msgstr "Geen correcte importeer of exporteer optie gegeven."
|
175 |
|
176 |
+
#: libs/blockcountry-settings.php:327
|
177 |
msgid "Select which pages are blocked."
|
178 |
msgstr "Selecteer welke pagina's geblokkeerd worden."
|
179 |
|
180 |
+
#: libs/blockcountry-settings.php:334
|
181 |
msgid "Do you want to block individual pages:"
|
182 |
msgstr "Wil je individuele pagina's blokkeren:"
|
183 |
|
184 |
+
#: libs/blockcountry-settings.php:335
|
185 |
msgid "If you do not select this option all pages will be blocked."
|
186 |
msgstr "Indien je deze optie niet selecteert worden alle pagina's geblokkeerd."
|
187 |
|
188 |
+
#: libs/blockcountry-settings.php:340
|
189 |
msgid "Select pages you want to block:"
|
190 |
msgstr "Selecteer welke pagina's je wil blokkeren."
|
191 |
|
192 |
+
#: libs/blockcountry-settings.php:362 libs/blockcountry-settings.php:416
|
193 |
+
#: libs/blockcountry-settings.php:511 libs/blockcountry-settings.php:599
|
194 |
+
#: libs/blockcountry-settings.php:689
|
195 |
msgid "Save Changes"
|
196 |
msgstr "Bewaar wijzigingen"
|
197 |
|
198 |
+
#: libs/blockcountry-settings.php:375
|
199 |
+
msgid "Select which categories are blocked."
|
200 |
+
msgstr "Selecteer welke categorieen geblokkeerd worden."
|
201 |
|
202 |
+
#: libs/blockcountry-settings.php:382
|
203 |
+
msgid "Do you want to block individual categories:"
|
204 |
+
msgstr "Wil je individuele categorieen blokkeren:"
|
205 |
|
206 |
+
#: libs/blockcountry-settings.php:383
|
207 |
+
msgid "If you do not select this option all blog articles will be blocked."
|
208 |
+
msgstr ""
|
209 |
+
"Indien je deze optie niet selecteert worden alle blog artikelen geblokkeerd."
|
210 |
|
211 |
+
#: libs/blockcountry-settings.php:388
|
212 |
+
msgid "Do you want to block the homepage:"
|
213 |
+
msgstr "Wil je je homepage blokkeren:"
|
214 |
|
215 |
+
#: libs/blockcountry-settings.php:389
|
216 |
+
msgid ""
|
217 |
+
"If you do not select this option visitors will not be blocked from your "
|
218 |
+
"homepage regardless of the categories you select."
|
219 |
+
msgstr ""
|
220 |
+
"Indien je deze optie niet selecteert zullen bezoekers niet worden "
|
221 |
+
"geblokkeerd van het bezoeken van je homepagina ongeacht welke categorieen je "
|
222 |
+
"selecteert."
|
223 |
+
|
224 |
+
#: libs/blockcountry-settings.php:394
|
225 |
+
msgid "Select categories you want to block:"
|
226 |
+
msgstr "Selecteer welke categorieen je wil blokkeren."
|
227 |
+
|
228 |
+
#: libs/blockcountry-settings.php:430
|
229 |
+
msgid "Frontend options"
|
230 |
+
msgstr "Voorkant opties"
|
231 |
|
232 |
+
#: libs/blockcountry-settings.php:465
|
233 |
+
msgid ""
|
234 |
+
"Do not block visitors that are logged in from visiting frontend website:"
|
235 |
msgstr ""
|
236 |
+
"Blokkeer geen bezoekers welke ingelogd zijn van het bezoeken van de voorkant:"
|
|
|
237 |
|
238 |
+
#: libs/blockcountry-settings.php:471
|
239 |
+
msgid "Block visitors from visiting the frontend of your website:"
|
240 |
+
msgstr "Blokkeer bezoekers van het bezoeken van de voorkant van je website:"
|
241 |
|
242 |
+
#: libs/blockcountry-settings.php:477
|
243 |
msgid ""
|
244 |
"Select the countries that should be blocked from visiting your frontend:"
|
245 |
msgstr ""
|
246 |
"Selecteer de landen welke geblokkeerd moeten worden voor het bezoeken van de "
|
247 |
"voorkant van je website:"
|
248 |
|
249 |
+
#: libs/blockcountry-settings.php:478
|
250 |
msgid "Use the CTRL key to select multiple countries"
|
251 |
msgstr "Gebruik de CTRL toets om meerdere landen te selecteren"
|
252 |
|
253 |
+
#: libs/blockcountry-settings.php:494
|
254 |
msgid "Frontend whitelist IPv4 and/or IPv6 addresses:"
|
255 |
msgstr ""
|
256 |
"Whitelist van IPv4 of IPv6 IP adressen voor de voorkant van je website:"
|
257 |
|
258 |
+
#: libs/blockcountry-settings.php:494 libs/blockcountry-settings.php:502
|
259 |
msgid "Use a semicolon (;) to separate IP addresses"
|
260 |
msgstr "Gebruik een puntkomma (;) om adressen van elkaar te scheiden"
|
261 |
|
262 |
+
#: libs/blockcountry-settings.php:502
|
263 |
msgid "Frontend blacklist IPv4 and/or IPv6 addresses:"
|
264 |
msgstr ""
|
265 |
"Blacklist van IPv4 of IPv6 IP adressen voor de voorkant van je website:"
|
266 |
|
267 |
+
#: libs/blockcountry-settings.php:531
|
268 |
+
msgid "Backend Options"
|
269 |
+
msgstr "Achterkant opties"
|
270 |
+
|
271 |
+
#: libs/blockcountry-settings.php:565
|
272 |
+
msgid ""
|
273 |
+
"Block visitors from visiting the backend (administrator) of your website:"
|
274 |
msgstr ""
|
275 |
+
"Blokkeer bezoekers van het bezoeken van de achterkant (administratie "
|
276 |
"gedeelte) van je website:"
|
277 |
|
278 |
+
#: libs/blockcountry-settings.php:573
|
279 |
msgid "Your IP address is"
|
280 |
msgstr "Je IP adres is"
|
281 |
|
282 |
+
#: libs/blockcountry-settings.php:573
|
283 |
msgid "The country that is listed for this IP address is"
|
284 |
msgstr "Het land waar dit adres toe behoort is"
|
285 |
|
286 |
+
#: libs/blockcountry-settings.php:574
|
287 |
msgid ""
|
288 |
+
"Do <strong>NOT</strong> set the 'Block visitors from visiting the backend "
|
289 |
"(administrator) of your website' and also select"
|
290 |
msgstr ""
|
291 |
+
"Selecteer <strong>NIET</strong> \"Blokkeer bezoekers van het bezoeken van de "
|
292 |
+
"achterkant (administratie gedeelte) van je website\" en"
|
293 |
|
294 |
+
#: libs/blockcountry-settings.php:574
|
295 |
msgid "below."
|
296 |
msgstr "hier beneden."
|
297 |
|
298 |
+
#: libs/blockcountry-settings.php:575
|
299 |
msgid ""
|
300 |
"You will NOT be able to login the next time if you DO block your own country "
|
301 |
"from visiting the backend."
|
303 |
"Het zal daarna niet meer mogelijk zijn om nog in te loggen als je je eigen "
|
304 |
"land blokkeert van het bezoeken van de achterkant van je website."
|
305 |
|
306 |
+
#: libs/blockcountry-settings.php:580
|
307 |
msgid "Select the countries that should be blocked from visiting your backend:"
|
308 |
msgstr ""
|
309 |
"Selecteer de landen welke geblokkeerd moeten worden voor het bezoeken van de "
|
310 |
"achterkant (administratie gedeelte) van je website:"
|
311 |
|
312 |
+
#: libs/blockcountry-settings.php:581
|
313 |
msgid "Use the x behind the country to remove a country from this blocklist."
|
314 |
msgstr ""
|
315 |
"Gebruik de x achter een land om het land te verwijderen uit deze lijst."
|
316 |
|
317 |
+
#: libs/blockcountry-settings.php:620
|
318 |
+
msgid "Overall statistics since start"
|
319 |
+
msgstr "Statistieken sinds het begin"
|
320 |
+
|
321 |
+
#: libs/blockcountry-settings.php:623
|
322 |
+
msgid "visitors blocked from the backend."
|
323 |
+
msgstr "bezoekers geblokkeerd op de achterkant."
|
324 |
+
|
325 |
+
#: libs/blockcountry-settings.php:625
|
326 |
+
msgid "visitors blocked from the frontend."
|
327 |
+
msgstr "bezoekers geblokkeerd op de voorkant."
|
328 |
+
|
329 |
+
#: libs/blockcountry-settings.php:629
|
330 |
+
msgid "Basic Options"
|
331 |
+
msgstr "Standaard opties"
|
332 |
+
|
333 |
+
#: libs/blockcountry-settings.php:664
|
334 |
+
msgid "Message to display when people are blocked:"
|
335 |
+
msgstr "Welk bericht wil je tonen aan bezoekers welke geblokkeerd worden:"
|
336 |
+
|
337 |
+
#: libs/blockcountry-settings.php:674
|
338 |
msgid "Send headers when user is blocked:"
|
339 |
msgstr "Stuur headers wanneer een gebruiker is geblokkeerd:"
|
340 |
|
341 |
+
#: libs/blockcountry-settings.php:675
|
342 |
msgid ""
|
343 |
"Under normal circumstances you should keep this selected! Only if you have "
|
344 |
"\"Cannot modify header information - headers already sent\" errors or if you "
|
348 |
"deze alleen indien je \"Cannot modify header information - headers already "
|
349 |
"sent\" foutmeldingen krijgt of indien je weet wat je doet."
|
350 |
|
351 |
+
#: libs/blockcountry-settings.php:681
|
352 |
+
msgid "Allow tracking:"
|
353 |
+
msgstr "Sta traceren toe:"
|
354 |
+
|
355 |
+
#: libs/blockcountry-settings.php:682
|
356 |
+
msgid ""
|
357 |
+
"This sends only the IP address and the number of attempts this ip address "
|
358 |
+
"tried to login to your backend and was blocked doing so to a central server. "
|
359 |
+
"No other data is being send. This helps us to get a better picture of rogue "
|
360 |
+
"countries."
|
361 |
+
msgstr ""
|
362 |
+
"Traceren stuurt alleen het ip adres en hoe vaak dit ip adres geprobeerd "
|
363 |
+
"heeft in te loggen op de backend en geblokkeerd werd tijdens die poging naar "
|
364 |
+
"een centrale server. Er wordt geen enkele andere data verzonden. Dit helpt "
|
365 |
+
"ons om beter inzicht te krijgen in de landen waarvandaan een hoop hack "
|
366 |
+
"pogingen worden gedaan. "
|
367 |
+
|
368 |
+
#: libs/blockcountry-settings.php:708
|
369 |
msgid "Last 15 blocked visits"
|
370 |
msgstr "Laatste 15 geblokkeerde bezoekers"
|
371 |
|
372 |
+
#: libs/blockcountry-settings.php:716
|
373 |
msgid "Date / Time"
|
374 |
msgstr "Datum / Tijd"
|
375 |
|
376 |
+
#: libs/blockcountry-settings.php:716 libs/blockcountry-settings.php:748
|
377 |
msgid "IP Address"
|
378 |
msgstr "IP adres"
|
379 |
|
380 |
+
#: libs/blockcountry-settings.php:716 libs/blockcountry-settings.php:748
|
381 |
msgid "Hostname"
|
382 |
msgstr "Hostnaam"
|
383 |
|
384 |
+
#: libs/blockcountry-settings.php:716 libs/blockcountry-settings.php:735
|
|
|
|
|
|
|
|
|
385 |
msgid "Country"
|
386 |
msgstr "Land"
|
387 |
|
388 |
+
#: libs/blockcountry-settings.php:716
|
389 |
msgid "Frontend/Backend"
|
390 |
msgstr "Voorkant/Achterkant"
|
391 |
|
392 |
+
#: libs/blockcountry-settings.php:726 libs/blockcountry-settings.php:787
|
393 |
msgid "Frontend"
|
394 |
msgstr "Voorkant"
|
395 |
|
396 |
+
#: libs/blockcountry-settings.php:726 libs/blockcountry-settings.php:788
|
397 |
msgid "Backend"
|
398 |
msgstr "Achterkant"
|
399 |
|
400 |
+
#: libs/blockcountry-settings.php:733
|
401 |
msgid "Top countries that are blocked"
|
402 |
msgstr "Top landen welke zijn geblokkeerd"
|
403 |
|
404 |
+
#: libs/blockcountry-settings.php:735 libs/blockcountry-settings.php:748
|
405 |
+
#: libs/blockcountry-settings.php:759
|
406 |
msgid "# of blocked attempts"
|
407 |
msgstr "# of geblokkeerde pogingen"
|
408 |
|
409 |
+
#: libs/blockcountry-settings.php:746
|
410 |
msgid "Top hosts that are blocked"
|
411 |
msgstr "Top hosts welke geblokkeerd zijn"
|
412 |
|
413 |
+
#: libs/blockcountry-settings.php:757
|
414 |
msgid "Top URLs that are blocked"
|
415 |
msgstr "Top URLs welke geblokkeerd zijn"
|
416 |
|
417 |
+
#: libs/blockcountry-settings.php:786
|
418 |
msgid "Home"
|
419 |
msgstr "Home"
|
420 |
|
421 |
+
#: libs/blockcountry-settings.php:789
|
422 |
msgid "Pages"
|
423 |
msgstr "Pagina's"
|
424 |
|
425 |
+
#: libs/blockcountry-settings.php:790
|
426 |
+
msgid "Categories"
|
427 |
+
msgstr "Categorieen"
|
428 |
+
|
429 |
+
#: libs/blockcountry-settings.php:791
|
430 |
+
#, fuzzy
|
431 |
+
msgid "Tools"
|
432 |
msgstr "Gereedschap"
|
433 |
|
434 |
+
#: libs/blockcountry-settings.php:792
|
435 |
msgid "Logging"
|
436 |
msgstr "Statistieken"
|
437 |
|
438 |
+
#: libs/blockcountry-settings.php:793
|
439 |
msgid "Import/Export"
|
440 |
msgstr "Importeren/Exporteren"
|
441 |
|
442 |
+
#: libs/blockcountry-settings.php:843
|
443 |
msgid "GeoIP database does not exists. Trying to download it..."
|
444 |
msgstr "GeoIP database bestaat niet. Probeer om nieuwe versie te downloaden"
|
445 |
|
446 |
+
#: iq-block-country.php:142 iq-block-country.php:152
|
447 |
msgid "Error occured: Could not download the GeoIP database from"
|
448 |
msgstr "Uh oh: Kon de GeoIP database niet downloaden van"
|
449 |
|
450 |
+
#: iq-block-country.php:143
|
451 |
msgid ""
|
452 |
"MaxMind has blocked requests from your IP address for 24 hours. Please check "
|
453 |
"again in 24 hours or download this file from your own PC"
|
455 |
"MaxMind heeft alle verzoeken vanaf dit IP adres voor 24 uur geblokkeerd. "
|
456 |
"Controleer nogmaals na 24 uur of download dit bestand via je eigen pc"
|
457 |
|
458 |
+
#: iq-block-country.php:144
|
459 |
msgid "Unzip this file and upload it (via FTP for instance) to:"
|
460 |
msgstr "Pak dit bestand uit en upload deze (via FTP bijvoorbeeld) naar:"
|
461 |
|
462 |
+
#: iq-block-country.php:153
|
463 |
msgid ""
|
464 |
"Please download this file from your own PC unzip this file and upload it "
|
465 |
"(via FTP for instance) to:"
|
467 |
"Download dit bestand alsjeblieft naar je eigen PC. Pak het bestand daar uit "
|
468 |
"en upload deze (bijvoorbeeld via FTP) naar:"
|
469 |
|
470 |
+
#: iq-block-country.php:179
|
471 |
msgid "Finished downloading"
|
472 |
msgstr "Klaar met downloaden"
|
473 |
|
474 |
+
#: iq-block-country.php:185
|
475 |
msgid "Fatal error: GeoIP"
|
476 |
msgstr "Fatale fout: GeoIP"
|
477 |
|
478 |
+
#: iq-block-country.php:185
|
479 |
msgid ""
|
480 |
"database does not exists. This plugin will not work until the database file "
|
481 |
"is present."
|
483 |
"database bestaat niet. Deze plugin kan niet werken totdat deze database "
|
484 |
"beschikbaar is."
|
485 |
|
486 |
+
#~ msgid "Statistics"
|
487 |
+
#~ msgstr "Statistieken"
|
488 |
+
|
489 |
#~ msgid "Voorkant"
|
490 |
#~ msgstr "Voorkant"
|
491 |
|
lang/iqblockcountry-ru_RU.mo
ADDED
Binary file
|
lang/iqblockcountry-ru_RU.po
ADDED
@@ -0,0 +1,473 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
msgid ""
|
2 |
+
msgstr ""
|
3 |
+
"Project-Id-Version: iQ Block Country\n"
|
4 |
+
"POT-Creation-Date: 2014-03-31 15:52+0100\n"
|
5 |
+
"PO-Revision-Date: 2014-03-31 20:46+0400\n"
|
6 |
+
"Last-Translator: Midas <km@mypsion.ru>\n"
|
7 |
+
"Language-Team: \n"
|
8 |
+
"Language: ru\n"
|
9 |
+
"MIME-Version: 1.0\n"
|
10 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
+
"Content-Transfer-Encoding: 8bit\n"
|
12 |
+
"X-Generator: Poedit 1.6.4\n"
|
13 |
+
"X-Poedit-KeywordsList: _;gettext;gettext_noop;__;_e\n"
|
14 |
+
"X-Poedit-Basepath: ../\n"
|
15 |
+
"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n"
|
16 |
+
"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
|
17 |
+
"X-Poedit-SourceCharset: UTF-8\n"
|
18 |
+
"X-Poedit-SearchPath-0: libs\n"
|
19 |
+
"X-Poedit-SearchPath-1: .\n"
|
20 |
+
|
21 |
+
#: libs/blockcountry-settings.php:113
|
22 |
+
msgid ""
|
23 |
+
"Check which country belongs to an IP Address according to the current "
|
24 |
+
"database."
|
25 |
+
msgstr "Проверка принадлежности IP к стране согласно текущей базе данных."
|
26 |
+
|
27 |
+
#: libs/blockcountry-settings.php:117
|
28 |
+
msgid "IP Address to check:"
|
29 |
+
msgstr "IP адрес для проверки:"
|
30 |
+
|
31 |
+
#: libs/blockcountry-settings.php:127
|
32 |
+
msgid "No country for"
|
33 |
+
msgstr "Страна для"
|
34 |
+
|
35 |
+
#: libs/blockcountry-settings.php:127
|
36 |
+
msgid "could be found. Or"
|
37 |
+
msgstr "не определена. Либо"
|
38 |
+
|
39 |
+
#: libs/blockcountry-settings.php:127
|
40 |
+
msgid "is not a valid IPv4 or IPv6 IP address"
|
41 |
+
msgstr "не является верным адресом в формате IPv4 или IPv6."
|
42 |
+
|
43 |
+
#: libs/blockcountry-settings.php:132
|
44 |
+
msgid "IP Adress"
|
45 |
+
msgstr "IP адрес"
|
46 |
+
|
47 |
+
#: libs/blockcountry-settings.php:132
|
48 |
+
msgid "belongs to"
|
49 |
+
msgstr "принадлежит"
|
50 |
+
|
51 |
+
#: libs/blockcountry-settings.php:135
|
52 |
+
msgid "This country is not permitted to visit the frontend of this website."
|
53 |
+
msgstr ""
|
54 |
+
"Посетители из этой страны не имеют доступа к пользовательской части сайта."
|
55 |
+
|
56 |
+
#: libs/blockcountry-settings.php:140
|
57 |
+
msgid "This country is not permitted to visit the backend of this website."
|
58 |
+
msgstr ""
|
59 |
+
"Посетители из этой страны не имеют доступа к административной части сайта."
|
60 |
+
|
61 |
+
#: libs/blockcountry-settings.php:146
|
62 |
+
msgid "Check IP address"
|
63 |
+
msgstr "Проверить IP адрес"
|
64 |
+
|
65 |
+
#: libs/blockcountry-settings.php:152
|
66 |
+
msgid "Download GeoIP database"
|
67 |
+
msgstr "Загрузить базу GeoIP"
|
68 |
+
|
69 |
+
#: libs/blockcountry-settings.php:159
|
70 |
+
msgid "The GeoIP database is updated once a month. Last update: "
|
71 |
+
msgstr "База данных GeoIP обновляется раз в месяц. Последнее обновление: "
|
72 |
+
|
73 |
+
#: libs/blockcountry-settings.php:160
|
74 |
+
msgid "If you need a manual update please press buttons below to update."
|
75 |
+
msgstr "Если вы хотите обновить базу вручную, нажмите кнопки ниже."
|
76 |
+
|
77 |
+
#: libs/blockcountry-settings.php:166
|
78 |
+
msgid "Download new GeoIP IPv4 Database"
|
79 |
+
msgstr "Загрузить базу GeoIP IPv4"
|
80 |
+
|
81 |
+
#: libs/blockcountry-settings.php:173
|
82 |
+
msgid "Download new GeoIP IPv6 Database"
|
83 |
+
msgstr "Загрузить базу GeoIP IPv6"
|
84 |
+
|
85 |
+
#: libs/blockcountry-settings.php:178 libs/blockcountry-settings.php:182
|
86 |
+
msgid "Downloading..."
|
87 |
+
msgstr "Идёт загрузка..."
|
88 |
+
|
89 |
+
#: libs/blockcountry-settings.php:188
|
90 |
+
msgid "Active plugins"
|
91 |
+
msgstr "Активные плагины"
|
92 |
+
|
93 |
+
#: libs/blockcountry-settings.php:195
|
94 |
+
msgid "Plugin name"
|
95 |
+
msgstr "Имя плагина"
|
96 |
+
|
97 |
+
#: libs/blockcountry-settings.php:195
|
98 |
+
msgid "Version"
|
99 |
+
msgstr "Версия"
|
100 |
+
|
101 |
+
#: libs/blockcountry-settings.php:195 libs/blockcountry-settings.php:716
|
102 |
+
#: libs/blockcountry-settings.php:759
|
103 |
+
msgid "URL"
|
104 |
+
msgstr "Запрос"
|
105 |
+
|
106 |
+
#: libs/blockcountry-settings.php:220
|
107 |
+
msgid "Export"
|
108 |
+
msgstr "Экспорт"
|
109 |
+
|
110 |
+
#: libs/blockcountry-settings.php:221
|
111 |
+
msgid ""
|
112 |
+
"When you click on <tt>Backup all settings</tt> button a backup of the iQ "
|
113 |
+
"Block Country configuration will be created."
|
114 |
+
msgstr ""
|
115 |
+
"При нажатии кнопки «Сохранить все настройки» будет создана резервная копия "
|
116 |
+
"конфигурации iQ Block Country."
|
117 |
+
|
118 |
+
#: libs/blockcountry-settings.php:222
|
119 |
+
msgid ""
|
120 |
+
"After exporting, you can either use the backup file to restore your settings "
|
121 |
+
"on this site again or copy the settings to another WordPress site."
|
122 |
+
msgstr ""
|
123 |
+
"После этого вы можете использовать резервный файл для восстановления "
|
124 |
+
"настроек модуля на вашем сайте, либо для копирования настроек на другой сайт "
|
125 |
+
"WordPress."
|
126 |
+
|
127 |
+
#: libs/blockcountry-settings.php:226
|
128 |
+
msgid "Backup all settings"
|
129 |
+
msgstr "Сохранить все настройки"
|
130 |
+
|
131 |
+
#: libs/blockcountry-settings.php:233
|
132 |
+
msgid "Import"
|
133 |
+
msgstr "Импорт"
|
134 |
+
|
135 |
+
#: libs/blockcountry-settings.php:234
|
136 |
+
msgid "Click the browse button and choose a zip file that you exported before."
|
137 |
+
msgstr ""
|
138 |
+
"Нажмите кнопку «Обзор» и выберите zip-файл с настройками, который был создан "
|
139 |
+
"ранее."
|
140 |
+
|
141 |
+
#: libs/blockcountry-settings.php:235
|
142 |
+
msgid "Press Restore settings button, and let WordPress do the magic for you."
|
143 |
+
msgstr ""
|
144 |
+
"Нажмите кнопку «Восстановить настройки», и WordPress всё сделает "
|
145 |
+
"автоматически."
|
146 |
+
|
147 |
+
#: libs/blockcountry-settings.php:240
|
148 |
+
msgid "Restore settings"
|
149 |
+
msgstr "Восстановить настройки"
|
150 |
+
|
151 |
+
#: libs/blockcountry-settings.php:263 libs/blockcountry-settings.php:266
|
152 |
+
#: libs/blockcountry-settings.php:275
|
153 |
+
msgid "Something went wrong exporting this file"
|
154 |
+
msgstr "При создании экспорта произошла ошибка файла"
|
155 |
+
|
156 |
+
#: libs/blockcountry-settings.php:278
|
157 |
+
msgid "Exporting settings..."
|
158 |
+
msgstr "Экспорт настроек..."
|
159 |
+
|
160 |
+
#: libs/blockcountry-settings.php:293
|
161 |
+
msgid "Something went wrong importing this file"
|
162 |
+
msgstr "При импорте проихошла ошибка файла"
|
163 |
+
|
164 |
+
#: libs/blockcountry-settings.php:310
|
165 |
+
msgid "All options are restored successfully."
|
166 |
+
msgstr "Все настройки успешно восстановлены."
|
167 |
+
|
168 |
+
#: libs/blockcountry-settings.php:313
|
169 |
+
msgid "Invalid file."
|
170 |
+
msgstr "Неверный файл."
|
171 |
+
|
172 |
+
#: libs/blockcountry-settings.php:318
|
173 |
+
msgid "No correct import or export option given."
|
174 |
+
msgstr "Не выбрана опция импорта или экспорта."
|
175 |
+
|
176 |
+
#: libs/blockcountry-settings.php:327
|
177 |
+
msgid "Select which pages are blocked."
|
178 |
+
msgstr "Выбор страниц для блокировки."
|
179 |
+
|
180 |
+
#: libs/blockcountry-settings.php:334
|
181 |
+
msgid "Do you want to block individual pages:"
|
182 |
+
msgstr "Блокировать страницы по выбору:"
|
183 |
+
|
184 |
+
#: libs/blockcountry-settings.php:335
|
185 |
+
msgid "If you do not select this option all pages will be blocked."
|
186 |
+
msgstr "Если галочка не стоит, будет заблокирован доступ для всех страниц."
|
187 |
+
|
188 |
+
#: libs/blockcountry-settings.php:340
|
189 |
+
msgid "Select pages you want to block:"
|
190 |
+
msgstr "Выберите страницы, которые вы хотите блокировать:"
|
191 |
+
|
192 |
+
#: libs/blockcountry-settings.php:362 libs/blockcountry-settings.php:416
|
193 |
+
#: libs/blockcountry-settings.php:511 libs/blockcountry-settings.php:599
|
194 |
+
#: libs/blockcountry-settings.php:689
|
195 |
+
msgid "Save Changes"
|
196 |
+
msgstr "Сохранить изменения"
|
197 |
+
|
198 |
+
#: libs/blockcountry-settings.php:375
|
199 |
+
msgid "Select which categories are blocked."
|
200 |
+
msgstr "Выбор категорий для блокировки."
|
201 |
+
|
202 |
+
#: libs/blockcountry-settings.php:382
|
203 |
+
msgid "Do you want to block individual categories:"
|
204 |
+
msgstr "Блокировать категории по выбору:"
|
205 |
+
|
206 |
+
#: libs/blockcountry-settings.php:383
|
207 |
+
msgid "If you do not select this option all blog articles will be blocked."
|
208 |
+
msgstr "Если галочка не стоит, будет заблокирован доступ для всех статей."
|
209 |
+
|
210 |
+
#: libs/blockcountry-settings.php:388
|
211 |
+
msgid "Do you want to block the homepage:"
|
212 |
+
msgstr "Блокировать главную страницу сайта:"
|
213 |
+
|
214 |
+
#: libs/blockcountry-settings.php:389
|
215 |
+
msgid ""
|
216 |
+
"If you do not select this option visitors will not be blocked from your "
|
217 |
+
"homepage regardless of the categories you select."
|
218 |
+
msgstr ""
|
219 |
+
"Если галочка не стоит, главная страница не будет блокироваться (вне "
|
220 |
+
"зависимости от установки категорий)."
|
221 |
+
|
222 |
+
#: libs/blockcountry-settings.php:394
|
223 |
+
msgid "Select categories you want to block:"
|
224 |
+
msgstr "Выберите категории, которые вы хотите блокировать:"
|
225 |
+
|
226 |
+
#: libs/blockcountry-settings.php:430
|
227 |
+
msgid "Frontend options"
|
228 |
+
msgstr "Настройки внешней части"
|
229 |
+
|
230 |
+
#: libs/blockcountry-settings.php:465
|
231 |
+
msgid ""
|
232 |
+
"Do not block visitors that are logged in from visiting frontend website:"
|
233 |
+
msgstr ""
|
234 |
+
"Не блокировать доступ залогиненных пользователей к пользовательской части "
|
235 |
+
"сайта:"
|
236 |
+
|
237 |
+
#: libs/blockcountry-settings.php:471
|
238 |
+
msgid "Block visitors from visiting the frontend of your website:"
|
239 |
+
msgstr "Блокировать доступ к пользовательской части сайта:"
|
240 |
+
|
241 |
+
#: libs/blockcountry-settings.php:477
|
242 |
+
msgid ""
|
243 |
+
"Select the countries that should be blocked from visiting your frontend:"
|
244 |
+
msgstr ""
|
245 |
+
"Выберите страны, которым доступ к пользовательской части будет запрещён:"
|
246 |
+
|
247 |
+
#: libs/blockcountry-settings.php:478
|
248 |
+
msgid "Use the CTRL key to select multiple countries"
|
249 |
+
msgstr "Используйте клавишу Ctrl для множественного выбора."
|
250 |
+
|
251 |
+
#: libs/blockcountry-settings.php:494
|
252 |
+
msgid "Frontend whitelist IPv4 and/or IPv6 addresses:"
|
253 |
+
msgstr "Белый список адресов IPv4 и IPv6 для доступа к пользовательской части:"
|
254 |
+
|
255 |
+
#: libs/blockcountry-settings.php:494 libs/blockcountry-settings.php:502
|
256 |
+
msgid "Use a semicolon (;) to separate IP addresses"
|
257 |
+
msgstr "Перечислите адреса через точку с запятой (;)"
|
258 |
+
|
259 |
+
#: libs/blockcountry-settings.php:502
|
260 |
+
msgid "Frontend blacklist IPv4 and/or IPv6 addresses:"
|
261 |
+
msgstr ""
|
262 |
+
"Чёрный список адресов IPv4 и IPv6 для доступа к пользовательской части:"
|
263 |
+
|
264 |
+
#: libs/blockcountry-settings.php:531
|
265 |
+
msgid "Backend Options"
|
266 |
+
msgstr "Настройки администраторской части"
|
267 |
+
|
268 |
+
#: libs/blockcountry-settings.php:565
|
269 |
+
msgid ""
|
270 |
+
"Block visitors from visiting the backend (administrator) of your website:"
|
271 |
+
msgstr "Блокировать доступ к администраторской части сайта:"
|
272 |
+
|
273 |
+
#: libs/blockcountry-settings.php:573
|
274 |
+
msgid "Your IP address is"
|
275 |
+
msgstr "Ваш IP адрес"
|
276 |
+
|
277 |
+
#: libs/blockcountry-settings.php:573
|
278 |
+
msgid "The country that is listed for this IP address is"
|
279 |
+
msgstr "Страна, соответствующая данному адресу -"
|
280 |
+
|
281 |
+
#: libs/blockcountry-settings.php:574
|
282 |
+
msgid ""
|
283 |
+
"Do <strong>NOT</strong> set the 'Block visitors from visiting the backend "
|
284 |
+
"(administrator) of your website' and also select"
|
285 |
+
msgstr ""
|
286 |
+
"Если галочка «Блокировать доступ к администраторской части сайта» "
|
287 |
+
"установлена, не выбирайте страну"
|
288 |
+
|
289 |
+
#: libs/blockcountry-settings.php:574
|
290 |
+
msgid "below."
|
291 |
+
msgstr "в списке."
|
292 |
+
|
293 |
+
#: libs/blockcountry-settings.php:575
|
294 |
+
msgid ""
|
295 |
+
"You will NOT be able to login the next time if you DO block your own country "
|
296 |
+
"from visiting the backend."
|
297 |
+
msgstr ""
|
298 |
+
"В противном случае, заблокировав вашу страну, вы не сможете попасть в "
|
299 |
+
"администраторский интерфейс."
|
300 |
+
|
301 |
+
#: libs/blockcountry-settings.php:580
|
302 |
+
msgid "Select the countries that should be blocked from visiting your backend:"
|
303 |
+
msgstr ""
|
304 |
+
"Выберите страны, которым доступ к администраторской части будет запрещён:"
|
305 |
+
|
306 |
+
#: libs/blockcountry-settings.php:581
|
307 |
+
msgid "Use the x behind the country to remove a country from this blocklist."
|
308 |
+
msgstr "Нажмите крестик для удаления страны из списка."
|
309 |
+
|
310 |
+
#: libs/blockcountry-settings.php:620
|
311 |
+
msgid "Overall statistics since start"
|
312 |
+
msgstr "Глобальная статистика с момента установки"
|
313 |
+
|
314 |
+
#: libs/blockcountry-settings.php:623
|
315 |
+
msgid "visitors blocked from the backend."
|
316 |
+
msgstr "посетителям заблокирован доступ в администраторскую часть."
|
317 |
+
|
318 |
+
#: libs/blockcountry-settings.php:625
|
319 |
+
msgid "visitors blocked from the frontend."
|
320 |
+
msgstr "посетителям заблокирован доступ в пользовательскую часть."
|
321 |
+
|
322 |
+
#: libs/blockcountry-settings.php:629
|
323 |
+
msgid "Basic Options"
|
324 |
+
msgstr "Основные настройки"
|
325 |
+
|
326 |
+
#: libs/blockcountry-settings.php:664
|
327 |
+
msgid "Message to display when people are blocked:"
|
328 |
+
msgstr "Сообщение, которые видят заблокированные посетители:"
|
329 |
+
|
330 |
+
#: libs/blockcountry-settings.php:674
|
331 |
+
msgid "Send headers when user is blocked:"
|
332 |
+
msgstr "Отправлять заголовки при блокировке:"
|
333 |
+
|
334 |
+
#: libs/blockcountry-settings.php:675
|
335 |
+
msgid ""
|
336 |
+
"Under normal circumstances you should keep this selected! Only if you have "
|
337 |
+
"\"Cannot modify header information - headers already sent\" errors or if you "
|
338 |
+
"know what you are doing uncheck this."
|
339 |
+
msgstr ""
|
340 |
+
"В обычном случае опция должна быть включена. Её нужно выключить только в том "
|
341 |
+
"случае, если вы получаете ошибку «Cannot modify header information - headers "
|
342 |
+
"already sent»."
|
343 |
+
|
344 |
+
#: libs/blockcountry-settings.php:681
|
345 |
+
msgid "Allow tracking:"
|
346 |
+
msgstr "Позволять отслеживание:"
|
347 |
+
|
348 |
+
#: libs/blockcountry-settings.php:682
|
349 |
+
msgid ""
|
350 |
+
"This sends only the IP address and the number of attempts this ip address "
|
351 |
+
"tried to login to your backend and was blocked doing so to a central server. "
|
352 |
+
"No other data is being send. This helps us to get a better picture of rogue "
|
353 |
+
"countries."
|
354 |
+
msgstr ""
|
355 |
+
"Отправлять на центральный сервер IP адрес и число заблокированных попыток "
|
356 |
+
"войти в администраторский интерфейс. Никакие другие данные не передаются. "
|
357 |
+
"Это позволит создать более объективную картину нехороших стран."
|
358 |
+
|
359 |
+
#: libs/blockcountry-settings.php:708
|
360 |
+
msgid "Last 15 blocked visits"
|
361 |
+
msgstr "15 последних блокировок"
|
362 |
+
|
363 |
+
#: libs/blockcountry-settings.php:716
|
364 |
+
msgid "Date / Time"
|
365 |
+
msgstr "Дата/время"
|
366 |
+
|
367 |
+
#: libs/blockcountry-settings.php:716 libs/blockcountry-settings.php:748
|
368 |
+
msgid "IP Address"
|
369 |
+
msgstr "IP адрес"
|
370 |
+
|
371 |
+
#: libs/blockcountry-settings.php:716 libs/blockcountry-settings.php:748
|
372 |
+
msgid "Hostname"
|
373 |
+
msgstr "Имя хоста"
|
374 |
+
|
375 |
+
#: libs/blockcountry-settings.php:716 libs/blockcountry-settings.php:735
|
376 |
+
msgid "Country"
|
377 |
+
msgstr "Страна"
|
378 |
+
|
379 |
+
#: libs/blockcountry-settings.php:716
|
380 |
+
msgid "Frontend/Backend"
|
381 |
+
msgstr "Часть сайта"
|
382 |
+
|
383 |
+
#: libs/blockcountry-settings.php:726 libs/blockcountry-settings.php:787
|
384 |
+
msgid "Frontend"
|
385 |
+
msgstr "Внешняя"
|
386 |
+
|
387 |
+
#: libs/blockcountry-settings.php:726 libs/blockcountry-settings.php:788
|
388 |
+
msgid "Backend"
|
389 |
+
msgstr "Админка"
|
390 |
+
|
391 |
+
#: libs/blockcountry-settings.php:733
|
392 |
+
msgid "Top countries that are blocked"
|
393 |
+
msgstr "Рейтинг заблокированных стран"
|
394 |
+
|
395 |
+
#: libs/blockcountry-settings.php:735 libs/blockcountry-settings.php:748
|
396 |
+
#: libs/blockcountry-settings.php:759
|
397 |
+
msgid "# of blocked attempts"
|
398 |
+
msgstr "Число блокировок"
|
399 |
+
|
400 |
+
#: libs/blockcountry-settings.php:746
|
401 |
+
msgid "Top hosts that are blocked"
|
402 |
+
msgstr "Рейтинг заблокированных хостов"
|
403 |
+
|
404 |
+
#: libs/blockcountry-settings.php:757
|
405 |
+
msgid "Top URLs that are blocked"
|
406 |
+
msgstr "Рейтинг заблокированных страниц"
|
407 |
+
|
408 |
+
#: libs/blockcountry-settings.php:786
|
409 |
+
msgid "Home"
|
410 |
+
msgstr "Начало"
|
411 |
+
|
412 |
+
#: libs/blockcountry-settings.php:789
|
413 |
+
msgid "Pages"
|
414 |
+
msgstr "Страницы"
|
415 |
+
|
416 |
+
#: libs/blockcountry-settings.php:790
|
417 |
+
msgid "Categories"
|
418 |
+
msgstr "Категории"
|
419 |
+
|
420 |
+
#: libs/blockcountry-settings.php:791
|
421 |
+
msgid "Tools"
|
422 |
+
msgstr "Инструменты"
|
423 |
+
|
424 |
+
#: libs/blockcountry-settings.php:792
|
425 |
+
msgid "Logging"
|
426 |
+
msgstr "Журналы"
|
427 |
+
|
428 |
+
#: libs/blockcountry-settings.php:793
|
429 |
+
msgid "Import/Export"
|
430 |
+
msgstr "Импорт/экспорт"
|
431 |
+
|
432 |
+
#: libs/blockcountry-settings.php:843
|
433 |
+
msgid "GeoIP database does not exists. Trying to download it..."
|
434 |
+
msgstr "База данных GeoIP не обнаружена. Пытаюсь загрузить её..."
|
435 |
+
|
436 |
+
#: iq-block-country.php:142 iq-block-country.php:152
|
437 |
+
msgid "Error occured: Could not download the GeoIP database from"
|
438 |
+
msgstr "Ошибка: невозможно загрузить базу данных GeoIP с"
|
439 |
+
|
440 |
+
#: iq-block-country.php:143
|
441 |
+
msgid ""
|
442 |
+
"MaxMind has blocked requests from your IP address for 24 hours. Please check "
|
443 |
+
"again in 24 hours or download this file from your own PC"
|
444 |
+
msgstr ""
|
445 |
+
"MaxMind заблокировал доступ для вашего IP на 24 часа. Попробуйте скачать "
|
446 |
+
"базу через сутки или загрузите файл с вашего компьютера."
|
447 |
+
|
448 |
+
#: iq-block-country.php:144
|
449 |
+
msgid "Unzip this file and upload it (via FTP for instance) to:"
|
450 |
+
msgstr "Распакуйте данный файл и загрузите его (через FTP) в папку:"
|
451 |
+
|
452 |
+
#: iq-block-country.php:153
|
453 |
+
msgid ""
|
454 |
+
"Please download this file from your own PC unzip this file and upload it "
|
455 |
+
"(via FTP for instance) to:"
|
456 |
+
msgstr "Скачайте файл, распакуйте его и загрузите его (через FTP) в папку:"
|
457 |
+
|
458 |
+
#: iq-block-country.php:179
|
459 |
+
msgid "Finished downloading"
|
460 |
+
msgstr "Загрузка завершена"
|
461 |
+
|
462 |
+
#: iq-block-country.php:185
|
463 |
+
msgid "Fatal error: GeoIP"
|
464 |
+
msgstr "Критическая ошибка: база GeoIP"
|
465 |
+
|
466 |
+
#: iq-block-country.php:185
|
467 |
+
msgid ""
|
468 |
+
"database does not exists. This plugin will not work until the database file "
|
469 |
+
"is present."
|
470 |
+
msgstr "не найдена. Данный модуль не будет работать без наличия этого файла."
|
471 |
+
|
472 |
+
#~ msgid "Statistics"
|
473 |
+
#~ msgstr "Статистика"
|
libs/blockcountry-checks.php
CHANGED
@@ -44,24 +44,29 @@ function iqblockcountry_check_ipaddress($ip_address)
|
|
44 |
*/
|
45 |
function iqblockcountry_check($country,$badcountries,$ip_address)
|
46 |
{
|
47 |
-
|
|
|
48 |
$blockedpage = get_option('blockcountry_blockpages');
|
49 |
-
|
50 |
-
$blocked = TRUE;
|
51 |
-
}
|
52 |
-
$frontendblacklist = get_option ( 'blockcountry_frontendblacklist' );
|
53 |
$frontendblacklistip = array();
|
|
|
|
|
|
|
54 |
if (preg_match('/;/',$frontendblacklist))
|
55 |
{
|
56 |
$frontendblacklistip = explode(";", $frontendblacklist);
|
57 |
}
|
58 |
-
$frontendwhitelistip = array();
|
59 |
-
$frontendwhitelist = get_option ( 'blockcountry_frontendwhitelist' );
|
60 |
if (preg_match('/;/',$frontendwhitelist))
|
61 |
{
|
62 |
$frontendwhitelistip = explode(";", $frontendwhitelist);
|
63 |
}
|
64 |
|
|
|
|
|
|
|
|
|
|
|
|
|
65 |
if (!iqblockcountry_is_login_page() )
|
66 |
{
|
67 |
if (is_array ( $frontendwhitelistip ) && in_array ( $ip_address, $frontendwhitelistip)) {
|
@@ -87,7 +92,32 @@ function iqblockcountry_check($country,$badcountries,$ip_address)
|
|
87 |
$blocked = FALSE;
|
88 |
}
|
89 |
}
|
90 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
91 |
return $blocked;
|
92 |
}
|
93 |
|
@@ -98,12 +128,16 @@ function iqblockcountry_check($country,$badcountries,$ip_address)
|
|
98 |
function iqblockcountry_CheckCountry() {
|
99 |
|
100 |
$ip_address = "";
|
101 |
-
if (empty($_SERVER["HTTP_X_FORWARDED_FOR"])) {
|
102 |
-
$ip_address = $_SERVER["REMOTE_ADDR"];
|
103 |
-
} else {
|
104 |
-
$ip_address = $_SERVER["HTTP_X_FORWARDED_FOR"];
|
105 |
-
}
|
106 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
107 |
$ip_address = iqblockcountry_get_ipaddress();
|
108 |
$country = iqblockcountry_check_ipaddress($ip_address);
|
109 |
|
44 |
*/
|
45 |
function iqblockcountry_check($country,$badcountries,$ip_address)
|
46 |
{
|
47 |
+
/* Set default blocked status and get all options */
|
48 |
+
$blocked = FALSE;
|
49 |
$blockedpage = get_option('blockcountry_blockpages');
|
50 |
+
$blockedcategory = get_option('blockcountry_blockcategories');
|
|
|
|
|
|
|
51 |
$frontendblacklistip = array();
|
52 |
+
$frontendblacklist = get_option ( 'blockcountry_frontendblacklist' );
|
53 |
+
$frontendwhitelistip = array();
|
54 |
+
$frontendwhitelist = get_option ( 'blockcountry_frontendwhitelist' );
|
55 |
if (preg_match('/;/',$frontendblacklist))
|
56 |
{
|
57 |
$frontendblacklistip = explode(";", $frontendblacklist);
|
58 |
}
|
|
|
|
|
59 |
if (preg_match('/;/',$frontendwhitelist))
|
60 |
{
|
61 |
$frontendwhitelistip = explode(";", $frontendwhitelist);
|
62 |
}
|
63 |
|
64 |
+
/* Block if user is in a bad country from frontend or backend. Unblock may happen later */
|
65 |
+
if (is_array ( $badcountries ) && in_array ( $country, $badcountries )) {
|
66 |
+
$blocked = TRUE;
|
67 |
+
}
|
68 |
+
|
69 |
+
/* Check if requested url is not login page. Else check against frontend whitelist/blacklist. */
|
70 |
if (!iqblockcountry_is_login_page() )
|
71 |
{
|
72 |
if (is_array ( $frontendwhitelistip ) && in_array ( $ip_address, $frontendwhitelistip)) {
|
92 |
$blocked = FALSE;
|
93 |
}
|
94 |
}
|
95 |
+
if (is_single() && $blockedcategory == "on")
|
96 |
+
{
|
97 |
+
global $post;
|
98 |
+
$blockedcategories = get_option('blockcountry_categories');
|
99 |
+
if (!is_array($blockedcategories)) { $blockedcategories = array(); }
|
100 |
+
$post_categories = wp_get_post_categories( $post->ID );
|
101 |
+
$flagged = FALSE;
|
102 |
+
foreach ($post_categories as $key => $value)
|
103 |
+
{
|
104 |
+
if (in_array($value,$blockedcategories))
|
105 |
+
{
|
106 |
+
if (is_single() && ((is_array ( $badcountries ) && in_array ( $country, $badcountries ) || (is_array ( $frontendblacklistip ) && in_array ( $ip_address, $frontendblacklistip)))))
|
107 |
+
{
|
108 |
+
$flagged = TRUE;
|
109 |
+
if (is_array ( $frontendwhitelistip ) && in_array ( $ip_address, $frontendwhitelistip)) {
|
110 |
+
$flagged = FALSE;
|
111 |
+
}
|
112 |
+
}
|
113 |
+
}
|
114 |
+
}
|
115 |
+
if ($flagged) { $blocked = TRUE; } else { $blocked = FALSE; }
|
116 |
+
}
|
117 |
+
if (is_home() && (get_option('blockcountry_blockhome')) == FALSE)
|
118 |
+
{
|
119 |
+
$blocked = FALSE;
|
120 |
+
}
|
121 |
return $blocked;
|
122 |
}
|
123 |
|
128 |
function iqblockcountry_CheckCountry() {
|
129 |
|
130 |
$ip_address = "";
|
|
|
|
|
|
|
|
|
|
|
131 |
|
132 |
+
if ( isset($_SERVER['HTTP_X_FORWARDED_FOR']) && !empty($_SERVER['HTTP_X_FORWARDED_FOR']) ) {
|
133 |
+
$ips = explode(',', $_SERVER['HTTP_X_FORWARDED_FOR']);
|
134 |
+
$ip_address = trim($ips[0]);
|
135 |
+
} elseif ( isset($_SERVER['HTTP_X_REAL_IP']) && !empty($_SERVER['HTTP_X_REAL_IP']) ) {
|
136 |
+
$ip_address = $_SERVER['HTTP_X_REAL_IP'];
|
137 |
+
} elseif ( isset($_SERVER['HTTP_CLIENT_IP']) && !empty($_SERVER['HTTP_CLIENT_IP']) ) {
|
138 |
+
$ip_address = $_SERVER['HTTP_CLIENT_IP'];
|
139 |
+
}
|
140 |
+
|
141 |
$ip_address = iqblockcountry_get_ipaddress();
|
142 |
$country = iqblockcountry_check_ipaddress($ip_address);
|
143 |
|
libs/blockcountry-settings.php
CHANGED
@@ -17,19 +17,23 @@ function iqblockcountry_create_menu()
|
|
17 |
function iqblockcountry_register_mysettings()
|
18 |
{
|
19 |
//register our settings
|
20 |
-
register_setting ( 'iqblockcountry-settings-group', 'blockcountry_banlist' );
|
21 |
-
register_setting ( 'iqblockcountry-settings-group', 'blockcountry_backendbanlist' );
|
22 |
-
register_setting ( 'iqblockcountry-settings-group', 'blockcountry_backendblacklist','iqblockcountry_validate_ip');
|
23 |
-
register_setting ( 'iqblockcountry-settings-group', 'blockcountry_backendwhitelist','iqblockcountry_validate_ip');
|
24 |
-
register_setting ( 'iqblockcountry-settings-group', 'blockcountry_frontendblacklist','iqblockcountry_validate_ip');
|
25 |
-
register_setting ( 'iqblockcountry-settings-group', 'blockcountry_frontendwhitelist','iqblockcountry_validate_ip');
|
26 |
register_setting ( 'iqblockcountry-settings-group', 'blockcountry_blockmessage' );
|
27 |
-
register_setting ( 'iqblockcountry-settings-group', 'blockcountry_blocklogin' );
|
28 |
-
register_setting ( 'iqblockcountry-settings-group', 'blockcountry_blockfrontend' );
|
29 |
-
register_setting ( 'iqblockcountry-settings-group', 'blockcountry_blockbackend' );
|
30 |
register_setting ( 'iqblockcountry-settings-group', 'blockcountry_header');
|
31 |
-
register_setting ( 'iqblockcountry-settings-
|
32 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
33 |
}
|
34 |
|
35 |
/**
|
@@ -40,7 +44,8 @@ function iqblockcountry_register_mysettings()
|
|
40 |
function iqblockcountry_get_options_arr() {
|
41 |
$optarr = array( 'blockcountry_banlist', 'blockcountry_backendbanlist','blockcountry_backendblacklist','blockcountry_backendwhitelist',
|
42 |
'blockcountry_frontendblacklist','blockcountry_frontendwhitelist','blockcountry_blockmessage','blockcountry_blocklogin','blockcountry_blockfrontend',
|
43 |
-
'blockcountry_blockbackend','blockcountry_header','blockcountry_blockpages','blockcountry_pages'
|
|
|
44 |
return apply_filters( 'iqblockcountry_options', $optarr );
|
45 |
}
|
46 |
|
@@ -50,15 +55,27 @@ function iqblockcountry_get_options_arr() {
|
|
50 |
*/
|
51 |
function iqblockcountry_set_defaults()
|
52 |
{
|
53 |
-
|
54 |
update_option('blockcountry_version',VERSION);
|
55 |
update_option('blockcountry_lastupdate' , 0);
|
56 |
update_option('blockcountry_blockfrontend' , 'on');
|
57 |
update_option('blockcountry_backendnrblocks', 0);
|
58 |
update_option('blockcountry_frontendnrblocks', 0);
|
59 |
update_option('blockcountry_header', 'on');
|
60 |
-
|
61 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
62 |
}
|
63 |
|
64 |
|
@@ -81,7 +98,12 @@ function iqblockcountry_uninstall() //deletes all the database entries that the
|
|
81 |
delete_option('blockcountry_version');
|
82 |
delete_option('blockcountry_header');
|
83 |
delete_option('blockcountry_blockpages');
|
84 |
-
delete_option('blockcountry_pages');
|
|
|
|
|
|
|
|
|
|
|
85 |
}
|
86 |
|
87 |
|
@@ -127,7 +149,7 @@ function iqblockcountry_settings_tools() {
|
|
127 |
</form>
|
128 |
|
129 |
<hr />
|
130 |
-
<h3
|
131 |
<?php
|
132 |
$dateformat = get_option('date_format');
|
133 |
$time = get_option('blockcountry_lastupdate');
|
@@ -161,6 +183,29 @@ function iqblockcountry_settings_tools() {
|
|
161 |
iqblockcountry_downloadgeodatabase('6', true);
|
162 |
}
|
163 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
164 |
}
|
165 |
|
166 |
/*
|
@@ -282,7 +327,7 @@ function iqblockcountry_settings_pages() {
|
|
282 |
<h3><?php _e('Select which pages are blocked.', 'iqblockcountry'); ?></h3>
|
283 |
<form method="post" action="options.php">
|
284 |
<?php
|
285 |
-
settings_fields ( 'iqblockcountry-settings-
|
286 |
?>
|
287 |
<table class="form-table" cellspacing="2" cellpadding="5" width="100%">
|
288 |
<tr valign="top">
|
@@ -322,28 +367,71 @@ function iqblockcountry_settings_pages() {
|
|
322 |
<?php
|
323 |
}
|
324 |
|
325 |
-
|
326 |
-
|
327 |
/*
|
328 |
-
*
|
329 |
*/
|
330 |
-
function
|
331 |
-
|
|
|
|
|
|
|
|
|
332 |
?>
|
333 |
-
<
|
334 |
-
|
335 |
-
|
336 |
-
|
337 |
-
|
338 |
-
<
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
339 |
|
340 |
-
|
|
|
341 |
|
342 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
343 |
|
344 |
<form method="post" action="options.php">
|
345 |
<?php
|
346 |
-
settings_fields ( 'iqblockcountry-settings-group' );
|
347 |
if (!class_exists('GeoIP'))
|
348 |
{
|
349 |
include_once("geoip.inc");
|
@@ -373,24 +461,14 @@ function iqblockcountry_settings_home()
|
|
373 |
|
374 |
<table class="form-table" cellspacing="2" cellpadding="5" width="100%">
|
375 |
|
376 |
-
<tr valign="top">
|
377 |
-
<th width="30%"><?php _e('Message to display when people are blocked:', 'iqblockcountry'); ?></th>
|
378 |
-
<td width="70%">
|
379 |
-
<?php
|
380 |
-
$blockmessage = get_option ( 'blockcountry_blockmessage' );
|
381 |
-
if (empty($blockmessage)) { $blockmessage = "Forbidden - Users from your country are not permitted to browse this site."; }
|
382 |
-
?>
|
383 |
-
<textarea cols="100" rows="3" name="blockcountry_blockmessage"><?php echo $blockmessage; ?></textarea>
|
384 |
-
</td></tr>
|
385 |
-
|
386 |
<tr valign="top">
|
387 |
-
<th width="30%"><?php _e('Do not block
|
388 |
<td width="70%">
|
389 |
<input type="checkbox" name="blockcountry_blocklogin" <?php checked('on', get_option('blockcountry_blocklogin'), true); ?> />
|
390 |
</td></tr>
|
391 |
|
392 |
<tr valign="top">
|
393 |
-
<th width="30%"><?php _e('Block
|
394 |
<td width="70%">
|
395 |
<input type="checkbox" name="blockcountry_blockfrontend" <?php checked('on', get_option('blockcountry_blockfrontend'), true); ?> />
|
396 |
</td></tr>
|
@@ -428,16 +506,72 @@ function iqblockcountry_settings_home()
|
|
428 |
?>
|
429 |
<textarea cols="70" rows="5" name="blockcountry_frontendblacklist"><?php echo $frontendblacklist; ?></textarea>
|
430 |
</td></tr>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
431 |
<tr valign="top">
|
432 |
-
<th width="30%"><?php _e('Block
|
433 |
<td width="70%">
|
434 |
<input type="checkbox" name="blockcountry_blockbackend" <?php checked('on', get_option('blockcountry_blockbackend'), true); ?> />
|
435 |
</td></tr>
|
|
|
436 |
<tr>
|
437 |
<th width="30%"></th>
|
438 |
<th width="70%">
|
439 |
<?php _e('Your IP address is', 'iqblockcountry'); ?> <i><?php echo $ip_address ?></i>. <?php _e('The country that is listed for this IP address is', 'iqblockcountry'); ?> <em><?php echo $displaycountry ?></em>.<br />
|
440 |
-
<?php _e('Do <strong>NOT</strong> set the \'Block
|
441 |
<?php echo "<strong>" . __('You will NOT be able to login the next time if you DO block your own country from visiting the backend.', 'iqblockcountry') . "</strong>"; ?>
|
442 |
</th>
|
443 |
</tr>
|
@@ -460,6 +594,82 @@ function iqblockcountry_settings_home()
|
|
460 |
?>
|
461 |
</select>
|
462 |
</td></tr>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
463 |
<tr valign="top">
|
464 |
<th width="30%"><?php _e('Send headers when user is blocked:', 'iqblockcountry'); ?><br />
|
465 |
<em><?php _e('Under normal circumstances you should keep this selected! Only if you have "Cannot modify header information - headers already sent" errors or if you know what you are doing uncheck this.', 'iqblockcountry'); ?></em></th>
|
@@ -467,7 +677,14 @@ function iqblockcountry_settings_home()
|
|
467 |
<input type="checkbox" name="blockcountry_header" <?php checked('on', get_option('blockcountry_header'), true); ?> />
|
468 |
</td></tr>
|
469 |
|
470 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
471 |
<p class="submit"><input type="submit" class="button-primary"
|
472 |
value="<?php _e ( 'Save Changes' )?>" /></p>
|
473 |
</td></tr>
|
@@ -479,11 +696,6 @@ function iqblockcountry_settings_home()
|
|
479 |
{
|
480 |
print "<p>You are missing the GeoIP class. Perhaps geoip.inc is missing?</p>";
|
481 |
}
|
482 |
-
|
483 |
-
echo '<p>This product includes GeoLite data created by MaxMind, available from ';
|
484 |
-
echo '<a href="http://www.maxmind.com/">http://www.maxmind.com/</a>.</p>';
|
485 |
-
|
486 |
-
echo '<p>If you like this plugin please link back to <a href="http://www.redeo.nl/">redeo.nl</a>! :-)</p>';
|
487 |
|
488 |
}
|
489 |
|
@@ -572,8 +784,11 @@ function iqblockcountry_settings_page() {
|
|
572 |
|
573 |
<h2 class="nav-tab-wrapper">
|
574 |
<a href="?page=iq-block-country/libs/blockcountry-settings.php&tab=home" class="nav-tab <?php echo $active_tab == 'home' ? 'nav-tab-active' : ''; ?>"><?php _e('Home', 'iqblockcountry'); ?></a>
|
|
|
|
|
575 |
<a href="?page=iq-block-country/libs/blockcountry-settings.php&tab=pages" class="nav-tab <?php echo $active_tab == 'pages' ? 'nav-tab-active' : ''; ?>"><?php _e('Pages', 'iqblockcountry'); ?></a>
|
576 |
-
<a href="?page=iq-block-country/libs/blockcountry-settings.php&tab=
|
|
|
577 |
<a href="?page=iq-block-country/libs/blockcountry-settings.php&tab=logging" class="nav-tab <?php echo $active_tab == 'logging' ? 'nav-tab-active' : ''; ?>"><?php _e('Logging', 'iqblockcountry'); ?></a>
|
578 |
<a href="?page=iq-block-country/libs/blockcountry-settings.php&tab=export" class="nav-tab <?php echo $active_tab == 'export' ? 'nav-tab-active' : ''; ?>"><?php _e('Import/Export', 'iqblockcountry'); ?></a>
|
579 |
</h2>
|
@@ -584,7 +799,15 @@ function iqblockcountry_settings_page() {
|
|
584 |
|
585 |
<hr />
|
586 |
<?php
|
587 |
-
if ($active_tab == "
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
588 |
{
|
589 |
iqblockcountry_settings_tools();
|
590 |
}
|
@@ -596,6 +819,10 @@ function iqblockcountry_settings_page() {
|
|
596 |
{
|
597 |
iqblockcountry_settings_pages();
|
598 |
}
|
|
|
|
|
|
|
|
|
599 |
elseif ($active_tab == "export")
|
600 |
{
|
601 |
iqblockcountry_settings_importexport();
|
@@ -604,10 +831,11 @@ function iqblockcountry_settings_page() {
|
|
604 |
{
|
605 |
iqblockcountry_settings_home();
|
606 |
}
|
607 |
-
|
|
|
608 |
|
|
|
609 |
|
610 |
-
<?php
|
611 |
/* Check if the Geo Database exists otherwise try to download it */
|
612 |
if (! (file_exists ( IPV4DBFILE ))) {
|
613 |
?>
|
17 |
function iqblockcountry_register_mysettings()
|
18 |
{
|
19 |
//register our settings
|
|
|
|
|
|
|
|
|
|
|
|
|
20 |
register_setting ( 'iqblockcountry-settings-group', 'blockcountry_blockmessage' );
|
|
|
|
|
|
|
21 |
register_setting ( 'iqblockcountry-settings-group', 'blockcountry_header');
|
22 |
+
register_setting ( 'iqblockcountry-settings-group', 'blockcountry_tracking');
|
23 |
+
register_setting ( 'iqblockcountry-settings-group-backend', 'blockcountry_blockbackend' );
|
24 |
+
register_setting ( 'iqblockcountry-settings-group-backend', 'blockcountry_backendbanlist' );
|
25 |
+
register_setting ( 'iqblockcountry-settings-group-backend', 'blockcountry_backendblacklist','iqblockcountry_validate_ip');
|
26 |
+
register_setting ( 'iqblockcountry-settings-group-backend', 'blockcountry_backendwhitelist','iqblockcountry_validate_ip');
|
27 |
+
register_setting ( 'iqblockcountry-settings-group-frontend', 'blockcountry_banlist' );
|
28 |
+
register_setting ( 'iqblockcountry-settings-group-frontend', 'blockcountry_frontendblacklist','iqblockcountry_validate_ip');
|
29 |
+
register_setting ( 'iqblockcountry-settings-group-frontend', 'blockcountry_frontendwhitelist','iqblockcountry_validate_ip');
|
30 |
+
register_setting ( 'iqblockcountry-settings-group-frontend', 'blockcountry_blocklogin' );
|
31 |
+
register_setting ( 'iqblockcountry-settings-group-frontend', 'blockcountry_blockfrontend' );
|
32 |
+
register_setting ( 'iqblockcountry-settings-group-pages', 'blockcountry_blockpages');
|
33 |
+
register_setting ( 'iqblockcountry-settings-group-pages', 'blockcountry_pages');
|
34 |
+
register_setting ( 'iqblockcountry-settings-group-cat', 'blockcountry_blockcategories');
|
35 |
+
register_setting ( 'iqblockcountry-settings-group-cat', 'blockcountry_categories');
|
36 |
+
register_setting ( 'iqblockcountry-settings-group-cat', 'blockcountry_blockhome');
|
37 |
}
|
38 |
|
39 |
/**
|
44 |
function iqblockcountry_get_options_arr() {
|
45 |
$optarr = array( 'blockcountry_banlist', 'blockcountry_backendbanlist','blockcountry_backendblacklist','blockcountry_backendwhitelist',
|
46 |
'blockcountry_frontendblacklist','blockcountry_frontendwhitelist','blockcountry_blockmessage','blockcountry_blocklogin','blockcountry_blockfrontend',
|
47 |
+
'blockcountry_blockbackend','blockcountry_header','blockcountry_blockpages','blockcountry_pages','blockcountry_blockcategories','blockcountry_categories',
|
48 |
+
'blockcountry_tracking','blockcountry_blockhome');
|
49 |
return apply_filters( 'iqblockcountry_options', $optarr );
|
50 |
}
|
51 |
|
55 |
*/
|
56 |
function iqblockcountry_set_defaults()
|
57 |
{
|
|
|
58 |
update_option('blockcountry_version',VERSION);
|
59 |
update_option('blockcountry_lastupdate' , 0);
|
60 |
update_option('blockcountry_blockfrontend' , 'on');
|
61 |
update_option('blockcountry_backendnrblocks', 0);
|
62 |
update_option('blockcountry_frontendnrblocks', 0);
|
63 |
update_option('blockcountry_header', 'on');
|
64 |
+
|
65 |
+
$countrylist = iqblockcountry_get_countries();
|
66 |
+
$ip_address = iqblockcountry_get_ipaddress();
|
67 |
+
$usercountry = iqblockcountry_check_ipaddress($ip_address);
|
68 |
+
|
69 |
+
$blacklist = array();
|
70 |
+
foreach ($countrylist AS $shortcode => $country)
|
71 |
+
{
|
72 |
+
if (!($shortcode == $usercountry))
|
73 |
+
{
|
74 |
+
array_push($blacklist,$shortcode);
|
75 |
+
}
|
76 |
+
}
|
77 |
+
update_option('blockcountry_backendbanlist',$blacklist);
|
78 |
+
iqblockcountry_install_db();
|
79 |
}
|
80 |
|
81 |
|
98 |
delete_option('blockcountry_version');
|
99 |
delete_option('blockcountry_header');
|
100 |
delete_option('blockcountry_blockpages');
|
101 |
+
delete_option('blockcountry_pages');
|
102 |
+
delete_option('blockcountry_blockcategories');
|
103 |
+
delete_option('blockcountry_categories');
|
104 |
+
delete_option('blockcountry_lasttrack');
|
105 |
+
delete_option('blockcountry_tracking');
|
106 |
+
delete_option('blockcountry_blockhome');
|
107 |
}
|
108 |
|
109 |
|
149 |
</form>
|
150 |
|
151 |
<hr />
|
152 |
+
<h3><?php _e('Download GeoIP database', 'iqblockcountry'); ?></h3>
|
153 |
<?php
|
154 |
$dateformat = get_option('date_format');
|
155 |
$time = get_option('blockcountry_lastupdate');
|
183 |
iqblockcountry_downloadgeodatabase('6', true);
|
184 |
}
|
185 |
|
186 |
+
?>
|
187 |
+
<hr />
|
188 |
+
<h3><?php _e('Active plugins', 'iqblockcountry'); ?></h3>
|
189 |
+
<?php
|
190 |
+
|
191 |
+
$plugins = get_plugins();
|
192 |
+
$plugins_string = '';
|
193 |
+
|
194 |
+
echo '<table class="widefat">';
|
195 |
+
echo '<thead><tr><th>' . __('Plugin name', 'iqblockcountry') . '</th><th>' . __('Version', 'iqblockcountry') . '</th><th>' . __('URL', 'iqblockcountry') . '</th></tr></thead>';
|
196 |
+
|
197 |
+
foreach( array_keys($plugins) as $key ) {
|
198 |
+
if ( is_plugin_active( $key ) ) {
|
199 |
+
$plugin =& $plugins[$key];
|
200 |
+
echo "<tbody><tr>";
|
201 |
+
echo '<td>' . $plugin['Name'] . '</td>';
|
202 |
+
echo '<td>' . $plugin['Version'] . '</td>';
|
203 |
+
echo '<td>' . $plugin['PluginURI'] . '</td>';
|
204 |
+
echo "</tr></tbody>";
|
205 |
+
}
|
206 |
+
}
|
207 |
+
echo '</table>';
|
208 |
+
echo $plugins_string;
|
209 |
}
|
210 |
|
211 |
/*
|
327 |
<h3><?php _e('Select which pages are blocked.', 'iqblockcountry'); ?></h3>
|
328 |
<form method="post" action="options.php">
|
329 |
<?php
|
330 |
+
settings_fields ( 'iqblockcountry-settings-group-pages' );
|
331 |
?>
|
332 |
<table class="form-table" cellspacing="2" cellpadding="5" width="100%">
|
333 |
<tr valign="top">
|
367 |
<?php
|
368 |
}
|
369 |
|
|
|
|
|
370 |
/*
|
371 |
+
* Function: Categories settings
|
372 |
*/
|
373 |
+
function iqblockcountry_settings_categories() {
|
374 |
+
?>
|
375 |
+
<h3><?php _e('Select which categories are blocked.', 'iqblockcountry'); ?></h3>
|
376 |
+
<form method="post" action="options.php">
|
377 |
+
<?php
|
378 |
+
settings_fields ( 'iqblockcountry-settings-group-cat' );
|
379 |
?>
|
380 |
+
<table class="form-table" cellspacing="2" cellpadding="5" width="100%">
|
381 |
+
<tr valign="top">
|
382 |
+
<th width="30%"><?php _e('Do you want to block individual categories:', 'iqblockcountry'); ?><br />
|
383 |
+
<?php _e('If you do not select this option all blog articles will be blocked.', 'iqblockcountry'); ?></th>
|
384 |
+
<td width="70%">
|
385 |
+
<input type="checkbox" name="blockcountry_blockcategories" value="on" <?php checked('on', get_option('blockcountry_blockcategories'), true); ?> />
|
386 |
+
</td></tr>
|
387 |
+
<tr valign="top">
|
388 |
+
<th width="30%"><?php _e('Do you want to block the homepage:', 'iqblockcountry'); ?><br />
|
389 |
+
<?php _e('If you do not select this option visitors will not be blocked from your homepage regardless of the categories you select.', 'iqblockcountry'); ?></th>
|
390 |
+
<td width="70%">
|
391 |
+
<input type="checkbox" name="blockcountry_blockhome" value="on" <?php checked('on', get_option('blockcountry_blockhome'), true); ?> />
|
392 |
+
</td></tr>
|
393 |
+
<tr valign="top">
|
394 |
+
<th width="30%"><?php _e('Select categories you want to block:', 'iqblockcountry'); ?></th>
|
395 |
+
<td width="70%">
|
396 |
+
|
397 |
+
<ul>
|
398 |
+
<?php
|
399 |
+
$selectedcategories = get_option('blockcountry_categories');
|
400 |
+
$categories = get_categories(array("hide_empty"=>0));
|
401 |
+
$selected = "";
|
402 |
+
foreach ( $categories as $category ) {
|
403 |
+
if (is_array($selectedcategories)) {
|
404 |
+
if ( in_array( $category->term_id,$selectedcategories) ) {
|
405 |
+
$selected = " checked=\"checked\"";
|
406 |
+
} else {
|
407 |
+
$selected = "";
|
408 |
+
}
|
409 |
+
}
|
410 |
+
echo "<li><input type=\"checkbox\" " . $selected . " name=\"blockcountry_categories[]\" value=\"" . $category->term_id . "\" id=\"" . $category->name . "\" /> <label for=\"" . $category->name . "\">" . $category->name . "</label></li>";
|
411 |
+
}
|
412 |
+
?>
|
413 |
+
</td></tr>
|
414 |
+
<tr><td></td><td>
|
415 |
+
<p class="submit"><input type="submit" class="button-primary"
|
416 |
+
value="<?php _e ( 'Save Changes' )?>" /></p>
|
417 |
+
</td></tr>
|
418 |
+
</table>
|
419 |
+
</form>
|
420 |
|
421 |
+
<?php
|
422 |
+
}
|
423 |
|
424 |
+
/*
|
425 |
+
* Settings frontend
|
426 |
+
*/
|
427 |
+
function iqblockcountry_settings_frontend()
|
428 |
+
{
|
429 |
+
?>
|
430 |
+
<h3><?php _e('Frontend options', 'iqblockcountry'); ?></h3>
|
431 |
|
432 |
<form method="post" action="options.php">
|
433 |
<?php
|
434 |
+
settings_fields ( 'iqblockcountry-settings-group-frontend' );
|
435 |
if (!class_exists('GeoIP'))
|
436 |
{
|
437 |
include_once("geoip.inc");
|
461 |
|
462 |
<table class="form-table" cellspacing="2" cellpadding="5" width="100%">
|
463 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
464 |
<tr valign="top">
|
465 |
+
<th width="30%"><?php _e('Do not block visitors that are logged in from visiting frontend website:', 'iqblockcountry'); ?></th>
|
466 |
<td width="70%">
|
467 |
<input type="checkbox" name="blockcountry_blocklogin" <?php checked('on', get_option('blockcountry_blocklogin'), true); ?> />
|
468 |
</td></tr>
|
469 |
|
470 |
<tr valign="top">
|
471 |
+
<th width="30%"><?php _e('Block visitors from visiting the frontend of your website:', 'iqblockcountry'); ?></th>
|
472 |
<td width="70%">
|
473 |
<input type="checkbox" name="blockcountry_blockfrontend" <?php checked('on', get_option('blockcountry_blockfrontend'), true); ?> />
|
474 |
</td></tr>
|
506 |
?>
|
507 |
<textarea cols="70" rows="5" name="blockcountry_frontendblacklist"><?php echo $frontendblacklist; ?></textarea>
|
508 |
</td></tr>
|
509 |
+
<tr><td></td><td>
|
510 |
+
<p class="submit"><input type="submit" class="button-primary"
|
511 |
+
value="<?php _e ( 'Save Changes' )?>" /></p>
|
512 |
+
</td></tr>
|
513 |
+
</table>
|
514 |
+
</form>
|
515 |
+
<?php
|
516 |
+
}
|
517 |
+
else
|
518 |
+
{
|
519 |
+
print "<p>You are missing the GeoIP class. Perhaps geoip.inc is missing?</p>";
|
520 |
+
}
|
521 |
+
|
522 |
+
}
|
523 |
+
|
524 |
+
|
525 |
+
/*
|
526 |
+
* Settings home
|
527 |
+
*/
|
528 |
+
function iqblockcountry_settings_backend()
|
529 |
+
{
|
530 |
+
?>
|
531 |
+
<h3><?php _e('Backend Options', 'iqblockcountry'); ?></h3>
|
532 |
+
|
533 |
+
<form method="post" action="options.php">
|
534 |
+
<?php
|
535 |
+
settings_fields ( 'iqblockcountry-settings-group-backend' );
|
536 |
+
if (!class_exists('GeoIP'))
|
537 |
+
{
|
538 |
+
include_once("geoip.inc");
|
539 |
+
}
|
540 |
+
if (class_exists('GeoIP'))
|
541 |
+
{
|
542 |
+
|
543 |
+
$countrylist = iqblockcountry_get_countries();
|
544 |
+
|
545 |
+
$ip_address = iqblockcountry_get_ipaddress();
|
546 |
+
$country = iqblockcountry_check_ipaddress($ip_address);
|
547 |
+
if ($country == "Unknown" || $country == "ipv6" || $country == "")
|
548 |
+
{ $displaycountry = "Unknown"; }
|
549 |
+
else { $displaycountry = $countrylist[$country]; }
|
550 |
+
|
551 |
+
|
552 |
+
?>
|
553 |
+
|
554 |
+
<script language="javascript" type="text/javascript" src=<?php echo "\"" . CHOSENJS . "\""?>></script>
|
555 |
+
<link rel="stylesheet" href=<?php echo "\"" . CHOSENCSS . "\""?> type="text/css" />
|
556 |
+
<script>
|
557 |
+
jQuery(document).ready(function(){
|
558 |
+
jQuery(".chosen").data("placeholder","Select country...").chosen();
|
559 |
+
});
|
560 |
+
</script>
|
561 |
+
|
562 |
+
|
563 |
+
<table class="form-table" cellspacing="2" cellpadding="5" width="100%">
|
564 |
<tr valign="top">
|
565 |
+
<th width="30%"><?php _e('Block visitors from visiting the backend (administrator) of your website:', 'iqblockcountry'); ?></th>
|
566 |
<td width="70%">
|
567 |
<input type="checkbox" name="blockcountry_blockbackend" <?php checked('on', get_option('blockcountry_blockbackend'), true); ?> />
|
568 |
</td></tr>
|
569 |
+
|
570 |
<tr>
|
571 |
<th width="30%"></th>
|
572 |
<th width="70%">
|
573 |
<?php _e('Your IP address is', 'iqblockcountry'); ?> <i><?php echo $ip_address ?></i>. <?php _e('The country that is listed for this IP address is', 'iqblockcountry'); ?> <em><?php echo $displaycountry ?></em>.<br />
|
574 |
+
<?php _e('Do <strong>NOT</strong> set the \'Block visitors from visiting the backend (administrator) of your website\' and also select', 'iqblockcountry'); ?> <?php echo $displaycountry ?> <?php _e('below.', 'iqblockcountry'); ?><br />
|
575 |
<?php echo "<strong>" . __('You will NOT be able to login the next time if you DO block your own country from visiting the backend.', 'iqblockcountry') . "</strong>"; ?>
|
576 |
</th>
|
577 |
</tr>
|
594 |
?>
|
595 |
</select>
|
596 |
</td></tr>
|
597 |
+
<tr><td></td><td>
|
598 |
+
<p class="submit"><input type="submit" class="button-primary"
|
599 |
+
value="<?php _e ( 'Save Changes' )?>" /></p>
|
600 |
+
</td></tr>
|
601 |
+
</table>
|
602 |
+
</form>
|
603 |
+
<?php
|
604 |
+
}
|
605 |
+
else
|
606 |
+
{
|
607 |
+
print "<p>You are missing the GeoIP class. Perhaps geoip.inc is missing?</p>";
|
608 |
+
}
|
609 |
+
|
610 |
+
}
|
611 |
+
|
612 |
+
|
613 |
+
|
614 |
+
/*
|
615 |
+
* Settings home
|
616 |
+
*/
|
617 |
+
function iqblockcountry_settings_home()
|
618 |
+
{
|
619 |
+
?>
|
620 |
+
<h3><?php _e('Overall statistics since start', 'iqblockcountry'); ?></h3>
|
621 |
+
|
622 |
+
<?php $blocked = get_option('blockcountry_backendnrblocks'); ?>
|
623 |
+
<p><?php echo $blocked; ?> <?php _e('visitors blocked from the backend.', 'iqblockcountry'); ?></p>
|
624 |
+
<?php $blocked = get_option('blockcountry_frontendnrblocks'); ?>
|
625 |
+
<p><?php echo $blocked; ?> <?php _e('visitors blocked from the frontend.', 'iqblockcountry'); ?></p>
|
626 |
+
|
627 |
+
<hr />
|
628 |
+
|
629 |
+
<h3><?php _e('Basic Options', 'iqblockcountry'); ?></h3>
|
630 |
+
|
631 |
+
<form method="post" action="options.php">
|
632 |
+
<?php
|
633 |
+
settings_fields ( 'iqblockcountry-settings-group' );
|
634 |
+
if (!class_exists('GeoIP'))
|
635 |
+
{
|
636 |
+
include_once("geoip.inc");
|
637 |
+
}
|
638 |
+
if (class_exists('GeoIP'))
|
639 |
+
{
|
640 |
+
|
641 |
+
$countrylist = iqblockcountry_get_countries();
|
642 |
+
|
643 |
+
$ip_address = iqblockcountry_get_ipaddress();
|
644 |
+
$country = iqblockcountry_check_ipaddress($ip_address);
|
645 |
+
if ($country == "Unknown" || $country == "ipv6" || $country == "")
|
646 |
+
{ $displaycountry = "Unknown"; }
|
647 |
+
else { $displaycountry = $countrylist[$country]; }
|
648 |
+
|
649 |
+
|
650 |
+
?>
|
651 |
+
|
652 |
+
<script language="javascript" type="text/javascript" src=<?php echo "\"" . CHOSENJS . "\""?>></script>
|
653 |
+
<link rel="stylesheet" href=<?php echo "\"" . CHOSENCSS . "\""?> type="text/css" />
|
654 |
+
<script>
|
655 |
+
jQuery(document).ready(function(){
|
656 |
+
jQuery(".chosen").data("placeholder","Select country...").chosen();
|
657 |
+
});
|
658 |
+
</script>
|
659 |
+
|
660 |
+
|
661 |
+
<table class="form-table" cellspacing="2" cellpadding="5" width="100%">
|
662 |
+
|
663 |
+
<tr valign="top">
|
664 |
+
<th width="30%"><?php _e('Message to display when people are blocked:', 'iqblockcountry'); ?></th>
|
665 |
+
<td width="70%">
|
666 |
+
<?php
|
667 |
+
$blockmessage = get_option ( 'blockcountry_blockmessage' );
|
668 |
+
if (empty($blockmessage)) { $blockmessage = "Forbidden - Visitors from your country are not permitted to browse this site."; }
|
669 |
+
?>
|
670 |
+
<textarea cols="100" rows="3" name="blockcountry_blockmessage"><?php echo $blockmessage; ?></textarea>
|
671 |
+
</td></tr>
|
672 |
+
|
673 |
<tr valign="top">
|
674 |
<th width="30%"><?php _e('Send headers when user is blocked:', 'iqblockcountry'); ?><br />
|
675 |
<em><?php _e('Under normal circumstances you should keep this selected! Only if you have "Cannot modify header information - headers already sent" errors or if you know what you are doing uncheck this.', 'iqblockcountry'); ?></em></th>
|
677 |
<input type="checkbox" name="blockcountry_header" <?php checked('on', get_option('blockcountry_header'), true); ?> />
|
678 |
</td></tr>
|
679 |
|
680 |
+
<tr valign="top">
|
681 |
+
<th width="30%"><?php _e('Allow tracking:', 'iqblockcountry'); ?><br />
|
682 |
+
<em><?php _e('This sends only the IP address and the number of attempts this ip address tried to login to your backend and was blocked doing so to a central server. No other data is being send. This helps us to get a better picture of rogue countries.', 'iqblockcountry'); ?></em></th>
|
683 |
+
<td width="70%">
|
684 |
+
<input type="checkbox" name="blockcountry_tracking" <?php checked('on', get_option('blockcountry_tracking'), true); ?> />
|
685 |
+
</td></tr>
|
686 |
+
|
687 |
+
<tr><td></td><td>
|
688 |
<p class="submit"><input type="submit" class="button-primary"
|
689 |
value="<?php _e ( 'Save Changes' )?>" /></p>
|
690 |
</td></tr>
|
696 |
{
|
697 |
print "<p>You are missing the GeoIP class. Perhaps geoip.inc is missing?</p>";
|
698 |
}
|
|
|
|
|
|
|
|
|
|
|
699 |
|
700 |
}
|
701 |
|
784 |
|
785 |
<h2 class="nav-tab-wrapper">
|
786 |
<a href="?page=iq-block-country/libs/blockcountry-settings.php&tab=home" class="nav-tab <?php echo $active_tab == 'home' ? 'nav-tab-active' : ''; ?>"><?php _e('Home', 'iqblockcountry'); ?></a>
|
787 |
+
<a href="?page=iq-block-country/libs/blockcountry-settings.php&tab=frontend" class="nav-tab <?php echo $active_tab == 'frontend' ? 'nav-tab-active' : ''; ?>"><?php _e('Frontend', 'iqblockcountry'); ?></a>
|
788 |
+
<a href="?page=iq-block-country/libs/blockcountry-settings.php&tab=backend" class="nav-tab <?php echo $active_tab == 'backend' ? 'nav-tab-active' : ''; ?>"><?php _e('Backend', 'iqblockcountry'); ?></a>
|
789 |
<a href="?page=iq-block-country/libs/blockcountry-settings.php&tab=pages" class="nav-tab <?php echo $active_tab == 'pages' ? 'nav-tab-active' : ''; ?>"><?php _e('Pages', 'iqblockcountry'); ?></a>
|
790 |
+
<a href="?page=iq-block-country/libs/blockcountry-settings.php&tab=categories" class="nav-tab <?php echo $active_tab == 'categories' ? 'nav-tab-active' : ''; ?>"><?php _e('Categories', 'iqblockcountry'); ?></a>
|
791 |
+
<a href="?page=iq-block-country/libs/blockcountry-settings.php&tab=tools" class="nav-tab <?php echo $active_tab == 'tools' ? 'nav-tab-active' : ''; ?>"><?php _e('Tools', 'iqblockcountry'); ?></a>
|
792 |
<a href="?page=iq-block-country/libs/blockcountry-settings.php&tab=logging" class="nav-tab <?php echo $active_tab == 'logging' ? 'nav-tab-active' : ''; ?>"><?php _e('Logging', 'iqblockcountry'); ?></a>
|
793 |
<a href="?page=iq-block-country/libs/blockcountry-settings.php&tab=export" class="nav-tab <?php echo $active_tab == 'export' ? 'nav-tab-active' : ''; ?>"><?php _e('Import/Export', 'iqblockcountry'); ?></a>
|
794 |
</h2>
|
799 |
|
800 |
<hr />
|
801 |
<?php
|
802 |
+
if ($active_tab == "frontend")
|
803 |
+
{
|
804 |
+
iqblockcountry_settings_frontend();
|
805 |
+
}
|
806 |
+
elseif ($active_tab == "backend")
|
807 |
+
{
|
808 |
+
iqblockcountry_settings_backend();
|
809 |
+
}
|
810 |
+
elseif ($active_tab == "tools")
|
811 |
{
|
812 |
iqblockcountry_settings_tools();
|
813 |
}
|
819 |
{
|
820 |
iqblockcountry_settings_pages();
|
821 |
}
|
822 |
+
elseif ($active_tab == "categories")
|
823 |
+
{
|
824 |
+
iqblockcountry_settings_categories();
|
825 |
+
}
|
826 |
elseif ($active_tab == "export")
|
827 |
{
|
828 |
iqblockcountry_settings_importexport();
|
831 |
{
|
832 |
iqblockcountry_settings_home();
|
833 |
}
|
834 |
+
echo '<p>This product includes GeoLite data created by MaxMind, available from ';
|
835 |
+
echo '<a href="http://www.maxmind.com/">http://www.maxmind.com/</a>.</p>';
|
836 |
|
837 |
+
echo '<p>If you like this plugin please link back to <a href="http://www.redeo.nl/">redeo.nl</a>! :-)</p>';
|
838 |
|
|
|
839 |
/* Check if the Geo Database exists otherwise try to download it */
|
840 |
if (! (file_exists ( IPV4DBFILE ))) {
|
841 |
?>
|
readme.txt
CHANGED
@@ -1,10 +1,10 @@
|
|
1 |
=== iQ Block Country ===
|
2 |
Contributors: iqpascal,williewonka
|
3 |
-
Donate link: http://www.
|
4 |
Tags: spam, block, countries, country, comments, ban, geo, geo blocking, geo ip, block country, block countries, ban countries, ban country, blacklist, whitelist
|
5 |
Requires at least: 3.5.2
|
6 |
Tested up to: 3.8.1
|
7 |
-
Stable tag: 1.1.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -25,6 +25,8 @@ If you want to block users from both your frontend website as well as your backe
|
|
25 |
|
26 |
Users that are blocked will not be able to do harmful things to your blog like post comment spam.
|
27 |
|
|
|
|
|
28 |
This plugin uses the GeoLite database from Maxmind. It has a 99.5% accuracy so that is pretty good for a free database. If you need higher accuracy you can buy a license from MaxMind directly.
|
29 |
|
30 |
Once you setup this plugin it will try to download the GeoIP database from Maxmind so you will
|
@@ -161,8 +163,27 @@ This is possible if another plugin or your template sends out header information
|
|
161 |
|
162 |
If this does not help you out deselect "Send headers when user is blocked". This will no longer send headers but only display the block message. This however will mess up your website if you use caching software for your website.
|
163 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
164 |
== Changelog ==
|
165 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
166 |
= 1.1.5 =
|
167 |
|
168 |
* Statistics required wp-config.php in a specific place bug smashed.
|
1 |
=== iQ Block Country ===
|
2 |
Contributors: iqpascal,williewonka
|
3 |
+
Donate link: http://www.redeo.nl/plugins/donate
|
4 |
Tags: spam, block, countries, country, comments, ban, geo, geo blocking, geo ip, block country, block countries, ban countries, ban country, blacklist, whitelist
|
5 |
Requires at least: 3.5.2
|
6 |
Tested up to: 3.8.1
|
7 |
+
Stable tag: 1.1.6
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
25 |
|
26 |
Users that are blocked will not be able to do harmful things to your blog like post comment spam.
|
27 |
|
28 |
+
You can block all visitors from a certain country accessing your site but you can also limit access to some pages, or some blog categories.
|
29 |
+
|
30 |
This plugin uses the GeoLite database from Maxmind. It has a 99.5% accuracy so that is pretty good for a free database. If you need higher accuracy you can buy a license from MaxMind directly.
|
31 |
|
32 |
Once you setup this plugin it will try to download the GeoIP database from Maxmind so you will
|
163 |
|
164 |
If this does not help you out deselect "Send headers when user is blocked". This will no longer send headers but only display the block message. This however will mess up your website if you use caching software for your website.
|
165 |
|
166 |
+
= What data get sends to you when I select "Allow tracking"? =
|
167 |
+
|
168 |
+
If you select this option each hour the plugin checks if it has new data to send back to the central server.
|
169 |
+
|
170 |
+
This data consists of each IP address that has tried to login to your backend and how many attempts were made since the last check.
|
171 |
+
|
172 |
+
Goal of this feature is to check if we can create a user-driven database of rogue IP addresses that try to login to the backend.
|
173 |
+
If this is viable in a future version this database can be used to block these rogue users despite the country they come from.
|
174 |
+
|
175 |
+
If storing or sharing an IP address is illegal in your country do not select this feature.
|
176 |
+
|
177 |
+
|
178 |
== Changelog ==
|
179 |
|
180 |
+
= 1.1.6 =
|
181 |
+
* Added to ban categories. This works the same way as blocking pages (By request of FVCS)
|
182 |
+
* Changed the admin page layout. Added tabs for frontend and backend blocking to make it look less cluttered
|
183 |
+
* Added optional tracking to the plugin. This is an experiment to see if building a database of IP addresses that try to login to the backend is viable.
|
184 |
+
* Upon first activation the plugin now fills the backend block list with all countries except the country that is currently used to activate.
|
185 |
+
* Added IP checking in header HTTP_CLIENT_IP and HTTP_X_REAL_IP
|
186 |
+
|
187 |
= 1.1.5 =
|
188 |
|
189 |
* Statistics required wp-config.php in a specific place bug smashed.
|