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_options.php
136 lines
| 1 | <?php |
| 2 | if (!defined('WORDFENCE_VERSION')) { exit; } |
| 3 | |
| 4 | $backPage = new wfPage(wfPage::PAGE_BLOCKING); |
| 5 | if (isset($_GET['source']) && wfPage::isValidPage($_GET['source'])) { |
| 6 | $backPage = new wfPage($_GET['source']); |
| 7 | } |
| 8 | ?> |
| 9 | <script type="application/javascript"> |
| 10 | (function($) { |
| 11 | $(function() { |
| 12 | document.title = "<?php esc_attr_e('Blocking Options', 'wordfence'); ?>" + " \u2039 " + WFAD.basePageName; |
| 13 | |
| 14 | //Hash-based option block linking |
| 15 | if (window.location.hash) { |
| 16 | var hashes = WFAD.parseHashes(); |
| 17 | var hash = hashes[hashes.length - 1]; |
| 18 | var block = $('.wf-block[data-persistence-key="' + hash + '"]'); |
| 19 | if (block) { |
| 20 | if (!block.hasClass('wf-active')) { |
| 21 | block.find('.wf-block-content').slideDown({ |
| 22 | always: function() { |
| 23 | block.addClass('wf-active'); |
| 24 | $('html, body').animate({ |
| 25 | scrollTop: block.offset().top - 100 |
| 26 | }, 1000); |
| 27 | } |
| 28 | }); |
| 29 | |
| 30 | WFAD.ajax('wordfence_saveDisclosureState', {name: block.data('persistenceKey'), state: true}, function() {}); |
| 31 | } |
| 32 | else { |
| 33 | $('html, body').animate({ |
| 34 | scrollTop: block.offset().top - 100 |
| 35 | }, 1000); |
| 36 | } |
| 37 | history.replaceState('', document.title, window.location.pathname + window.location.search); |
| 38 | } |
| 39 | } |
| 40 | }); |
| 41 | })(jQuery); |
| 42 | </script> |
| 43 | <div class="wf-options-controls"> |
| 44 | <div class="wf-row"> |
| 45 | <div class="wf-col-xs-12"> |
| 46 | <?php |
| 47 | echo wfView::create('options/block-controls', array( |
| 48 | 'backLink' => $backPage->url(), |
| 49 | 'backLabelHTML' => sprintf(__('<span class="wf-hidden-xs">Back to </span>%s', 'wordfence'), $backPage->label()), |
| 50 | 'restoreDefaultsSection' => wfConfig::OPTIONS_TYPE_BLOCKING, |
| 51 | 'restoreDefaultsMessage' => __('Are you sure you want to restore the default Blocking settings? This will undo any custom changes you have made to the options on this page. Any existing blocks will be preserved.', 'wordfence'), |
| 52 | ))->render(); |
| 53 | ?> |
| 54 | </div> |
| 55 | </div> |
| 56 | </div> |
| 57 | <div class="wf-options-controls-spacer"></div> |
| 58 | <?php |
| 59 | if (wfOnboardingController::shouldShowAttempt3()) { |
| 60 | echo wfView::create('onboarding/disabled-overlay')->render(); |
| 61 | echo wfView::create('onboarding/banner')->render(); |
| 62 | } |
| 63 | else if (wfConfig::get('touppPromptNeeded')) { |
| 64 | echo wfView::create('gdpr/disabled-overlay')->render(); |
| 65 | echo wfView::create('gdpr/banner')->render(); |
| 66 | } |
| 67 | ?> |
| 68 | <div class="wrap wordfence"> |
| 69 | <div class="wf-container-fluid"> |
| 70 | <?php |
| 71 | if (function_exists('network_admin_url') && is_multisite()) { |
| 72 | $firewallURL = network_admin_url('admin.php?page=WordfenceWAF#top#waf'); |
| 73 | $blockingURL = network_admin_url('admin.php?page=WordfenceWAF#top#blocking'); |
| 74 | } |
| 75 | else { |
| 76 | $firewallURL = admin_url('admin.php?page=WordfenceWAF#top#waf'); |
| 77 | $blockingURL = admin_url('admin.php?page=WordfenceWAF#top#blocking'); |
| 78 | } |
| 79 | ?> |
| 80 | <div class="wf-row"> |
| 81 | <div class="wf-col-xs-12"> |
| 82 | <div class="wp-header-end"></div> |
| 83 | </div> |
| 84 | </div> |
| 85 | <div class="wf-row"> |
| 86 | <div class="<?php echo wfStyle::contentClasses(); ?>"> |
| 87 | <div id="waf-options" class="wf-fixed-tab-content"> |
| 88 | <?php |
| 89 | echo wfView::create('common/section-title', array( |
| 90 | 'title' => __('Blocking Options', 'wordfence'), |
| 91 | 'helpLink' => wfSupportController::supportURL(wfSupportController::ITEM_FIREWALL_BLOCKING), |
| 92 | 'helpLabelHTML' => __('Learn more<span class="wf-hidden-xs"> about Blocking</span>', 'wordfence'), |
| 93 | 'showIcon' => true, |
| 94 | ))->render(); |
| 95 | ?> |
| 96 | <div class="wf-row"> |
| 97 | <div class="wf-col-xs-12"> |
| 98 | <div class="wf-block wf-always-active"> |
| 99 | <div class="wf-block-header"> |
| 100 | <div class="wf-block-header-content"> |
| 101 | <div class="wf-block-title"> |
| 102 | <strong><?php _e('General', 'wordfence'); ?></strong> |
| 103 | </div> |
| 104 | <div class="wf-block-header-action"></div> |
| 105 | </div> |
| 106 | </div> |
| 107 | <div class="wf-block-content"> |
| 108 | <ul class="wf-block-list"> |
| 109 | <li> |
| 110 | <?php |
| 111 | echo wfView::create('options/option-toggled', array( |
| 112 | 'optionName' => 'displayTopLevelBlocking', |
| 113 | 'enabledValue' => 1, |
| 114 | 'disabledValue' => 0, |
| 115 | 'value' => wfConfig::get('displayTopLevelBlocking') ? 1 : 0, |
| 116 | 'title' => __('Display Blocking menu option', 'wordfence'), |
| 117 | ))->render(); |
| 118 | ?> |
| 119 | </li> |
| 120 | </ul> |
| 121 | </div> |
| 122 | </div> |
| 123 | </div> |
| 124 | </div> <!-- end general options --> |
| 125 | <?php |
| 126 | echo wfView::create('blocking/options-group-advanced-country', array( |
| 127 | 'stateKey' => 'blocking-options-country', |
| 128 | 'collapseable' => false, |
| 129 | ))->render(); |
| 130 | ?> |
| 131 | </div> <!-- end blocking options block --> |
| 132 | </div> <!-- end content block --> |
| 133 | </div> <!-- end row --> |
| 134 | </div> <!-- end container --> |
| 135 | </div> |
| 136 |