Support » Plugin: BBQ Firewall » Block wp_remote_request from certain domains?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Jeff Starr


    Not in a reliable way unless there is a common factor in all requests that you want to block?


    Hi, thanks for your response!

    Yes, it has pattern, something like this:

    $args = array(
    			  'headers' => array(
    			    'version' => '3.1+',
    			    'auth' => md5($site_access)
    			  'timeout' => 15,
    $result = wp_remote_request($myDomain, $args);

    Clients form other sites will send access key to my website, I want to enable this request for some specific domain only.


    Plugin Author Jeff Starr


    Glad to help, it looks like you need conditional authentication based on the passed headers, which is not something that a firewall like BBQ is able to do.

    @specialk Thank you! 😉

    Plugin Author Jeff Starr


    Anytime! 🙂

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Block wp_remote_request from certain domains?’ is closed to new replies.