modified file jetpack-waf

This commit is contained in:
KawaiiPunk 2024-10-09 12:47:35 +00:00 committed by Gitium
parent dd95c943cb
commit db85936315
5 changed files with 20 additions and 0 deletions

View File

@ -0,0 +1,10 @@
<?php
define( 'DISABLE_JETPACK_WAF', false );
if ( defined( 'DISABLE_JETPACK_WAF' ) && DISABLE_JETPACK_WAF ) return;
define( 'JETPACK_WAF_MODE', 'silent' );
define( 'JETPACK_WAF_SHARE_DATA', false );
define( 'JETPACK_WAF_SHARE_DEBUG_DATA', false );
define( 'JETPACK_WAF_DIR', '/app/data/wp-content/jetpack-waf' );
define( 'JETPACK_WAF_WPCONFIG', '/app/data/wp-content/../wp-config.php' );
require_once '/app/data/wp-content/plugins/jetpack-protect/vendor/autoload.php';
Automattic\Jetpack\Waf\Waf_Runner::initialize();

View File

@ -0,0 +1,4 @@
<?php
$waf_allow_list = array (
);
return $waf->is_ip_in_array( $waf_allow_list );

View File

@ -0,0 +1 @@
<?php

View File

@ -0,0 +1,4 @@
<?php
$waf_block_list = array (
);
return $waf->is_ip_in_array( $waf_block_list );

View File

@ -0,0 +1 @@
<?php