IP Address Not Being Whitelisted


#1

Hello, currently I have a server (Example IP: 127.13.21.32) that running cron (running cURL script) to a sub-domain (Example: https://sub.example.com).

So currently CloudFlare (CF) detecting unusual activity and thus requesting the server to complete the security check.

Things I’ve done:

  1. Whitelist server IP and including it’s country (Example: CN)
  2. Add page rules for the sub-domain and disable everything.
  3. Global Security Level: Essentially Off

Here’s I attach the screenshot for cURL response.

Is there any steps that I missed, do advice. Thank you.


#2

Here is my example source code for the cURL

<?php

$curl = curl_init();

curl_setopt_array($curl, array(
	CURLOPT_URL => "https://sub.example.com/script/load,
	CURLOPT_RETURNTRANSFER => true,
	CURLOPT_ENCODING => "",
	CURLOPT_MAXREDIRS => 10,
	CURLOPT_TIMEOUT => 30,
	CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
	CURLOPT_CUSTOMREQUEST => "GET",
	CURLOPT_HTTPHEADER => array(
		'Content-Type: application/json',
		"Cache-Control: no-cache",
	),
));
$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
	echo "cURL Error #:" . $err;
}

var_dump($response);
var_dump($err);

#3

Try whitelisting the address you send the request from.


#4

I request using cURL from the server. Which already whitelist the server’s IP addresss.