how can i resolve this issue? i have a few apis, some what do readfile but Cloudflare has blocked my amazon server and detects him as a bot
i have did a curl to check what it shows and it is 100% Cloudflare sorry for my bad english
"This web property is not accessible via this address.
DDoS protection by Cloudflare
Ray ID: 6bd87ad98f6f6a66" my normal code without curl always shows me “503 service unavailable”
this is my code for anyone wondering
header("HTTP/1.0 200", "Content-Type: application/json");
$file = "http:/mysite/asset/assets/{$id}";
header("Content-Description: File Transfer");
header("Content-Type: application/octet-stream");
header("Content-Disposition: attachment; filename=\"" . basename($id) . "\"");
readfile($file);
how to fix?? i have made Cloudflare rule and it still doing? sorry for bad english