File Editor
Directories:
.. (Back)
Diff
dashboard
rest-api
Files:
Diff.php
IPTraf.php
IPTrafList.php
WFLSPHP52Compatability.php
compat.php
diffResult.php
email_genericAlert.php
email_newIssues.php
email_unlockRequest.php
email_unsubscribeRequest.php
flags.php
live_activity.php
menu_dashboard.php
menu_dashboard_options.php
menu_firewall.php
menu_firewall_blocking.php
menu_firewall_blocking_options.php
menu_firewall_waf.php
menu_firewall_waf_options.php
menu_install.php
menu_options.php
menu_scanner.php
menu_scanner_credentials.php
menu_scanner_options.php
menu_support.php
menu_tools.php
menu_tools_diagnostic.php
menu_tools_importExport.php
menu_tools_livetraffic.php
menu_tools_twoFactor.php
menu_tools_whois.php
menu_wordfence_central.php
sysinfo.php
viewFullActivityLog.php
wf503.php
wfAPI.php
wfActivityReport.php
wfAdminNoticeQueue.php
wfAlerts.php
wfArray.php
wfBrowscap.php
wfBrowscapCache.php
wfBulkCountries.php
wfCache.php
wfCentralAPI.php
wfConfig.php
wfCrawl.php
wfCredentialsController.php
wfCrypt.php
wfCurlInterceptor.php
wfDB.php
wfDashboard.php
wfDateLocalization.php
wfDeactivationOption.php
wfDiagnostic.php
wfDict.php
wfDirectoryIterator.php
wfFileUtils.php
wfHelperBin.php
wfHelperString.php
wfIPWhitelist.php
wfImportExportController.php
wfInvalidPathException.php
wfIpLocation.php
wfIpLocator.php
wfIssues.php
wfJWT.php
wfLicense.php
wfLockedOut.php
wfLog.php
wfMD5BloomFilter.php
wfModuleController.php
wfNotification.php
wfOnboardingController.php
wfPersistenceController.php
wfRESTAPI.php
wfScan.php
wfScanEngine.php
wfScanEntrypoint.php
wfScanFile.php
wfScanFileLink.php
wfScanMonitor.php
wfScanPath.php
wfSchema.php
wfStyle.php
wfSupportController.php
wfUnlockMsg.php
wfUpdateCheck.php
wfUtils.php
wfVersionCheckController.php
wfView.php
wfViewResult.php
wfWebsite.php
wordfenceClass.php
wordfenceConstants.php
wordfenceHash.php
wordfenceScanner.php
wordfenceURLHoover.php
Create New File
Create
Edit File: menu_firewall_blocking_options.php
<?php if (!defined('WORDFENCE_VERSION')) { exit; } $backPage = new wfPage(wfPage::PAGE_BLOCKING); if (isset($_GET['source']) && wfPage::isValidPage($_GET['source'])) { $backPage = new wfPage($_GET['source']); } ?> <script type="application/javascript"> (function($) { $(function() { document.title = "<?php esc_attr_e('Blocking Options', 'wordfence'); ?>" + " \u2039 " + WFAD.basePageName; //Hash-based option block linking if (window.location.hash) { var hashes = WFAD.parseHashes(); var hash = hashes[hashes.length - 1]; var block = $('.wf-block[data-persistence-key="' + hash + '"]'); if (block) { if (!block.hasClass('wf-active')) { block.find('.wf-block-content').slideDown({ always: function() { block.addClass('wf-active'); $('html, body').animate({ scrollTop: block.offset().top - 100 }, 1000); } }); WFAD.ajax('wordfence_saveDisclosureState', {name: block.data('persistenceKey'), state: true}, function() {}); } else { $('html, body').animate({ scrollTop: block.offset().top - 100 }, 1000); } history.replaceState('', document.title, window.location.pathname + window.location.search); } } }); })(jQuery); </script> <div class="wf-options-controls"> <div class="wf-row"> <div class="wf-col-xs-12"> <?php echo wfView::create('options/block-controls', array( 'backLink' => $backPage->url(), 'backLabelHTML' => wp_kses(sprintf( /* translators: Page title/label. */ __('<span class="wf-hidden-xs">Back to </span>%s', 'wordfence'), $backPage->label()), array('span'=>array('class'=>array()))), 'restoreDefaultsSection' => wfConfig::OPTIONS_TYPE_BLOCKING, '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'), ))->render(); ?> </div> </div> </div> <div class="wf-options-controls-spacer"></div> <?php if (!wfOnboardingController::shouldShowAttempt3() && wfConfig::get('touppPromptNeeded')) { echo wfView::create('gdpr/disabled-overlay')->render(); echo wfView::create('gdpr/banner')->render(); } ?> <div class="wrap wordfence"> <div class="wf-container-fluid"> <?php if (function_exists('network_admin_url') && is_multisite()) { $firewallURL = network_admin_url('admin.php?page=WordfenceWAF#top#waf'); $blockingURL = network_admin_url('admin.php?page=WordfenceWAF#top#blocking'); } else { $firewallURL = admin_url('admin.php?page=WordfenceWAF#top#waf'); $blockingURL = admin_url('admin.php?page=WordfenceWAF#top#blocking'); } ?> <div class="wf-row"> <div class="wf-col-xs-12"> <div class="wp-header-end"></div> </div> </div> <div class="wf-row"> <div class="<?php echo wfStyle::contentClasses(); ?>"> <div id="waf-options" class="wf-fixed-tab-content"> <?php echo wfView::create('common/section-title', array( 'title' => __('Blocking Options', 'wordfence'), 'helpLink' => wfSupportController::supportURL(wfSupportController::ITEM_FIREWALL_BLOCKING), 'helpLabelHTML' => wp_kses(__('Learn more<span class="wf-hidden-xs"> about Blocking</span>', 'wordfence'), array('span'=>array('class'=>array()))), 'showIcon' => true, ))->render(); ?> <div class="wf-row"> <div class="wf-col-xs-12"> <div class="wf-block wf-always-active"> <div class="wf-block-header"> <div class="wf-block-header-content"> <div class="wf-block-title"> <strong><?php esc_html_e('General', 'wordfence'); ?></strong> </div> <div class="wf-block-header-action"></div> </div> </div> <div class="wf-block-content"> <ul class="wf-block-list"> <li> <?php echo wfView::create('options/option-toggled', array( 'optionName' => 'displayTopLevelBlocking', 'enabledValue' => 1, 'disabledValue' => 0, 'value' => wfConfig::get('displayTopLevelBlocking') ? 1 : 0, 'title' => __('Display Blocking menu option', 'wordfence'), ))->render(); ?> </li> </ul> </div> </div> </div> </div> <!-- end general options --> <?php echo wfView::create('blocking/options-group-advanced-country', array( 'stateKey' => 'blocking-options-country', 'collapseable' => false, ))->render(); ?> </div> <!-- end blocking options block --> </div> <!-- end content block --> </div> <!-- end row --> </div> <!-- end container --> </div>
Save Changes
Rename File
Rename