Support » Plugin: Wordfence Security » 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!

    • This topic was modified 10 months, 1 week ago by  Justin Busa.
    • This topic was modified 10 months, 1 week ago by  Justin Busa.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author WFMattR

    (@wfmattr)

    Hi Justin,

    This might not work in all situations, but we can work out a better solution. Can you email us at: genbiz (at) wordfence dot com, and we can discuss the details? Please include a link to this forum post in the message. Thanks!

    -Matt R

    Justin Busa

    (@justinbusa)

    Will do, thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Is it possible to dynamically whitelist certain requests?’ is closed to new replies.