Create New Item
Item Type
File
Folder
Item Name
Search file in folder and subfolders...
Are you sure want to rename?
primogenial
/
languages
/
wp-content-20241001222009
/
plugins
/
jetpack
/
modules
:
waf.php
Advanced Search
Upload
New Item
Settings
Back
Back Up
Advanced Editor
Save
<?php /** * Module Name: Firewall * Module Description: Protect your site with Jetpack's Web Application Firewall * Sort Order: 5 * First Introduced: 10.9 * Requires Connection: Yes * Auto Activate: No * Module Tags: Firewall, WAF * Feature: Security * * @package automattic/jetpack */ // Do not run in the WPCOM context if ( defined( 'IS_WPCOM' ) && IS_WPCOM ) { return; } // Check if killswitch is defined as true if ( defined( 'DISABLE_JETPACK_WAF' ) && DISABLE_JETPACK_WAF ) { return; } /** * Triggers when the Jetpack plugin is updated */ add_action( 'upgrader_process_complete', array( 'Automattic\Jetpack\Waf\Waf_Runner', 'update_waf' ) ); Automattic\Jetpack\Waf\Waf_Runner::initialize();