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
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
8 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
8 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
8 years ago
menu_tools_whois.php
8 years ago
menu_wordfence_central.php
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
8 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
8 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
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
8 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_waf.php
360 lines
| 1 | <?php |
| 2 | if (!defined('WORDFENCE_VERSION')) { exit; } |
| 3 | $waf = wfWAF::getInstance(); |
| 4 | $d = new wfDashboard(); unset($d->countriesNetwork); |
| 5 | $firewall = new wfFirewall(); |
| 6 | $config = $waf->getStorageEngine(); |
| 7 | $wafConfigURL = network_admin_url('admin.php?page=WordfenceWAF&subpage=waf_options#configureAutoPrepend'); |
| 8 | $wafRemoveURL = network_admin_url('admin.php?page=WordfenceWAF&subpage=waf_options#removeAutoPrepend'); |
| 9 | /** @var array $wafData */ |
| 10 | ?> |
| 11 | |
| 12 | <div class="wf-row"> |
| 13 | <div class="wf-col-xs-12"> |
| 14 | <div class="wf-block wf-active"> |
| 15 | <div class="wf-block-content"> |
| 16 | <ul class="wf-block-list"> |
| 17 | <li> |
| 18 | <?php |
| 19 | echo wfView::create('waf/firewall-status', array( |
| 20 | 'firewall' => $firewall, |
| 21 | 'dashboard' => $d, |
| 22 | ))->render(); |
| 23 | ?> |
| 24 | </li> |
| 25 | <li> |
| 26 | <ul class="wf-block-list wf-block-list-horizontal wf-block-list-nowrap wf-waf-coverage"> |
| 27 | <li> |
| 28 | <?php |
| 29 | if (function_exists('network_admin_url') && is_multisite()) { $optionsURL = network_admin_url('admin.php?page=WordfenceWAF&subpage=waf_options'); } |
| 30 | else { $optionsURL = admin_url('admin.php?page=WordfenceWAF&subpage=waf_options'); } |
| 31 | echo wfView::create('common/status-detail', array( |
| 32 | 'id' => 'waf-coverage', |
| 33 | 'percentage' => $firewall->wafStatus(), |
| 34 | 'activeColor' => ($firewall->firewallMode() == wfFirewall::FIREWALL_MODE_LEARNING ? '#ececec' : null /* automatic */), |
| 35 | 'title' => __('Web Application Firewall', 'wordfence'), |
| 36 | 'subtitle' => ($firewall->firewallMode() == wfFirewall::FIREWALL_MODE_LEARNING ? __('Currently in Learning Mode', 'wordfence') : __('Stops Complex Attacks', 'wordfence')), |
| 37 | 'link' => $optionsURL, |
| 38 | 'linkLabel' => __('Manage WAF', 'wordfence'), |
| 39 | 'statusTitle' => __('Web Application Firewall Status', 'wordfence'), |
| 40 | 'statusList' => $firewall->wafStatusList(), |
| 41 | 'statusExtra' => ($firewall->firewallMode() == wfFirewall::FIREWALL_MODE_LEARNING ? wfView::create('waf/status-tooltip-learning-mode')->render() : ''), |
| 42 | 'helpLink' => __('https://www.wordfence.com/help/firewall/#firewall-status', 'wordfence'), |
| 43 | ))->render(); |
| 44 | ?> |
| 45 | </li> |
| 46 | <li> |
| 47 | <?php |
| 48 | echo wfView::create('common/status-detail', array( |
| 49 | 'id' => 'waf-rules', |
| 50 | 'percentage' => $firewall->ruleStatus(), |
| 51 | 'activeColor' => ($firewall->firewallMode() == wfFirewall::FIREWALL_MODE_LEARNING ? '#ececec' : null /* automatic */), |
| 52 | 'title' => __('Firewall Rules: ', 'wordfence') . ($firewall->ruleMode() == wfFirewall::RULE_MODE_PREMIUM ? __('Premium', 'wordfence') : __('Community', 'wordfence')), |
| 53 | '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'))), |
| 54 | 'link' => ($firewall->ruleMode() == wfFirewall::RULE_MODE_PREMIUM ? $optionsURL . '#waf-options-advanced' : 'https://www.wordfence.com/gnl1wafUpgrade/wordfence-signup/'), |
| 55 | 'linkLabel' => ($firewall->ruleMode() == wfFirewall::RULE_MODE_PREMIUM ? __('Manage Firewall Rules', 'wordfence') : __('Upgrade to Premium', 'wordfence')), |
| 56 | 'linkNewWindow' => ($firewall->ruleMode() != wfFirewall::RULE_MODE_PREMIUM), |
| 57 | 'statusTitle' => __('Firewall Rules Status', 'wordfence'), |
| 58 | 'statusList' => $firewall->wafStatusList('rules'), |
| 59 | 'statusExtra' => ($firewall->firewallMode() == wfFirewall::FIREWALL_MODE_LEARNING ? wfView::create('waf/status-tooltip-learning-mode')->render() : ''), |
| 60 | 'helpLink' => __('https://www.wordfence.com/help/firewall/#firewall-status', 'wordfence'), |
| 61 | ))->render(); |
| 62 | ?> |
| 63 | </li> |
| 64 | <li> |
| 65 | <?php |
| 66 | echo wfView::create('common/status-detail', array( |
| 67 | 'id' => 'waf-blacklist', |
| 68 | 'percentage' => $firewall->blacklistStatus(), |
| 69 | 'title' => __('Real-Time IP Blacklist: ', 'wordfence') . ($firewall->blacklistMode() == wfFirewall::BLACKLIST_MODE_ENABLED ? __('Enabled', 'wordfence') : __('Disabled', 'wordfence')), |
| 70 | 'subtitle' => __('Blocks requests from known malicious IPs', 'wordfence'), |
| 71 | 'link' => (($firewall->ruleMode() == wfFirewall::RULE_MODE_PREMIUM) ? network_admin_url('admin.php?page=WordfenceWAF&subpage=waf_options') : 'https://www.wordfence.com/gnl1wafUpgrade/wordfence-signup/'), |
| 72 | 'linkLabel' => $firewall->firewallMode() == wfFirewall::FIREWALL_MODE_DISABLED ? null : ($firewall->ruleMode() == wfFirewall::RULE_MODE_PREMIUM ? ($firewall->blacklistMode() == wfFirewall::BLACKLIST_MODE_ENABLED ? __('Manage Real-Time IP Blacklist', 'wordfence') : ($firewall->isSubDirectoryInstallation() ? null : __('Enable', 'wordfence'))) : __('Upgrade to Premium', 'wordfence')), |
| 73 | 'linkNewWindow' => ($firewall->ruleMode() != wfFirewall::RULE_MODE_PREMIUM), |
| 74 | 'statusTitle' => __('Blacklist Status', 'wordfence'), |
| 75 | 'statusList' => $firewall->wafStatusList('blacklist'), |
| 76 | 'helpLink' => __('https://www.wordfence.com/help/firewall/#firewall-status', 'wordfence'), |
| 77 | ))->render(); |
| 78 | |
| 79 | if ($firewall->ruleMode() == wfFirewall::RULE_MODE_PREMIUM && $firewall->blacklistMode() == wfFirewall::BLACKLIST_MODE_DISABLED): |
| 80 | ?> |
| 81 | <script type="application/javascript"> |
| 82 | (function($) { |
| 83 | $(function() { |
| 84 | $('#waf-blacklist a').on('click', function(e) { |
| 85 | e.preventDefault(); |
| 86 | e.stopPropagation(); |
| 87 | |
| 88 | WFAD.setOption('disableWAFBlacklistBlocking', 0, function() { |
| 89 | window.location.reload(true); |
| 90 | }); |
| 91 | }); |
| 92 | }); |
| 93 | })(jQuery); |
| 94 | </script> |
| 95 | <?php endif; ?> |
| 96 | </li> |
| 97 | <li> |
| 98 | <?php |
| 99 | echo wfView::create('common/status-detail', array( |
| 100 | 'id' => 'waf-brute', |
| 101 | 'percentage' => $firewall->bruteForceStatus(), |
| 102 | 'title' => __('Brute Force Protection', 'wordfence') . ($firewall->bruteForceStatus() == 0 ? __(': Disabled', 'wordfence') : ''), |
| 103 | 'subtitle' => __('Stops Password Guessing Attacks', 'wordfence'), |
| 104 | 'link' => network_admin_url('admin.php?page=WordfenceWAF&subpage=waf_options#waf-options-bruteforce'), |
| 105 | 'linkLabel' => __('Manage Brute Force Protection', 'wordfence'), |
| 106 | 'statusTitle' => __('Brute Force Protection Status', 'wordfence'), |
| 107 | 'statusList' => $firewall->bruteForceStatusList(), |
| 108 | 'helpLink' => __('https://www.wordfence.com/help/firewall/#firewall-status', 'wordfence'), |
| 109 | ))->render(); |
| 110 | ?> |
| 111 | </li> |
| 112 | </ul> |
| 113 | </li> |
| 114 | </ul> |
| 115 | </div> |
| 116 | </div> |
| 117 | </div> |
| 118 | </div> |
| 119 | <div class="wf-row"> |
| 120 | <div class="wf-col-xs-12"> |
| 121 | <div class="wf-block wf-active"> |
| 122 | <div class="wf-block-content"> |
| 123 | <ul class="wf-block-list"> |
| 124 | <li> |
| 125 | <ul class="wf-block-list wf-block-list-horizontal wf-waf-navigation"> |
| 126 | <li> |
| 127 | <?php |
| 128 | echo wfView::create('common/block-navigation-option', array( |
| 129 | 'id' => 'waf-option-rate-limiting', |
| 130 | 'img' => 'ratelimiting.svg', |
| 131 | 'title' => __('Rate Limiting', 'wordfence'), |
| 132 | 'subtitle' => __('Block crawlers that are using too many resources or stealing content', 'wordfence'), |
| 133 | 'link' => network_admin_url('admin.php?page=WordfenceWAF&subpage=waf_options#waf-options-ratelimiting'), |
| 134 | ))->render(); |
| 135 | ?> |
| 136 | </li> |
| 137 | <li> |
| 138 | <?php |
| 139 | echo wfView::create('common/block-navigation-option', array( |
| 140 | 'id' => 'waf-option-blocking', |
| 141 | 'img' => 'blocking.svg', |
| 142 | 'title' => __('Blocking', 'wordfence'), |
| 143 | 'subtitle' => __('Block traffic by country, IP, IP range, user agent, referrer, or hostname', 'wordfence'), |
| 144 | 'link' => '#top#blocking', |
| 145 | ))->render(); |
| 146 | ?> |
| 147 | </li> |
| 148 | </ul> |
| 149 | </li> |
| 150 | <li> |
| 151 | <ul class="wf-block-list wf-block-list-horizontal wf-waf-navigation"> |
| 152 | <li> |
| 153 | <?php |
| 154 | echo wfView::create('common/block-navigation-option', array( |
| 155 | 'id' => 'waf-option-support', |
| 156 | 'img' => 'support.svg', |
| 157 | 'title' => __('Help', 'wordfence'), |
| 158 | 'subtitle' => __('Find the documentation and help you need', 'wordfence'), |
| 159 | 'link' => network_admin_url('admin.php?page=WordfenceSupport'), |
| 160 | ))->render(); |
| 161 | ?> |
| 162 | </li> |
| 163 | <li> |
| 164 | <?php |
| 165 | echo wfView::create('common/block-navigation-option', array( |
| 166 | 'id' => 'waf-option-all-options', |
| 167 | 'img' => 'options.svg', |
| 168 | 'title' => __('All Firewall Options', 'wordfence'), |
| 169 | 'subtitle' => __('Manage global and advanced firewall options', 'wordfence'), |
| 170 | 'link' => network_admin_url('admin.php?page=WordfenceWAF&subpage=waf_options'), |
| 171 | ))->render(); |
| 172 | ?> |
| 173 | </li> |
| 174 | </ul> |
| 175 | </li> |
| 176 | </ul> |
| 177 | </div> |
| 178 | </div> |
| 179 | </div> |
| 180 | </div> |
| 181 | <div class="wf-row"> |
| 182 | <div class="wf-col-xs-12 wf-col-lg-6 wf-col-lg-half-padding-right"> |
| 183 | <!-- begin top ips blocked --> |
| 184 | <?php include(dirname(__FILE__) . '/dashboard/widget_ips.php'); ?> |
| 185 | <!-- end top ips blocked --> |
| 186 | <!-- begin countries blocked --> |
| 187 | <?php include(dirname(__FILE__) . '/dashboard/widget_countries.php'); ?> |
| 188 | <!-- end countries blocked --> |
| 189 | </div> <!-- end content block --> |
| 190 | <div class="wf-col-xs-12 wf-col-lg-6 wf-col-lg-half-padding-left"> |
| 191 | <!-- begin firewall summary site --> |
| 192 | <?php include(dirname(__FILE__) . '/dashboard/widget_localattacks.php'); ?> |
| 193 | <!-- end firewall summary site --> |
| 194 | <!-- begin total attacks blocked network --> |
| 195 | <?php include(dirname(__FILE__) . '/dashboard/widget_networkattacks.php'); ?> |
| 196 | <!-- end total attacks blocked network --> |
| 197 | <!-- begin recent logins --> |
| 198 | <?php include(dirname(__FILE__) . '/dashboard/widget_logins.php'); ?> |
| 199 | <!-- end recent logins --> |
| 200 | </div> <!-- end content block --> |
| 201 | </div> <!-- end row --> |
| 202 | <?php if (wfOnboardingController::willShowNewTour(wfOnboardingController::TOUR_FIREWALL)): ?> |
| 203 | <script type="application/javascript"> |
| 204 | (function($) { |
| 205 | $(function() { |
| 206 | WFAD.setUpFirewallTour = function() { |
| 207 | WFAD.tour1 = function () { |
| 208 | WFAD.tour('wfWAFNewTour1', 'wf-section-firewall', 'top', 'left', null, WFAD.tour2); |
| 209 | }; |
| 210 | WFAD.tour2 = function () { |
| 211 | WFAD.tour('wfWAFNewTour2', 'waf-coverage', 'top', 'left', WFAD.tour1, WFAD.tour3); |
| 212 | }; |
| 213 | WFAD.tour3 = function () { |
| 214 | WFAD.tour('wfWAFNewTour3', 'waf-brute', 'right', 'right', WFAD.tour2, WFAD.tour4); |
| 215 | }; |
| 216 | WFAD.tour4 = function () { |
| 217 | WFAD.tour('wfWAFNewTour4', 'waf-option-all-options', 'right', 'right', WFAD.tour3, WFAD.tourComplete); |
| 218 | }; |
| 219 | WFAD.tourComplete = function () { |
| 220 | WFAD.tourFinish('<?php echo esc_attr(wfOnboardingController::TOUR_FIREWALL); ?>'); |
| 221 | }; |
| 222 | }; |
| 223 | |
| 224 | WFAD.wafTourShown = false; |
| 225 | <?php if (wfOnboardingController::shouldShowNewTour(wfOnboardingController::TOUR_FIREWALL)): ?> |
| 226 | $(window).on('wfTabChange', function(e, tab) { |
| 227 | if (tab == 'waf' && !WFAD.wafTourShown) { |
| 228 | WFAD.wafTourShown = true; |
| 229 | WFAD.setUpFirewallTour(); |
| 230 | if (!WFAD.isSmallScreen) { WFAD.tour1(); } |
| 231 | } |
| 232 | }); |
| 233 | |
| 234 | if ($('#waf').hasClass('wf-active')) { |
| 235 | WFAD.wafTourShown = true; |
| 236 | WFAD.setUpFirewallTour(); |
| 237 | if (!WFAD.isSmallScreen) { WFAD.tour1(); } |
| 238 | } |
| 239 | <?php endif; ?> |
| 240 | }); |
| 241 | })(jQuery); |
| 242 | </script> |
| 243 | |
| 244 | <script type="text/x-jquery-template" id="wfWAFNewTour1"> |
| 245 | <div> |
| 246 | <h3><?php _e('The Wordfence firewall protects your sites from attackers', 'wordfence'); ?></h3> |
| 247 | <p><?php _e('This is where you can monitor the work Wordfence is doing to protect your site and also where you can manage the options to optimize the firewall\'s configuration.', 'wordfence'); ?></p> |
| 248 | <div class="wf-pointer-footer"> |
| 249 | <ul class="wf-tour-pagination"> |
| 250 | <li class="wf-active">•</li> |
| 251 | <li>•</li> |
| 252 | <li>•</li> |
| 253 | <li>•</li> |
| 254 | </ul> |
| 255 | <div id="wf-tour-continue"><a href="#" class="wf-onboarding-btn wf-onboarding-btn-primary"><?php _e('Next', 'wordfence'); ?></a></div> |
| 256 | </div> |
| 257 | <div id="wf-tour-close"><a href="#"><i class="wf-fa wf-fa-times-circle" aria-hidden="true"></i></a></div> |
| 258 | </div> |
| 259 | </script> |
| 260 | <script type="text/x-jquery-template" id="wfWAFNewTour2"> |
| 261 | <div> |
| 262 | <h3><?php _e('Web Application Firewall (WAF)', 'wordfence'); ?></h3> |
| 263 | <p><?php _e('The Wordfence Web Application Firewall blocks known and emerging attacks using firewall rules. When you first install the WAF, it will be in learning mode. This allows Wordfence to learn about your site so that we can understand how to protect it and how to allow normal visitors through the firewall. We recommend you let Wordfence learn for a week before you enable the firewall.', 'wordfence'); ?></p> |
| 264 | <div class="wf-pointer-footer"> |
| 265 | <ul class="wf-tour-pagination"> |
| 266 | <li>•</li> |
| 267 | <li class="wf-active">•</li> |
| 268 | <li>•</li> |
| 269 | <li>•</li> |
| 270 | </ul> |
| 271 | <div id="wf-tour-previous"><a href="#" class="wf-onboarding-btn wf-onboarding-btn-default"><?php _e('Previous', 'wordfence'); ?></a></div> |
| 272 | <div id="wf-tour-continue"><a href="#" class="wf-onboarding-btn wf-onboarding-btn-primary"><?php _e('Next', 'wordfence'); ?></a></div> |
| 273 | </div> |
| 274 | <div id="wf-tour-close"><a href="#"><i class="wf-fa wf-fa-times-circle" aria-hidden="true"></i></a></div> |
| 275 | </div> |
| 276 | </script> |
| 277 | <script type="text/x-jquery-template" id="wfWAFNewTour3"> |
| 278 | <div> |
| 279 | <h3><?php _e('Brute Force Protection', 'wordfence'); ?></h3> |
| 280 | <p><?php _e('Wordfence protects your site from password-guessing attacks by locking out attackers and helping you avoid weak passwords.', 'wordfence'); ?></p> |
| 281 | <div class="wf-pointer-footer"> |
| 282 | <ul class="wf-tour-pagination"> |
| 283 | <li>•</li> |
| 284 | <li>•</li> |
| 285 | <li class="wf-active">•</li> |
| 286 | <li>•</li> |
| 287 | </ul> |
| 288 | <div id="wf-tour-previous"><a href="#" class="wf-onboarding-btn wf-onboarding-btn-default"><?php _e('Previous', 'wordfence'); ?></a></div> |
| 289 | <div id="wf-tour-continue"><a href="#" class="wf-onboarding-btn wf-onboarding-btn-primary"><?php _e('Next', 'wordfence'); ?></a></div> |
| 290 | </div> |
| 291 | <div id="wf-tour-close"><a href="#"><i class="wf-fa wf-fa-times-circle" aria-hidden="true"></i></a></div> |
| 292 | </div> |
| 293 | </script> |
| 294 | <script type="text/x-jquery-template" id="wfWAFNewTour4"> |
| 295 | <div> |
| 296 | <h3><?php _e('Firewall Options', 'wordfence'); ?></h3> |
| 297 | <p class="wf-center"><svg viewBox="0 0 100.11 100.11" class="wf-icon"><path d="M99.59,41.42a2.06,2.06,0,0,0-1.37-.82L86.3,38.78a39.34,39.34,0,0,0-2.67-6.39q1.17-1.63,3.52-4.6t3.32-4.33A2.52,2.52,0,0,0,91,22a2.1,2.1,0,0,0-.46-1.43Q88.18,17.2,79.78,9.45a2.52,2.52,0,0,0-1.63-.65,2.12,2.12,0,0,0-1.57.59l-9.25,7a40.09,40.09,0,0,0-5.87-2.41L59.64,2a1.92,1.92,0,0,0-.75-1.4A2.46,2.46,0,0,0,57.29,0H42.82a2.19,2.19,0,0,0-2.34,1.82,106,106,0,0,0-1.89,12.12,37.62,37.62,0,0,0-5.93,2.48l-9-7A2.78,2.78,0,0,0,22,8.8q-1.44,0-6.16,4.66a64.88,64.88,0,0,0-6.42,7A2.75,2.75,0,0,0,8.8,22a2.44,2.44,0,0,0,.65,1.56q4.37,5.28,7,9a32.38,32.38,0,0,0-2.54,6L1.76,40.34a2,2,0,0,0-1.24.85A2.5,2.5,0,0,0,0,42.69V57.16a2.44,2.44,0,0,0,.52,1.53,2,2,0,0,0,1.37.82l11.93,1.76a31.91,31.91,0,0,0,2.67,6.45Q15.31,69.35,13,72.31T9.65,76.65a2.54,2.54,0,0,0-.07,3q2.54,3.52,10.75,11a2.25,2.25,0,0,0,1.63.71,2.35,2.35,0,0,0,1.63-.59l9.19-7a40.54,40.54,0,0,0,5.87,2.41l1.82,12a1.92,1.92,0,0,0,.75,1.4,2.45,2.45,0,0,0,1.6.55H57.29a2.2,2.2,0,0,0,2.35-1.82,107.41,107.41,0,0,0,1.89-12.12,37.19,37.19,0,0,0,5.93-2.48l9,7a3.18,3.18,0,0,0,1.69.59q1.43,0,6.13-4.62a65.86,65.86,0,0,0,6.45-7,2.16,2.16,0,0,0,.59-1.5,2.51,2.51,0,0,0-.65-1.63q-4.69-5.74-7-9a41.57,41.57,0,0,0,2.54-5.93l12.06-1.82a2,2,0,0,0,1.3-.85,2.52,2.52,0,0,0,.52-1.5V43a2.46,2.46,0,0,0-.52-1.53ZM61.85,61.86a16.08,16.08,0,0,1-11.8,4.89A16.69,16.69,0,0,1,33.37,50.06,16.69,16.69,0,0,1,50.06,33.37,16.69,16.69,0,0,1,66.74,50.06a16.08,16.08,0,0,1-4.89,11.8Zm0,0"></path></svg></p> |
| 298 | <p><?php _e('Set up the way you want the firewall to protect your site including the web application firewall, brute force protection, rate limiting, and blocking.', 'wordfence'); ?></p> |
| 299 | <div class="wf-pointer-footer"> |
| 300 | <ul class="wf-tour-pagination"> |
| 301 | <li>•</li> |
| 302 | <li>•</li> |
| 303 | <li>•</li> |
| 304 | <li class="wf-active">•</li> |
| 305 | </ul> |
| 306 | <div id="wf-tour-previous"><a href="#" class="wf-onboarding-btn wf-onboarding-btn-default"><?php _e('Previous', 'wordfence'); ?></a></div> |
| 307 | <div id="wf-tour-continue"><a href="#" class="wf-onboarding-btn wf-onboarding-btn-primary"><?php _e('Got it', 'wordfence'); ?></a></div> |
| 308 | </div> |
| 309 | <div id="wf-tour-close"><a href="#"><i class="wf-fa wf-fa-times-circle" aria-hidden="true"></i></a></div> |
| 310 | </div> |
| 311 | </script> |
| 312 | <?php endif; ?> |
| 313 | |
| 314 | <?php if (wfOnboardingController::willShowUpgradeTour(wfOnboardingController::TOUR_FIREWALL)): ?> |
| 315 | <script type="application/javascript"> |
| 316 | (function($) { |
| 317 | $(function() { |
| 318 | WFAD.setUpFirewallTour = function() { |
| 319 | WFAD.tour1 = function() { |
| 320 | WFAD.tour('wfWAFUpgradeTour1', 'waf-option-all-options', 'right', 'right', null, WFAD.tourComplete); |
| 321 | }; |
| 322 | WFAD.tourComplete = function() { WFAD.tourFinish('<?php echo esc_attr(wfOnboardingController::TOUR_FIREWALL); ?>'); }; |
| 323 | }; |
| 324 | |
| 325 | WFAD.wafTourShown = false; |
| 326 | <?php if (wfOnboardingController::shouldShowUpgradeTour(wfOnboardingController::TOUR_FIREWALL)): ?> |
| 327 | $(window).on('wfTabChange', function(e, tab) { |
| 328 | if (tab == 'waf' && !WFAD.wafTourShown) { |
| 329 | WFAD.wafTourShown = true; |
| 330 | WFAD.setUpFirewallTour(); |
| 331 | if (!WFAD.isSmallScreen) { WFAD.tour1(); } |
| 332 | } |
| 333 | }); |
| 334 | |
| 335 | if ($('#waf').hasClass('wf-active')) { |
| 336 | WFAD.wafTourShown = true; |
| 337 | WFAD.setUpFirewallTour(); |
| 338 | if (!WFAD.isSmallScreen) { WFAD.tour1(); } |
| 339 | } |
| 340 | <?php endif; ?> |
| 341 | }); |
| 342 | })(jQuery); |
| 343 | </script> |
| 344 | |
| 345 | <script type="text/x-jquery-template" id="wfWAFUpgradeTour1"> |
| 346 | <div> |
| 347 | <h3><?php _e('Firewall Options', 'wordfence'); ?></h3> |
| 348 | <p class="wf-center"><svg viewBox="0 0 100.11 100.11" class="wf-icon"><path d="M99.59,41.42a2.06,2.06,0,0,0-1.37-.82L86.3,38.78a39.34,39.34,0,0,0-2.67-6.39q1.17-1.63,3.52-4.6t3.32-4.33A2.52,2.52,0,0,0,91,22a2.1,2.1,0,0,0-.46-1.43Q88.18,17.2,79.78,9.45a2.52,2.52,0,0,0-1.63-.65,2.12,2.12,0,0,0-1.57.59l-9.25,7a40.09,40.09,0,0,0-5.87-2.41L59.64,2a1.92,1.92,0,0,0-.75-1.4A2.46,2.46,0,0,0,57.29,0H42.82a2.19,2.19,0,0,0-2.34,1.82,106,106,0,0,0-1.89,12.12,37.62,37.62,0,0,0-5.93,2.48l-9-7A2.78,2.78,0,0,0,22,8.8q-1.44,0-6.16,4.66a64.88,64.88,0,0,0-6.42,7A2.75,2.75,0,0,0,8.8,22a2.44,2.44,0,0,0,.65,1.56q4.37,5.28,7,9a32.38,32.38,0,0,0-2.54,6L1.76,40.34a2,2,0,0,0-1.24.85A2.5,2.5,0,0,0,0,42.69V57.16a2.44,2.44,0,0,0,.52,1.53,2,2,0,0,0,1.37.82l11.93,1.76a31.91,31.91,0,0,0,2.67,6.45Q15.31,69.35,13,72.31T9.65,76.65a2.54,2.54,0,0,0-.07,3q2.54,3.52,10.75,11a2.25,2.25,0,0,0,1.63.71,2.35,2.35,0,0,0,1.63-.59l9.19-7a40.54,40.54,0,0,0,5.87,2.41l1.82,12a1.92,1.92,0,0,0,.75,1.4,2.45,2.45,0,0,0,1.6.55H57.29a2.2,2.2,0,0,0,2.35-1.82,107.41,107.41,0,0,0,1.89-12.12,37.19,37.19,0,0,0,5.93-2.48l9,7a3.18,3.18,0,0,0,1.69.59q1.43,0,6.13-4.62a65.86,65.86,0,0,0,6.45-7,2.16,2.16,0,0,0,.59-1.5,2.51,2.51,0,0,0-.65-1.63q-4.69-5.74-7-9a41.57,41.57,0,0,0,2.54-5.93l12.06-1.82a2,2,0,0,0,1.3-.85,2.52,2.52,0,0,0,.52-1.5V43a2.46,2.46,0,0,0-.52-1.53ZM61.85,61.86a16.08,16.08,0,0,1-11.8,4.89A16.69,16.69,0,0,1,33.37,50.06,16.69,16.69,0,0,1,50.06,33.37,16.69,16.69,0,0,1,66.74,50.06a16.08,16.08,0,0,1-4.89,11.8Zm0,0"></path></svg></p> |
| 349 | <p><?php _e('All of the Firewall settings are now located here. This includes configuration options for the web application firewall, brute force protection, rate limiting, whitelisted URLs, and blocking.', 'wordfence'); ?></p> |
| 350 | <div class="wf-pointer-footer"> |
| 351 | <ul class="wf-tour-pagination"> |
| 352 | <li class="wf-active">•</li> |
| 353 | </ul> |
| 354 | <div id="wf-tour-continue"><a href="#" class="wf-onboarding-btn wf-onboarding-btn-primary"><?php _e('Got it', 'wordfence'); ?></a></div> |
| 355 | </div> |
| 356 | <div id="wf-tour-close"><a href="#"><i class="wf-fa wf-fa-times-circle" aria-hidden="true"></i></a></div> |
| 357 | </div> |
| 358 | </script> |
| 359 | <?php endif; ?> |
| 360 |