how to disable this anti-bot protection

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

Hi and welcome to the forum

if you own your domain you can use Cloudflare
and the hosting trusts Cloudflare enough so that then there are no bot checks.


Please pay attention to this sentence

InfinityFree is a website hosting service. That means that the hosting accounts we provided are intended for hosting websites. Websites contain pages that are accessed through web browsers. InfinityFree is not intended to be used for file sharing, API hosting, database hosting or background tasks/tools.

7 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.