Cloudflare is detecting my webserver as a bot and disturbing apis

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

this used to work fine before move to aws

You should see the block in your Firewall Events Activity Log for your domain at dash.cloudflare.com

You can Search for that Ray ID. Click on the log entry and it should show you the Cloudflare setting that blocked it.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.