PluginProbe ʕ •ᴥ•ʔ
Wordfence Security – Firewall, Malware Scan, and Login Security / 4.0.1
Wordfence Security – Firewall, Malware Scan, and Login Security v4.0.1
8.2.2 8.2.1 8.2.0 3.7.1 3.7.2 3.8.1 3.8.2 3.8.3 3.8.4 3.8.5 3.8.6 3.8.7 3.8.8 3.8.9 3.9.1 4.0.1 4.0.2 4.0.3 5.0.1 5.0.2 5.0.3 5.0.4 5.0.5 5.0.6 5.0.7 5.0.8 5.0.9 5.1.1 5.1.2 5.1.4 5.1.5 5.1.6 5.1.7 5.1.8 5.1.9 5.2.1 5.2.2 5.2.3 5.2.4 5.2.5 5.2.6 5.2.7 5.2.8 5.2.9 5.3.1 5.3.10 5.3.11 5.3.12 5.3.2 5.3.3 5.3.4 5.3.5 5.3.6 5.3.7 5.3.8 5.3.9 6.0.1 6.0.10 6.0.11 6.0.12 6.0.14 6.0.15 6.0.16 6.0.17 6.0.18 6.0.19 6.0.2 6.0.20 6.0.21 6.0.22 6.0.23 6.0.24 6.0.25 6.0.3 6.0.4 6.0.5 6.0.6 6.0.7 6.0.8 6.0.9 6.1.1 6.1.10 6.1.11 6.1.12 6.1.14 6.1.15 6.1.16 6.1.17 6.1.2 6.1.3 6.1.4 6.1.5 6.1.6 6.1.7 6.1.8 6.1.9 6.2.0 6.2.1 6.2.10 6.2.2 6.2.3 6.2.4 6.2.5 6.2.6 6.2.7 6.2.8 6.2.9 6.3.0 6.3.1 6.3.10 6.3.11 6.3.12 6.3.14 6.3.15 6.3.16 6.3.17 6.3.18 6.3.19 6.3.2 6.3.20 6.3.21 6.3.22 6.3.3 6.3.4 6.3.5 6.3.6 6.3.7 6.3.8 6.3.9 7.0.1 7.0.2 7.0.3 7.0.4 7.0.5 7.1.0 7.1.1 7.1.10 7.1.11 7.1.12 7.1.14 7.1.15 7.1.16 7.1.17 7.1.18 7.1.19 7.1.2 7.1.20 7.1.3 7.1.4 7.1.5 7.1.6 7.1.7 7.1.8 7.1.9 7.10.0 7.10.1 7.10.2 7.10.3 7.10.4 7.10.5 7.10.6 7.10.7 7.11.0 7.11.1 7.11.2 7.11.3 7.11.4 7.11.5 7.11.6 7.11.7 7.2.1 7.2.2 7.2.3 7.2.4 7.2.5 7.3.1 7.3.2 7.3.3 7.3.4 7.3.5 7.3.6 7.4.0 7.4.1 7.4.10 7.4.11 7.4.12 7.4.14 7.4.2 7.4.3 trunk 7.4.4 1.1 7.4.5 1.2 7.4.6 1.3 7.4.7 1.3.1 7.4.8 1.3.2 7.4.9 1.3.3 7.5.0 1.4.2 7.5.1 1.4.3 7.5.10 1.4.4 7.5.11 1.4.5 7.5.2 1.4.6 7.5.3 1.4.7 7.5.4 1.4.8 7.5.5 1.5.1 7.5.6 1.5.2 7.5.7 1.5.3 7.5.8 1.5.4 7.5.9 1.5.5 7.6.0 1.5.6 7.6.1 2.0.1 7.6.2 2.0.2 7.7.0 2.0.3 7.7.1 2.0.5 7.8.0 2.0.6 7.8.1 2.0.7 7.8.2 2.1.0 7.9.0 2.1.1 7.9.1 2.1.2 7.9.2 2.1.3 7.9.3 2.1.4 8.0.0 2.1.5 8.0.1 3.0.2 8.0.2 3.0.3 8.0.3 3.0.4 8.0.4 3.0.5 8.0.5 3.0.6 8.1.0 3.0.7 8.1.1 3.0.8 8.1.2 3.0.9 8.1.3 3.1.0 8.1.4 3.1.1 v1.4.1 3.1.2 3.1.4 3.1.6 3.2.1 3.2.3 3.2.4 3.2.5 3.2.6 3.2.7 3.3.2 3.3.3 3.3.4 3.3.5 3.3.6 3.3.7 3.4.1 3.4.4 3.4.5 3.5.1 3.5.2 3.6.1 3.6.3 3.6.4 3.6.5 3.6.6 3.6.7 3.6.8 3.6.9
wordfence / lib / menu_countryBlocking.php
wordfence / lib Last commit date
Diff 14 years ago whois 12 years ago .htaccess 14 years ago Diff.php 14 years ago GeoIP.dat 12 years ago IPTraf.php 12 years ago conntest.php 13 years ago diffResult.php 14 years ago email_genericAlert.php 12 years ago email_newIssues.php 12 years ago email_unlockRequest.php 13 years ago menu_activity.php 12 years ago menu_blockedIPs.php 13 years ago menu_countryBlocking.php 12 years ago menu_options.php 12 years ago menu_rangeBlocking.php 12 years ago menu_scan.php 12 years ago menu_scanSchedule.php 12 years ago menu_twoFactor.php 12 years ago menu_whois.php 12 years ago pageTitle.php 13 years ago schedWeekEntry.php 12 years ago sysinfo.php 14 years ago unknownFiles.php 13 years ago viewFullActivityLog.php 13 years ago wf503.php 12 years ago wfAPI.php 12 years ago wfAction.php 14 years ago wfArray.php 13 years ago wfBrowscap.php 14 years ago wfBrowscapCache.php 14 years ago wfBulkCountries.php 13 years ago wfConfig.php 12 years ago wfCountryMap.php 13 years ago wfCrawl.php 12 years ago wfDB.php 13 years ago wfDict.php 14 years ago wfGeoIP.php 13 years ago wfIssues.php 12 years ago wfLockedOut.php 13 years ago wfLog.php 12 years ago wfRate.php 14 years ago wfScan.php 12 years ago wfScanEngine.php 12 years ago wfSchema.php 13 years ago wfUnlockMsg.php 13 years ago wfUtils.php 12 years ago wfViewResult.php 14 years ago wordfenceClass.php 12 years ago wordfenceConstants.php 12 years ago wordfenceHash.php 13 years ago wordfenceScanner.php 12 years ago wordfenceURLHoover.php 12 years ago
menu_countryBlocking.php
108 lines
1 <?php
2 require('wfBulkCountries.php');
3 ?>
4 <script type="text/javascript">
5 WFAD.countryMap = <?php echo json_encode($wfBulkCountries); ?>;
6 </script>
7 <div class="wordfenceModeElem" id="wordfenceMode_countryBlocking"></div>
8 <div class="wrap" id="paidWrap">
9 <div class="wordfence-lock-icon wordfence-icon32"><br /></div><h2 id="wfHeading">Block specific countries from accessing your site</h2>
10 <?php if(! wfConfig::get('isPaid')){ ?>
11 <div class="wfPaidOnlyNotice">
12 <strong>Country Blocking is only available to Premium Members at this time</strong><br /><br />
13 Country Blocking is a premium feature because we have licensed a very accurate commercial geolocation database to provide this feature. If you would like to
14 activate this feature, simply <a href="https://www.wordfence.com/wordfence-signup/" target="_blank">click here and get a premium Wordfence API Key</a>, and then copy and paste it into your options
15 page.
16 </div>
17 <?php } ?>
18 <div class="wordfenceWrap" style="margin: 20px 20px 20px 30px;">
19 <table class="wfConfigForm">
20 <tr><td colspan="2"><h2>Country Blocking Options</h2></td></tr>
21 <?php if(! wfConfig::get('firewallEnabled')){ ?><tr><td colspan="2"><div style="color: #F00; font-weight: bold;">Firewall is disabled. You can enable it on the <a href="admin.php?page=WordfenceSecOpt">Wordfence Options page</a> at the top.</div></td></tr><?php } ?>
22 <tr><th>What to do when we block someone:</th><td>
23 <select id="wfBlockAction">
24 <option value="block"<?php if(wfConfig::get('cbl_action') == 'block'){ echo ' selected'; } ?>>Show the standard Wordfence blocked message</option>
25 <option value="redir"<?php if(wfConfig::get('cbl_action') == 'redir'){ echo ' selected'; } ?>>Redirect to the URL below</option>
26 </select>
27 </td></tr>
28 <tr><th>URL to redirect blocked users to:</th><td><input type="text" id="wfRedirURL" value="<?php if(wfConfig::get('cbl_redirURL')){ echo htmlspecialchars(wfConfig::get('cbl_redirURL')); } ?>" /></td></tr>
29 <tr><th>Block countries even if they are logged in:</th><td><input type="checkbox" id="wfLoggedInBlocked" value="1" <?php if(wfConfig::get('cbl_loggedInBlocked')){ echo 'checked'; } ?> /></td></tr>
30 <tr><th>Block access to the login form too:</th><td><input type="checkbox" id="wfLoginFormBlocked" value="1" <?php if(wfConfig::get('cbl_loginFormBlocked')){ echo 'checked'; } ?> /></td></tr>
31 <tr><td colspan="2"><h2>Advanced Country Blocking Options</h2></td></tr>
32 <tr><th colspan="2">
33 If user hits the URL
34 <input type="text" id="wfBypassRedirURL" value="<?php echo htmlspecialchars(wfConfig::get('cbl_cblBypassURL', "")); ?>" size="20" />
35 then redirect that user to
36 <input type="text" id="wfBypassRedirDest" value="<?php echo htmlspecialchars(wfConfig::get('cbl_cblBypassURLRedir', "")); ?>" size="20" /> and set a cookie that will bypass all country blocking.
37 </th></tr>
38 <tr><th colspan="2">
39 If user who is allowed to access the site views the URL
40 <input type="text" id="wfBypassViewURL" value="<?php echo htmlspecialchars(wfConfig::get('cbl_cblBypassURL', "")); ?>" size="20" />
41 then set a cookie that will bypass country blocking in future in case that user hits the site from a blocked country.
42 </th></tr>
43
44 </table>
45 <h2>Select which countries to block</h2>
46 <div id="wfBulkBlockingContainer" style="margin-bottom: 10px;">
47 <a href="#" onclick="jQuery('.wfCountryCheckbox').prop('checked', true); return false;">Select All</a>&nbsp;&nbsp;
48 <a href="#" onclick="jQuery('.wfCountryCheckbox').prop('checked', false); return false;">Deselect All</a>&nbsp;&nbsp;
49 <table border="0" cellpadding="0" cellspacing="0">
50 <tr>
51 <?php
52 $counter = 0;
53 asort($wfBulkCountries);
54 foreach($wfBulkCountries as $code => $name){
55 echo '<td style=""><input class="wfCountryCheckbox" id="wfCountryCheckbox_' . $code . '" type="checkbox" value="' . $code . '" />&nbsp;' . $name . '&nbsp;&nbsp;&nbsp;</td>';
56 $counter++;
57 if($counter % 5 == 0){
58 echo "</tr><tr>\n";
59 }
60 }
61 ?>
62 </tr>
63 </table>
64 </div>
65 <table border="0" cellpadding="0" cellspacing="0"><tr>
66 <td><input type="button" name="but4" class="button-primary" value="Save blocking options and country list" onclick="WFAD.saveCountryBlocking();" /></td>
67 <td style="height: 24px;"><div class="wfAjax24"></div><span class="wfSavedMsg">&nbsp;Your changes have been saved!</span></td></tr>
68 </table>
69 <span style="font-size: 10px;">Note that we use an IP to country database that is 99.5% accurate to identify which country a visitor is from.</span>
70 </div>
71 </div>
72 <script type="text/javascript">
73 jQuery(function(){ WFAD.setOwnCountry('<?php echo wfUtils::IP2Country(wfUtils::getIP()); ?>'); });
74 <?php
75 if(wfConfig::get('cbl_countries')){
76 ?>
77 jQuery(function(){ WFAD.loadBlockedCountries('<?php echo wfConfig::get('cbl_countries'); ?>'); });
78 <?php
79 }
80 ?>
81 </script>
82 <script type="text/x-jquery-template" id="wfWelcomeContentCntBlk">
83 <div>
84 <h3>Premium Feature: Block or redirect countries</h3>
85 <strong><p>Being targeted by hackers in a specific country?</p></strong>
86 <p>
87 The premium version of Wordfence offers country blocking.
88 This uses a commercial geolocation database to block hackers, spammers
89 or other malicious traffic by country with a 99.5% accuracy rate.
90 </p>
91 <p>
92 <?php
93 if(wfConfig::get('isPaid')){
94 ?>
95 You have upgraded to the premium version of Wordfence and have full access
96 to this feature along with our other premium features and priority support.
97 <?php
98 } else {
99 ?>
100 If you would like access to this premium feature, please
101 <a href="https://www.wordfence.com/wordfence-signup/" target="_blank">upgrade to our premium version</a>.
102 </p>
103 <?php
104 }
105 ?>
106 </div>
107 </script>
108