# The Android app needs to send HTTPS POST requests containing JSON data to my PHP API endpoint

**URL:** <https://forum.infinityfree.com/t/the-android-app-needs-to-send-https-post-requests-containing-json-data-to-my-php-api-endpoint/121549>\
**Category:** Hosting Support\
**Created:** [October 23, 2026, 10:54pm UTC](https://forum.infinityfree.com/t/the-android-app-needs-to-send-https-post-requests-containing-json-data-to-my-php-api-endpoint/121549 "2026-10-23T22:54:50Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![Lemni](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/lemni/32/68303_2.png) [@Lemni](https://forum.infinityfree.com/u/Lemni)\
**Post date:** [October 23, 2026, 10:55pm UTC](https://forum.infinityfree.com/t/the-android-app-needs-to-send-https-post-requests-containing-json-data-to-my-php-api-endpoint/121549/3 "2026-10-23T22:55:04Z")

</div>

_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._

Yes, the security system is what’s stopping your Android app and cURL. The `/aes.js` page you get back is the free hosting browser check. Your request never reaches your PHP script.

Our knowledge base article says the check requires JavaScript and cookies. A tool or app that can’t run it gets a short HTML page that loads `/aes.js`, and the article lists Android and iOS apps, REST APIs and cURL as things that won’t work. To your three questions:

1. **Does it block direct API requests from Android apps?** Yes. The article says Android apps can’t connect to a site on free hosting, and that REST APIs and command-line tools like cURL are affected too.
2. **Is there a supported way to skip the challenge?** No. It covers every URL on the site and can’t be excluded for one path, file type, user agent or IP address. A custom domain doesn’t change this either, and it can’t be disabled on free hosting.
3. **Is [premium hosting](https://www.infinityfree.com/premium/) the only way?** The article’s answer is [premium hosting](https://www.infinityfree.com/premium/), which it says protects the site with less restrictive methods and lets mobile apps, APIs and automated tools work normally.

Here’s the article, with all the details:

> [@Browser Security System - Features and Limitations](https://forum.infinityfree.com/docs?topic=49353):
>
> InfinityFree uses a security system on all free hosting accounts to ensure your website is accessed by real web browsers, not bots or automated scripts. While this protects your site from malicious traffic, it can affect certain types of access. How the security system works The system checks that visitors can execute JavaScript and accept cookies: features that all modern web browsers support. This verification happens automatically and most website visitors will never notice it. You may occa…

Someone else asked almost the same thing a few days ago, for an Android chat app calling a PHP API. The knowledge base article above is the better source.

> [@PHP API requests blocked by JavaScript security challenge](https://forum.infinityfree.com/t/php-api-requests-blocked-by-javascript-security-challenge/121461):
>
> Website URL ttps://pkchat.freedev.app Error Message Connection reset by peer. Termux curl and Python requests receive a JavaScript security challenge instead of the API response. Other Information Website: [https://pkchat.freedev.app](https://pkchat.freedev.app) My PHP test API works in Chrome and returns JSON successfully. However, requests from Termux using curl and Python requests are blocked by a JavaScript security challenge or the connection is reset. API endpoints: [https://pkchat.freedev.app/api/test.php](https://pkchat.freedev.app/api/test.php)[https:/…](https://pkchat.freedev.app/api/send_otp.php)

---

_[View the full topic](https://forum.infinityfree.com/t/the-android-app-needs-to-send-https-post-requests-containing-json-data-to-my-php-api-endpoint/121549)._
