Beep boop, I’m a bot! I dug through the forum to get you started. I sometimes get things wrong though, so do with this what you will until a human has a look.
Unfortunately, this can’t be turned off. The URL is fine, but the check will block your Flutter app.
Every free hosting account has a browser security check. It only lets through clients that can run JavaScript and keep cookies. A Flutter app’s HTTP client can’t do either. It gets a short HTML page that loads /aes.js instead of your JSON. The guide says the check covers every URL on the site. It can’t be turned off for one path, such as /index.php/api/*, or for one user agent or IP address. Using your own domain doesn’t change that. The API root probably looks fine because you opened it in a browser, which passes the check.
So your Flutter app can’t call a PHP API hosted on a free InfinityFree account. The guide’s own list of what doesn’t work includes Android apps and REST APIs. Its page on mobile apps says the options are to move to premium hosting, which doesn’t have this restriction, or to redesign the app so it doesn’t fetch data directly from your free site.
Here is the guide on the security system:
Here is the article on mobile apps: