Diff
8 years ago
dashboard
7 years ago
rest-api
7 years ago
.htaccess
7 years ago
Diff.php
14 years ago
GeoLite2-Country.mmdb
7 years ago
IPTraf.php
8 years ago
IPTrafList.php
7 years ago
WFLSPHP52Compatability.php
7 years ago
compat.php
8 years ago
conntest.php
7 years ago
cronview.php
8 years ago
dbview.php
8 years ago
diffResult.php
8 years ago
email_genericAlert.php
7 years ago
email_newIssues.php
7 years ago
email_unlockRequest.php
8 years ago
email_unsubscribeRequest.php
7 years ago
flags.php
7 years ago
live_activity.php
8 years ago
menu_dashboard.php
7 years ago
menu_dashboard_options.php
7 years ago
menu_firewall.php
7 years ago
menu_firewall_blocking.php
7 years ago
menu_firewall_blocking_options.php
8 years ago
menu_firewall_waf.php
7 years ago
menu_firewall_waf_options.php
7 years ago
menu_options.php
7 years ago
menu_scanner.php
7 years ago
menu_scanner_credentials.php
8 years ago
menu_scanner_options.php
8 years ago
menu_support.php
7 years ago
menu_tools.php
7 years ago
menu_tools_diagnostic.php
7 years ago
menu_tools_importExport.php
7 years ago
menu_tools_livetraffic.php
7 years ago
menu_tools_twoFactor.php
7 years ago
menu_tools_whois.php
8 years ago
menu_wordfence_central.php
7 years ago
noc1.key
7 years ago
sysinfo.php
8 years ago
unknownFiles.php
8 years ago
viewFullActivityLog.php
8 years ago
wf503.php
7 years ago
wfAPI.php
7 years ago
wfActivityReport.php
7 years ago
wfAdminNoticeQueue.php
8 years ago
wfArray.php
7 years ago
wfBrowscap.php
8 years ago
wfBrowscapCache.php
7 years ago
wfBulkCountries.php
7 years ago
wfCache.php
9 years ago
wfCentralAPI.php
7 years ago
wfConfig.php
7 years ago
wfCrawl.php
8 years ago
wfCredentialsController.php
7 years ago
wfCrypt.php
7 years ago
wfDB.php
7 years ago
wfDashboard.php
7 years ago
wfDateLocalization.php
8 years ago
wfDiagnostic.php
7 years ago
wfDict.php
8 years ago
wfDirectoryIterator.php
7 years ago
wfHelperBin.php
11 years ago
wfHelperString.php
11 years ago
wfIPWhitelist.php
7 years ago
wfImportExportController.php
7 years ago
wfIssues.php
7 years ago
wfJWT.php
7 years ago
wfLockedOut.php
7 years ago
wfLog.php
7 years ago
wfMD5BloomFilter.php
8 years ago
wfModuleController.php
7 years ago
wfNotification.php
8 years ago
wfOnboardingController.php
7 years ago
wfPersistenceController.php
8 years ago
wfRESTAPI.php
7 years ago
wfScan.php
7 years ago
wfScanEngine.php
7 years ago
wfSchema.php
7 years ago
wfStyle.php
7 years ago
wfSupportController.php
7 years ago
wfUnlockMsg.php
7 years ago
wfUpdateCheck.php
8 years ago
wfUtils.php
7 years ago
wfVersionCheckController.php
8 years ago
wfView.php
10 years ago
wfViewResult.php
8 years ago
wordfenceClass.php
7 years ago
wordfenceConstants.php
7 years ago
wordfenceHash.php
7 years ago
wordfenceScanner.php
7 years ago
wordfenceURLHoover.php
7 years ago
menu_firewall_blocking.php
230 lines
| 1 | <?php |
| 2 | if (!defined('WORDFENCE_VERSION')) { exit; } |
| 3 | ?> |
| 4 | <div class="wf-row"> |
| 5 | <div class="wf-col-xs-12"> |
| 6 | <div class="wf-block wf-block-no-header wf-active"> |
| 7 | <div class="wf-block-content"> |
| 8 | <ul class="wf-block-list"> |
| 9 | <li> |
| 10 | <?php |
| 11 | echo wfView::create('blocking/blocking-status', array( |
| 12 | ))->render(); |
| 13 | ?> |
| 14 | </li> |
| 15 | </ul> |
| 16 | </div> |
| 17 | </div> |
| 18 | </div> |
| 19 | </div> |
| 20 | <div class="wf-row"> |
| 21 | <div class="wf-col-xs-12"> |
| 22 | <div class="wf-block wf-always-active"> |
| 23 | <?php if (!wfConfig::get('firewallEnabled')): ?> |
| 24 | <ul class="wf-block-banner"> |
| 25 | <li><?php _e('<strong>Note:</strong> Blocking is disabled when the option "Enable Rate Limiting and Advanced Blocking" is off.', 'wordfence'); ?></li> |
| 26 | <li><a href="#" class="wf-btn wf-btn-default" id="wf-blocking-enable"><?php _e('Turn On', 'wordfence'); ?></a></li> |
| 27 | </ul> |
| 28 | <?php endif; ?> |
| 29 | <?php if (version_compare(phpversion(), '5.4') < 0 && wfConfig::get('isPaid') && wfBlock::hasCountryBlock()): ?> |
| 30 | <ul class="wf-block-banner"> |
| 31 | <li><?php printf(__('<strong>Note:</strong> The GeoIP database that is required for country blocking has been updated to a new format. This new format requires sites to run PHP 5.4 or newer, and this site is on PHP %s. To ensure country blocking continues functioning, please update PHP.', 'wordfence'), wfUtils::cleanPHPVersion()); ?></li> |
| 32 | <li><a href="<?php echo wfSupportController::esc_supportURL(wfSupportController::ITEM_SCAN_RESULT_GEOIP_UPDATE); ?>" class="wf-btn wf-btn-default" target="_blank" rel="noopener noreferrer"><?php _e('More Information', 'wordfence'); ?></a></li> |
| 33 | </ul> |
| 34 | <?php endif; ?> |
| 35 | <div class="wf-block-header"> |
| 36 | <div class="wf-block-header-content"> |
| 37 | <div class="wf-block-title"> |
| 38 | <strong id="wf-block-parameters-title" data-new-title="<?php esc_attr_e('Create a Blocking Rule', 'wordfence'); ?>" data-edit-title="<?php esc_attr_e('Edit Blocking Rule', 'wordfence'); ?>"><?php _e('Create a Blocking Rule', 'wordfence'); ?></strong> |
| 39 | </div> |
| 40 | </div> |
| 41 | </div> |
| 42 | <div class="wf-block-content"> |
| 43 | <?php |
| 44 | echo wfView::create('blocking/blocking-create', array( |
| 45 | ))->render(); |
| 46 | ?> |
| 47 | </div> |
| 48 | </div> |
| 49 | </div> |
| 50 | </div> <!-- end firewall status --> |
| 51 | <?php |
| 52 | echo wfView::create('blocking/block-list', array( |
| 53 | ))->render(); |
| 54 | ?> |
| 55 | <div id="wf-overlay-wrapper" style="display: none"> |
| 56 | <div class="wf-overlay"> |
| 57 | <div class="wf-overlay-header"></div> |
| 58 | <div class="wf-overlay-body"></div> |
| 59 | <span class="wf-overlay-close wf-ion-android-close"></span> |
| 60 | </div> |
| 61 | </div> |
| 62 | <script type="application/javascript"> |
| 63 | (function($) { |
| 64 | $(function() { |
| 65 | $('#wf-blocking-enable').on('click', function(e) { |
| 66 | e.preventDefault(); |
| 67 | e.stopPropagation(); |
| 68 | |
| 69 | WFAD.setOption('firewallEnabled', 1, function() { |
| 70 | window.location.reload(true); |
| 71 | }); |
| 72 | }); |
| 73 | }); |
| 74 | })(jQuery); |
| 75 | </script> |
| 76 | <?php if (wfOnboardingController::willShowNewTour(wfOnboardingController::TOUR_BLOCKING)): ?> |
| 77 | <script type="application/javascript"> |
| 78 | (function($) { |
| 79 | $(function() { |
| 80 | WFAD.setUpBlockingTour = function() { |
| 81 | WFAD.tour1 = function () { |
| 82 | WFAD.tour('wfBlockingNewTour1', 'wf-section-blocking', 'top', 'left', null, WFAD.tour2); |
| 83 | }; |
| 84 | WFAD.tour2 = function () { |
| 85 | WFAD.tour('wfBlockingNewTour2', 'wf-create-block', 'top', 'top', WFAD.tour1, WFAD.tour3); |
| 86 | }; |
| 87 | WFAD.tour3 = function () { |
| 88 | WFAD.tour('wfBlockingNewTour3', 'wf-blocks-wrapper', 'bottom', 'bottom', WFAD.tour2, WFAD.tourComplete); |
| 89 | }; |
| 90 | WFAD.tourComplete = function () { |
| 91 | WFAD.tourFinish('<?php echo esc_attr(wfOnboardingController::TOUR_BLOCKING); ?>'); |
| 92 | }; |
| 93 | } |
| 94 | |
| 95 | WFAD.blockingTourShown = false; |
| 96 | <?php if (wfOnboardingController::shouldShowNewTour(wfOnboardingController::TOUR_BLOCKING)): ?> |
| 97 | $(window).on('wfTabChange', function(e, tab) { |
| 98 | if (tab == 'blocking' && !WFAD.blockingTourShown) { |
| 99 | WFAD.blockingTourShown = true; |
| 100 | WFAD.setUpBlockingTour(); |
| 101 | if (!WFAD.isSmallScreen) { WFAD.tour1(); } |
| 102 | } |
| 103 | }); |
| 104 | |
| 105 | if ($('#blocking').hasClass('wf-active')) { |
| 106 | WFAD.blockingTourShown = true; |
| 107 | WFAD.setUpBlockingTour(); |
| 108 | if (!WFAD.isSmallScreen) { WFAD.tour1(); } |
| 109 | } |
| 110 | <?php endif; ?> |
| 111 | }); |
| 112 | })(jQuery); |
| 113 | </script> |
| 114 | |
| 115 | <script type="text/x-jquery-template" id="wfBlockingNewTour1"> |
| 116 | <div> |
| 117 | <h3><?php _e('Blocking', 'wordfence'); ?></h3> |
| 118 | <p><?php _e('Wordfence lets you take control of protecting your site with powerful blocking features. Block traffic based on IP, IP range, hostname, browser, or referrer. Country blocking is available for Premium customers.', 'wordfence'); ?></p> |
| 119 | <div class="wf-pointer-footer"> |
| 120 | <ul class="wf-tour-pagination"> |
| 121 | <li class="wf-active">•</li> |
| 122 | <li>•</li> |
| 123 | <li>•</li> |
| 124 | </ul> |
| 125 | <div id="wf-tour-continue"><a href="#" class="wf-onboarding-btn wf-onboarding-btn-primary"><?php _e('Next', 'wordfence'); ?></a></div> |
| 126 | </div> |
| 127 | <div id="wf-tour-close"><a href="#"><i class="wf-fa wf-fa-times-circle" aria-hidden="true"></i></a></div> |
| 128 | </div> |
| 129 | </script> |
| 130 | <script type="text/x-jquery-template" id="wfBlockingNewTour2"> |
| 131 | <div> |
| 132 | <h3><?php _e('Blocking Builder', 'wordfence'); ?></h3> |
| 133 | <p><?php _e('All of your blocking rules are in one central location. Choose the Block Type, then enter the details for the rule. Once it has been added, you\'ll see it saved as a rule for your site.', 'wordfence'); ?></p> |
| 134 | <div class="wf-pointer-footer"> |
| 135 | <ul class="wf-tour-pagination"> |
| 136 | <li>•</li> |
| 137 | <li class="wf-active">•</li> |
| 138 | <li>•</li> |
| 139 | </ul> |
| 140 | <div id="wf-tour-previous"><a href="#" class="wf-onboarding-btn wf-onboarding-btn-default"><?php _e('Previous', 'wordfence'); ?></a></div> |
| 141 | <div id="wf-tour-continue"><a href="#" class="wf-onboarding-btn wf-onboarding-btn-primary"><?php _e('Next', 'wordfence'); ?></a></div> |
| 142 | </div> |
| 143 | <div id="wf-tour-close"><a href="#"><i class="wf-fa wf-fa-times-circle" aria-hidden="true"></i></a></div> |
| 144 | </div> |
| 145 | </script> |
| 146 | <script type="text/x-jquery-template" id="wfBlockingNewTour3"> |
| 147 | <div> |
| 148 | <h3><?php _e('Manage Blocking Rules', 'wordfence'); ?></h3> |
| 149 | <p><?php _e('Here\'s where you\'ll see all the blocking rules you\'ve created. You can also manage them as well as remove or modify them from this table.', 'wordfence'); ?></p> |
| 150 | <div class="wf-pointer-footer"> |
| 151 | <ul class="wf-tour-pagination"> |
| 152 | <li>•</li> |
| 153 | <li>•</li> |
| 154 | <li class="wf-active">•</li> |
| 155 | </ul> |
| 156 | <div id="wf-tour-previous"><a href="#" class="wf-onboarding-btn wf-onboarding-btn-default"><?php _e('Previous', 'wordfence'); ?></a></div> |
| 157 | <div id="wf-tour-continue"><a href="#" class="wf-onboarding-btn wf-onboarding-btn-primary"><?php _e('Got it', 'wordfence'); ?></a></div> |
| 158 | </div> |
| 159 | <div id="wf-tour-close"><a href="#"><i class="wf-fa wf-fa-times-circle" aria-hidden="true"></i></a></div> |
| 160 | </div> |
| 161 | </script> |
| 162 | <?php endif; ?> |
| 163 | |
| 164 | <?php if (wfOnboardingController::willShowUpgradeTour(wfOnboardingController::TOUR_BLOCKING)): ?> |
| 165 | <script type="application/javascript"> |
| 166 | (function($) { |
| 167 | $(function() { |
| 168 | WFAD.setUpBlockingTour = function() { |
| 169 | WFAD.tour1 = function () { |
| 170 | WFAD.tour('wfBlockingUpgradeTour1', 'wf-create-block', 'top', 'top', null, WFAD.tour2); |
| 171 | }; |
| 172 | WFAD.tour2 = function () { |
| 173 | WFAD.tour('wfBlockingUpgradeTour2', 'wf-blocks-wrapper', 'bottom', 'bottom', WFAD.tour1, WFAD.tourComplete); |
| 174 | }; |
| 175 | WFAD.tourComplete = function () { |
| 176 | WFAD.tourFinish('<?php echo esc_attr(wfOnboardingController::TOUR_BLOCKING); ?>'); |
| 177 | }; |
| 178 | }; |
| 179 | |
| 180 | WFAD.blockingTourShown = false; |
| 181 | <?php if (wfOnboardingController::shouldShowUpgradeTour(wfOnboardingController::TOUR_BLOCKING)): ?> |
| 182 | $(window).on('wfTabChange', function(e, tab) { |
| 183 | if (tab == 'blocking' && !WFAD.blockingTourShown) { |
| 184 | WFAD.blockingTourShown = true; |
| 185 | WFAD.setUpBlockingTour(); |
| 186 | if (!WFAD.isSmallScreen) { WFAD.tour1(); } |
| 187 | } |
| 188 | }); |
| 189 | |
| 190 | if ($('#blocking').hasClass('wf-active')) { |
| 191 | WFAD.blockingTourShown = true; |
| 192 | WFAD.setUpBlockingTour(); |
| 193 | if (!WFAD.isSmallScreen) { WFAD.tour1(); } |
| 194 | } |
| 195 | <?php endif; ?> |
| 196 | }); |
| 197 | })(jQuery); |
| 198 | </script> |
| 199 | |
| 200 | <script type="text/x-jquery-template" id="wfBlockingUpgradeTour1"> |
| 201 | <div> |
| 202 | <h3><?php _e('Blocking Builder', 'wordfence'); ?></h3> |
| 203 | <p><?php _e('All of the blocking rules you create are now in one central location. Simply choose the block type and enter the details for the rule you want to create. Premium users have access to advanced country blocking options, found via the <strong>Options</strong> link.', 'wordfence'); ?></p> |
| 204 | <div class="wf-pointer-footer"> |
| 205 | <ul class="wf-tour-pagination"> |
| 206 | <li class="wf-active">•</li> |
| 207 | <li>•</li> |
| 208 | </ul> |
| 209 | <div id="wf-tour-continue"><a href="#" class="wf-onboarding-btn wf-onboarding-btn-primary"><?php _e('Next', 'wordfence'); ?></a></div> |
| 210 | </div> |
| 211 | <div id="wf-tour-close"><a href="#"><i class="wf-fa wf-fa-times-circle" aria-hidden="true"></i></a></div> |
| 212 | </div> |
| 213 | </script> |
| 214 | <script type="text/x-jquery-template" id="wfBlockingUpgradeTour2"> |
| 215 | <div> |
| 216 | <h3><?php _e('Manage Blocking Rules', 'wordfence'); ?></h3> |
| 217 | <p><?php _e('All blocking rules you create will show here. You can manage them as well as remove or modify them from the same location.', 'wordfence'); ?></p> |
| 218 | <div class="wf-pointer-footer"> |
| 219 | <ul class="wf-tour-pagination"> |
| 220 | <li>•</li> |
| 221 | <li class="wf-active">•</li> |
| 222 | </ul> |
| 223 | <div id="wf-tour-previous"><a href="#" class="wf-onboarding-btn wf-onboarding-btn-default"><?php _e('Previous', 'wordfence'); ?></a></div> |
| 224 | <div id="wf-tour-continue"><a href="#" class="wf-onboarding-btn wf-onboarding-btn-primary"><?php _e('Got it', 'wordfence'); ?></a></div> |
| 225 | </div> |
| 226 | <div id="wf-tour-close"><a href="#"><i class="wf-fa wf-fa-times-circle" aria-hidden="true"></i></a></div> |
| 227 | </div> |
| 228 | </script> |
| 229 | <?php endif; ?> |
| 230 |