API requests from ESP32 being blocked - Cloudflare/javascript requirement issue

Website URL

Darwinbrunch.fwh.is

Error Message

Respuesta: This site requires Javascript to work, please enable Javascript in your browser or use a browser with Javascript support

Other Information

I’m developing a school cafeteria system using an ESP32 with NFC reader that needs to communicate with my PHP API. The ESP32 sends HTTP POST/GET requests to my API endpoints, but I’m facing issues where the requests are being blocked or redirected to JavaScript challenge pages.

The Problem:

My ESP32 device sends requests tohttps://darwinbrunch.fwh.is/api/nfc.php but receives HTML responses with Cloudflare protection or JavaScript challenges instead of the expected JSON API responses. The ESP32 cannot execute JavaScript, so these challenges prevent the system from working.

What solution or alternative can I do?

That means our security system is working as expected:

8 Likes

Infinity free is intended for hosting websites to be accessed through a browser, not api’s

5 Likes