• Resolved Giang Le

    (@gianghl1983)


    Hi,

    Can we use BBQ to block wp_remote_request from certain domains to our websites?

    Thank you!

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

    (@specialk)

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

    Thread Starter Giang Le

    (@gianghl1983)

    @specialk

    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.

    Thanks!

    Plugin Author Jeff Starr

    (@specialk)

    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.

    Thread Starter Giang Le

    (@gianghl1983)

    @specialk Thank you! ??

    Plugin Author Jeff Starr

    (@specialk)

    Anytime! ??

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