modified file jetpack-waf
This commit is contained in:
parent
dd95c943cb
commit
db85936315
10
wp-content/jetpack-waf/bootstrap.php
Normal file
10
wp-content/jetpack-waf/bootstrap.php
Normal 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();
|
4
wp-content/jetpack-waf/rules/allow-ip.php
Normal file
4
wp-content/jetpack-waf/rules/allow-ip.php
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
<?php
|
||||||
|
$waf_allow_list = array (
|
||||||
|
);
|
||||||
|
return $waf->is_ip_in_array( $waf_allow_list );
|
1
wp-content/jetpack-waf/rules/automatic-rules.php
Normal file
1
wp-content/jetpack-waf/rules/automatic-rules.php
Normal file
@ -0,0 +1 @@
|
|||||||
|
<?php
|
4
wp-content/jetpack-waf/rules/block-ip.php
Normal file
4
wp-content/jetpack-waf/rules/block-ip.php
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
<?php
|
||||||
|
$waf_block_list = array (
|
||||||
|
);
|
||||||
|
return $waf->is_ip_in_array( $waf_block_list );
|
1
wp-content/jetpack-waf/rules/rules.php
Normal file
1
wp-content/jetpack-waf/rules/rules.php
Normal file
@ -0,0 +1 @@
|
|||||||
|
<?php
|
Loading…
Reference in New Issue
Block a user