PluginProbe ʕ •ᴥ•ʔ
Wordfence Security – Firewall, Malware Scan, and Login Security / 8.0.5
Wordfence Security – Firewall, Malware Scan, and Login Security v8.0.5
8.2.2 8.2.1 8.2.0 3.7.1 3.7.2 3.8.1 3.8.2 3.8.3 3.8.4 3.8.5 3.8.6 3.8.7 3.8.8 3.8.9 3.9.1 4.0.1 4.0.2 4.0.3 5.0.1 5.0.2 5.0.3 5.0.4 5.0.5 5.0.6 5.0.7 5.0.8 5.0.9 5.1.1 5.1.2 5.1.4 5.1.5 5.1.6 5.1.7 5.1.8 5.1.9 5.2.1 5.2.2 5.2.3 5.2.4 5.2.5 5.2.6 5.2.7 5.2.8 5.2.9 5.3.1 5.3.10 5.3.11 5.3.12 5.3.2 5.3.3 5.3.4 5.3.5 5.3.6 5.3.7 5.3.8 5.3.9 6.0.1 6.0.10 6.0.11 6.0.12 6.0.14 6.0.15 6.0.16 6.0.17 6.0.18 6.0.19 6.0.2 6.0.20 6.0.21 6.0.22 6.0.23 6.0.24 6.0.25 6.0.3 6.0.4 6.0.5 6.0.6 6.0.7 6.0.8 6.0.9 6.1.1 6.1.10 6.1.11 6.1.12 6.1.14 6.1.15 6.1.16 6.1.17 6.1.2 6.1.3 6.1.4 6.1.5 6.1.6 6.1.7 6.1.8 6.1.9 6.2.0 6.2.1 6.2.10 6.2.2 6.2.3 6.2.4 6.2.5 6.2.6 6.2.7 6.2.8 6.2.9 6.3.0 6.3.1 6.3.10 6.3.11 6.3.12 6.3.14 6.3.15 6.3.16 6.3.17 6.3.18 6.3.19 6.3.2 6.3.20 6.3.21 6.3.22 6.3.3 6.3.4 6.3.5 6.3.6 6.3.7 6.3.8 6.3.9 7.0.1 7.0.2 7.0.3 7.0.4 7.0.5 7.1.0 7.1.1 7.1.10 7.1.11 7.1.12 7.1.14 7.1.15 7.1.16 7.1.17 7.1.18 7.1.19 7.1.2 7.1.20 7.1.3 7.1.4 7.1.5 7.1.6 7.1.7 7.1.8 7.1.9 7.10.0 7.10.1 7.10.2 7.10.3 7.10.4 7.10.5 7.10.6 7.10.7 7.11.0 7.11.1 7.11.2 7.11.3 7.11.4 7.11.5 7.11.6 7.11.7 7.2.1 7.2.2 7.2.3 7.2.4 7.2.5 7.3.1 7.3.2 7.3.3 7.3.4 7.3.5 7.3.6 7.4.0 7.4.1 7.4.10 7.4.11 7.4.12 7.4.14 7.4.2 7.4.3 trunk 7.4.4 1.1 7.4.5 1.2 7.4.6 1.3 7.4.7 1.3.1 7.4.8 1.3.2 7.4.9 1.3.3 7.5.0 1.4.2 7.5.1 1.4.3 7.5.10 1.4.4 7.5.11 1.4.5 7.5.2 1.4.6 7.5.3 1.4.7 7.5.4 1.4.8 7.5.5 1.5.1 7.5.6 1.5.2 7.5.7 1.5.3 7.5.8 1.5.4 7.5.9 1.5.5 7.6.0 1.5.6 7.6.1 2.0.1 7.6.2 2.0.2 7.7.0 2.0.3 7.7.1 2.0.5 7.8.0 2.0.6 7.8.1 2.0.7 7.8.2 2.1.0 7.9.0 2.1.1 7.9.1 2.1.2 7.9.2 2.1.3 7.9.3 2.1.4 8.0.0 2.1.5 8.0.1 3.0.2 8.0.2 3.0.3 8.0.3 3.0.4 8.0.4 3.0.5 8.0.5 3.0.6 8.1.0 3.0.7 8.1.1 3.0.8 8.1.2 3.0.9 8.1.3 3.1.0 8.1.4 3.1.1 v1.4.1 3.1.2 3.1.4 3.1.6 3.2.1 3.2.3 3.2.4 3.2.5 3.2.6 3.2.7 3.3.2 3.3.3 3.3.4 3.3.5 3.3.6 3.3.7 3.4.1 3.4.4 3.4.5 3.5.1 3.5.2 3.6.1 3.6.3 3.6.4 3.6.5 3.6.6 3.6.7 3.6.8 3.6.9
wordfence / lib / menu_firewall_waf.php
wordfence / lib Last commit date
Diff 1 year ago audit-log 1 year ago dashboard 1 year ago rest-api 1 year ago .htaccess 7 years ago Diff.php 6 years ago GeoLite2-Country.mmdb 1 year ago IPTraf.php 1 year ago IPTrafList.php 1 year ago WFLSPHP52Compatability.php 6 years ago compat.php 8 years ago diffResult.php 1 year ago email_genericAlert.php 5 years ago email_newIssues.php 3 years ago email_unlockRequest.php 5 years ago email_unsubscribeRequest.php 4 years ago flags.php 7 years ago live_activity.php 4 years ago menu_dashboard.php 3 years ago menu_dashboard_options.php 3 years ago menu_firewall.php 3 years ago menu_firewall_blocking.php 4 years ago menu_firewall_blocking_options.php 3 years ago menu_firewall_waf.php 4 years ago menu_firewall_waf_options.php 3 years ago menu_install.php 3 years ago menu_options.php 1 year ago menu_scanner.php 2 years ago menu_scanner_credentials.php 1 year ago menu_scanner_options.php 3 years ago menu_support.php 1 year ago menu_tools.php 1 year ago menu_tools_auditlog.php 1 year ago menu_tools_diagnostic.php 1 year ago menu_tools_importExport.php 4 years ago menu_tools_livetraffic.php 2 years ago menu_tools_twoFactor.php 4 years ago menu_tools_whois.php 3 years ago menu_wordfence_central.php 3 years ago noc1.key 7 years ago sodium_compat_fast.php 2 years ago sysinfo.php 1 year ago viewFullActivityLog.php 4 years ago wf503.php 2 years ago wfAPI.php 1 year ago wfActivityReport.php 2 years ago wfAdminNoticeQueue.php 4 years ago wfAlerts.php 5 years ago wfArray.php 3 years ago wfAuditLog.php 1 year ago wfBrowscap.php 3 years ago wfBrowscapCache.php 7 years ago wfBulkCountries.php 2 years ago wfCache.php 3 years ago wfCentralAPI.php 1 year ago wfConfig.php 1 year ago wfCrawl.php 2 years ago wfCredentialsController.php 2 years ago wfCrypt.php 6 years ago wfCurlInterceptor.php 3 years ago wfDB.php 1 year ago wfDashboard.php 2 years ago wfDateLocalization.php 2 years ago wfDeactivationOption.php 3 years ago wfDiagnostic.php 1 year ago wfDict.php 8 years ago wfDirectoryIterator.php 8 years ago wfFileUtils.php 2 years ago wfHelperBin.php 11 years ago wfHelperString.php 2 years ago wfIPWhitelist.php 5 years ago wfImportExportController.php 5 years ago wfInaccessibleDirectoryException.php 2 years ago wfInvalidPathException.php 3 years ago wfIpLocation.php 3 years ago wfIpLocator.php 3 years ago wfIssues.php 1 year ago wfJWT.php 7 years ago wfLicense.php 3 years ago wfLockedOut.php 2 years ago wfLog.php 1 year ago wfMD5BloomFilter.php 8 years ago wfModuleController.php 7 years ago wfNotification.php 8 years ago wfOnboardingController.php 1 year ago wfPersistenceController.php 1 year ago wfRESTAPI.php 7 years ago wfScan.php 2 years ago wfScanEngine.php 1 year ago wfScanEntrypoint.php 3 years ago wfScanFile.php 1 year ago wfScanFileLink.php 3 years ago wfScanFileListItem.php 1 year ago wfScanFileProperties.php 1 year ago wfScanMonitor.php 2 years ago wfScanPath.php 3 years ago wfSchema.php 1 year ago wfStyle.php 1 year ago wfSupportController.php 1 year ago wfUnlockMsg.php 5 years ago wfUpdateCheck.php 2 years ago wfUtils.php 1 year ago wfVersionCheckController.php 3 years ago wfVersionSupport.php 1 year ago wfView.php 5 years ago wfViewResult.php 1 year ago wfWebsite.php 3 years ago wordfenceClass.php 1 year ago wordfenceConstants.php 1 year ago wordfenceHash.php 1 year ago wordfenceScanner.php 1 year ago wordfenceURLHoover.php 2 years ago
menu_firewall_waf.php
359 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 Blocklist: ', '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 Blocklist', 'wordfence') : ($firewall->isSubDirectoryInstallation() ? null : __('Enable', 'wordfence'))) : __('Upgrade to Premium', 'wordfence')),
73 'linkNewWindow' => ($firewall->ruleMode() != wfFirewall::RULE_MODE_PREMIUM),
74 'statusTitle' => __('Blocklist 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 esc_html_e('The Wordfence firewall protects your sites from attackers', 'wordfence'); ?></h3>
247 <p><?php esc_html_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">&bullet;</li>
251 <li>&bullet;</li>
252 <li>&bullet;</li>
253 <li>&bullet;</li>
254 </ul>
255 <div id="wf-tour-continue"><a href="#" class="wf-onboarding-btn wf-onboarding-btn-primary" role="button"><?php esc_html_e('Next', 'wordfence'); ?></a></div>
256 </div>
257 <div id="wf-tour-close"><a href="#" role="button"><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 esc_html_e('Web Application Firewall (WAF)', 'wordfence'); ?></h3>
263 <p><?php esc_html_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>&bullet;</li>
267 <li class="wf-active">&bullet;</li>
268 <li>&bullet;</li>
269 <li>&bullet;</li>
270 </ul>
271 <div id="wf-tour-previous"><a href="#" class="wf-onboarding-btn wf-onboarding-btn-default" role="button"><?php esc_html_e('Previous', 'wordfence'); ?></a></div>
272 <div id="wf-tour-continue"><a href="#" class="wf-onboarding-btn wf-onboarding-btn-primary" role="button"><?php esc_html_e('Next', 'wordfence'); ?></a></div>
273 </div>
274 <div id="wf-tour-close"><a href="#" role="button"><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 esc_html_e('Brute Force Protection', 'wordfence'); ?></h3>
280 <p><?php esc_html_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>&bullet;</li>
284 <li>&bullet;</li>
285 <li class="wf-active">&bullet;</li>
286 <li>&bullet;</li>
287 </ul>
288 <div id="wf-tour-previous"><a href="#" class="wf-onboarding-btn wf-onboarding-btn-default" role="button"><?php esc_html_e('Previous', 'wordfence'); ?></a></div>
289 <div id="wf-tour-continue"><a href="#" class="wf-onboarding-btn wf-onboarding-btn-primary" role="button"><?php esc_html_e('Next', 'wordfence'); ?></a></div>
290 </div>
291 <div id="wf-tour-close"><a href="#" role="button"><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 esc_html_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 esc_html_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>&bullet;</li>
302 <li>&bullet;</li>
303 <li>&bullet;</li>
304 <li class="wf-active">&bullet;</li>
305 </ul>
306 <div id="wf-tour-previous"><a href="#" class="wf-onboarding-btn wf-onboarding-btn-default" role="button"><?php esc_html_e('Previous', 'wordfence'); ?></a></div>
307 <div id="wf-tour-continue"><a href="#" class="wf-onboarding-btn wf-onboarding-btn-primary" role="button"><?php esc_html_e('Got it', 'wordfence'); ?></a></div>
308 </div>
309 <div id="wf-tour-close"><a href="#" role="button"><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 esc_html_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 esc_html_e('All of the Firewall settings are now located here. This includes configuration options for the web application firewall, brute force protection, rate limiting, allowlisted URLs, and blocking.', 'wordfence'); ?></p>
350 <div class="wf-pointer-footer">
351 <ul class="wf-tour-pagination">
352 <li class="wf-active">&bullet;</li>
353 </ul>
354 <div id="wf-tour-continue"><a href="#" class="wf-onboarding-btn wf-onboarding-btn-primary" role="button"><?php esc_html_e('Got it', 'wordfence'); ?></a></div>
355 </div>
356 <div id="wf-tour-close"><a href="#" role="button"><i class="wf-fa wf-fa-times-circle" aria-hidden="true"></i></a></div>
357 </div>
358 </script>
359 <?php endif; ?>