countriesNetwork); $firewall = new wfFirewall(); $config = $waf->getStorageEngine(); $wafConfigURL = network_admin_url('admin.php?page=WordfenceWAF&subpage=waf_options#configureAutoPrepend'); $wafRemoveURL = network_admin_url('admin.php?page=WordfenceWAF&subpage=waf_options#removeAutoPrepend'); /** @var array $wafData */ ?>
  • $firewall, 'dashboard' => $d, ))->render(); ?>
    • 'waf-coverage', 'percentage' => $firewall->wafStatus(), 'activeColor' => ($firewall->firewallMode() == wfFirewall::FIREWALL_MODE_LEARNING ? '#ececec' : null /* automatic */), 'title' => __('Web Application Firewall', 'wordfence'), 'subtitle' => ($firewall->firewallMode() == wfFirewall::FIREWALL_MODE_LEARNING ? __('Currently in Learning Mode', 'wordfence') : __('Stops Complex Attacks', 'wordfence')), 'link' => $optionsURL, 'linkLabel' => __('Manage WAF', 'wordfence'), 'statusTitle' => __('Web Application Firewall Status', 'wordfence'), 'statusList' => $firewall->wafStatusList(), 'statusExtra' => ($firewall->firewallMode() == wfFirewall::FIREWALL_MODE_LEARNING ? wfView::create('waf/status-tooltip-learning-mode')->render() : ''), 'helpLink' => __('https://www.wordfence.com/help/firewall/#firewall-status', 'wordfence'), ))->render(); ?>
    • 'waf-rules', 'percentage' => $firewall->ruleStatus(), 'activeColor' => ($firewall->firewallMode() == wfFirewall::FIREWALL_MODE_LEARNING ? '#ececec' : null /* automatic */), 'title' => __('Firewall Rules: ', 'wordfence') . ($firewall->ruleMode() == wfFirewall::RULE_MODE_PREMIUM ? __('Premium', 'wordfence') : __('Community', 'wordfence')), 'subtitle' => ($firewall->firewallMode() == wfFirewall::FIREWALL_MODE_LEARNING ? __('Currently in Learning Mode', 'wordfence') : ($firewall->ruleMode() == wfFirewall::RULE_MODE_PREMIUM ? __('Rules updated in real-time', 'wordfence') : __('Rule updates delayed by 30 days', 'wordfence'))), 'link' => ($firewall->ruleMode() == wfFirewall::RULE_MODE_PREMIUM ? $optionsURL . '#waf-options-advanced' : 'https://www.wordfence.com/gnl1wafUpgrade/wordfence-signup/'), 'linkLabel' => ($firewall->ruleMode() == wfFirewall::RULE_MODE_PREMIUM ? __('Manage Firewall Rules', 'wordfence') : __('Upgrade to Premium', 'wordfence')), 'linkNewWindow' => ($firewall->ruleMode() != wfFirewall::RULE_MODE_PREMIUM), 'statusTitle' => __('Firewall Rules Status', 'wordfence'), 'statusList' => $firewall->wafStatusList('rules'), 'statusExtra' => ($firewall->firewallMode() == wfFirewall::FIREWALL_MODE_LEARNING ? wfView::create('waf/status-tooltip-learning-mode')->render() : ''), 'helpLink' => __('https://www.wordfence.com/help/firewall/#firewall-status', 'wordfence'), ))->render(); ?>
    • 'waf-blacklist', 'percentage' => $firewall->blacklistStatus(), 'title' => __('Real-Time IP Blocklist: ', 'wordfence') . ($firewall->blacklistMode() == wfFirewall::BLACKLIST_MODE_ENABLED ? __('Enabled', 'wordfence') : __('Disabled', 'wordfence')), 'subtitle' => __('Blocks requests from known malicious IPs', 'wordfence'), 'link' => (($firewall->ruleMode() == wfFirewall::RULE_MODE_PREMIUM) ? network_admin_url('admin.php?page=WordfenceWAF&subpage=waf_options') : 'https://www.wordfence.com/gnl1wafUpgrade/wordfence-signup/'), 'linkLabel' => $firewall->firewallMode() == wfFirewall::FIREWALL_MODE_DISABLED ? null : ($firewall->ruleMode() == wfFirewall::RULE_MODE_PREMIUM ? ($firewall->blacklistMode() == wfFirewall::BLACKLIST_MODE_ENABLED ? __('Manage Real-Time IP Blocklist', 'wordfence') : ($firewall->isSubDirectoryInstallation() ? null : __('Enable', 'wordfence'))) : __('Upgrade to Premium', 'wordfence')), 'linkNewWindow' => ($firewall->ruleMode() != wfFirewall::RULE_MODE_PREMIUM), 'statusTitle' => __('Blocklist Status', 'wordfence'), 'statusList' => $firewall->wafStatusList('blacklist'), 'helpLink' => __('https://www.wordfence.com/help/firewall/#firewall-status', 'wordfence'), ))->render(); if ($firewall->ruleMode() == wfFirewall::RULE_MODE_PREMIUM && $firewall->blacklistMode() == wfFirewall::BLACKLIST_MODE_DISABLED): ?>
    • 'waf-brute', 'percentage' => $firewall->bruteForceStatus(), 'title' => __('Brute Force Protection', 'wordfence') . ($firewall->bruteForceStatus() == 0 ? __(': Disabled', 'wordfence') : ''), 'subtitle' => __('Stops Password Guessing Attacks', 'wordfence'), 'link' => network_admin_url('admin.php?page=WordfenceWAF&subpage=waf_options#waf-options-bruteforce'), 'linkLabel' => __('Manage Brute Force Protection', 'wordfence'), 'statusTitle' => __('Brute Force Protection Status', 'wordfence'), 'statusList' => $firewall->bruteForceStatusList(), 'helpLink' => __('https://www.wordfence.com/help/firewall/#firewall-status', 'wordfence'), ))->render(); ?>
    • 'waf-option-rate-limiting', 'img' => 'ratelimiting.svg', 'title' => __('Rate Limiting', 'wordfence'), 'subtitle' => __('Block crawlers that are using too many resources or stealing content', 'wordfence'), 'link' => network_admin_url('admin.php?page=WordfenceWAF&subpage=waf_options#waf-options-ratelimiting'), ))->render(); ?>
    • 'waf-option-blocking', 'img' => 'blocking.svg', 'title' => __('Blocking', 'wordfence'), 'subtitle' => __('Block traffic by country, IP, IP range, user agent, referrer, or hostname', 'wordfence'), 'link' => '#top#blocking', ))->render(); ?>
    • 'waf-option-support', 'img' => 'support.svg', 'title' => __('Help', 'wordfence'), 'subtitle' => __('Find the documentation and help you need', 'wordfence'), 'link' => network_admin_url('admin.php?page=WordfenceSupport'), ))->render(); ?>
    • 'waf-option-all-options', 'img' => 'options.svg', 'title' => __('All Firewall Options', 'wordfence'), 'subtitle' => __('Manage global and advanced firewall options', 'wordfence'), 'link' => network_admin_url('admin.php?page=WordfenceWAF&subpage=waf_options'), ))->render(); ?>