I am developing a Flutter mobile app that consumes a PHP API located at /backend/api/ on my subdomain cggsoltec.unaux.com.
When I access the API from a web browser, it works correctly and returns JSON. However, when I make the same request from HTTP clients that don’t execute JavaScript (e.g., PowerShell, my Flutter app’s HTTP client), the server returns an HTML page containing a JavaScript challenge (AES decryption and cookie setting) instead of the expected JSON response.
This suggests there might be an anti-bot, anti-DDoS, or JavaScript validation filter enabled on the server.
My questions are:
-
Is there such a security filter active on
cggsoltec.unaux.com? -
If yes, is it possible to disable it or create an exception for paths like
/backend/*or/backend/api/*so that API calls from non-browser clients receive the raw JSON response?
Thank you for your help.