How to Block wp_remote_request() from specific domain?
-
Hi,
I make a site selling digital stuff via API key (1key).
On client site, they will send this request after enter API to my website:
$url = 'mysite.com/v/1/api-blabla'; $args = array( 'headers' => array( 'version' => '2.1+', 'auth' => md5($APIKey) ), 'timeout' => 15, ); $result = wp_remote_request($url, $args); $status = wp_remote_retrieve_response_code($result);
How can I use Ninja Firewall to Block request from some domains such as (abc.com)…
Thanks!
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘How to Block wp_remote_request() from specific domain?’ is closed to new replies.