Is it possible to dynamically whitelist certain requests?
-
We’re running into an issue with WordFence where it’s blocking some of the requests made by Beaver Builder because of false positives. I know it’s possible to whitelist exceptions but that is pretty cumbersome for our users.
Is it possible for us to dynamically whitelist requests that are sent while the builder is active? I had a look at your docs and saw
wordfence::whitelistIP
. Would something like this be ok or is there a better solution?function wf_whitelist_bb() { if ( class_exists( 'wordfence' ) && FLBuilderModel::is_builder_active() ) { wordfence::whitelistIP( $_SERVER['REMOTE_ADDR'] ); } } add_action( 'init', 'wf_whitelist_bb' );
Thanks for your help!
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Is it possible to dynamically whitelist certain requests?’ is closed to new replies.