can you help me i had put my website at your host and i have an issue at the API in my website running to your knowledge the API’s take requisite and response from the database as data the data base has upload at the same hos and i had ask chat-gpt to the issue and tell me that the problem is from you host that has an production to my wor and has secripe the issue "The issue you’re experiencing seems to stem from a security feature called an anti-bot protection or cookie challenge, likely applied by InfinityFree (the hosting service). This protection script is generating an HTML response that sets a cookie (__test
) and redirects to the same page. When you access the API, this script runs before the PHP code, which is why you’re seeing HTML instead of the expected JSON.
To resolve this, you need to disable this protection for your API endpoints, or alternatively, move your backend to a hosting provider that does not apply such restrictions to API requests.
Possible Solutions:
. Contact Your Hosting Provider:
Reach out to InfinityFree’s support team and ask them how to disable this anti-bot protection for your backend API. It may involve adjusting settings or adding specific code to the .htaccess
file."