# Unexpected response

**URL:** https://forum.infinityfree.com/t/unexpected-response/79923
**Category:** Hosting Support
**Created:** [August 1, 2023, 11:17am UTC](https://forum.infinityfree.com/t/unexpected-response/79923 "2023-08-01T11:17:10Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![anon97770577](https://forum.infinityfree.com/letter_avatar/anon97770577/32/5_5575768a8748004e209b776fc1b2916d.png) [@anon97770577](https://forum.infinityfree.com/u/anon97770577)
#### Post date: [August 1, 2023, 11:17am UTC](https://forum.infinityfree.com/t/unexpected-response/79923/1 "2023-08-01T11:17:10Z")

</div>

### Website URL

[emred.infinityfreeapp.com/kuran/select.php](http://emred.infinityfreeapp.com/kuran/select.php)

### Error Message

expected response:  
[{“id”:1,“anahtar”:“kaldigim\_sure\_sirasi”,“deger”:2},{“id”:2,“anahtar”:“secili\_meal”,“deger”:“okuyan”},{“id”:3,“anahtar”:“tema\_renk”,“deger”:“0xff2f1010”},{“id”:4,“anahtar”:“secili\_meal\_kod”,“deger”:105},{“id”:5,“anahtar”:“secili\_meal\_kod\_isim”,“deger”:“Erhan Akta?”}]

actual response:  
\<html\>\<body\>\<script type="text/javascript" src="/aes.js" \>\</script\>\<script\>function toNumbers(d){var e=;d.replace(/(..)/g,function(d){e.push(parseInt(d,16))});return e}function toHex(){for(var d=,d=1==arguments.length&&arguments[0].constructor==Array?arguments[0]:arguments,e=“”,f=0;f\<d.length;f++)e+=(16\>d[f]?“0”:“”)+d[f].toString(16);return e.toLowerCase()}var a=toNumbers(“f655ba9d09a112d4968c63579db590b4”),b=toNumbers(“98344c2eee86c3994890592585b49f80”),c=toNumbers(“924a90dae47dbb14a480a727407b98c2”);document.cookie=“\_\_test=”+toHex(slowAES.decrypt(c,2,a,b))+“; expires=Thu, 31-Dec-37 23:55:55 GMT; path=/”; location.href=“[DNS Resolution Error - Domain Not Found, Or Domain not added to hosting account](http://emred.infinityfreeapp.com/?i=1)”;\</script\>\<noscript\>This site requires Javascript to work, please enable Javascript in your browser or use a browser with Javascript support\</noscript\>\</body\>\</html\>

### Other Information

when i make a request from browser i get correct response, but when i make this request from flutter (http.get()) or php (curl\_init()) i cant get response i want

---

<div class="post-metadata">

### Author: ![anon90933456](https://forum.infinityfree.com/letter_avatar/anon90933456/32/5_5575768a8748004e209b776fc1b2916d.png) [@anon90933456](https://forum.infinityfree.com/u/anon90933456)
#### Post date: [August 1, 2023, 11:27am UTC](https://forum.infinityfree.com/t/unexpected-response/79923/2 "2023-08-01T11:27:55Z")

</div>

Hi and welcome to the forum! The actual response is the one from the security system:

> [@Ensuring only web browsers can access your website](https://forum.infinityfree.com/t/ensuring-only-web-browsers-can-access-your-website/49353):
>
> 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. To help enforce this, free hosting enforces a security system that makes sure that anyone trying to access your website is using a normal web browser. This is done by checking whether the web br…

Since you don’t have a custom domain, there is no way to bypass this system on free hosting, other than getting a custom domain from either a ICANN-accredited domain registrar or from a free domain provider like [EU.org](https://nic.eu.org) or [PP.UA](https://nic.ua/en/domains/.pp.ua) and configuring Cloudflare.

---

<div class="post-metadata">

### Author: ![anon97770577](https://forum.infinityfree.com/letter_avatar/anon97770577/32/5_5575768a8748004e209b776fc1b2916d.png) [@anon97770577](https://forum.infinityfree.com/u/anon97770577)
#### Post date: [August 1, 2023, 12:02pm UTC](https://forum.infinityfree.com/t/unexpected-response/79923/3 "2023-08-01T12:02:18Z")

</div>

If I buy a free domain from [eu.org](http://eu.org) and connect it to this free hosting, will the problem be solved?

---

<div class="post-metadata">

### Author: ![anon90933456](https://forum.infinityfree.com/letter_avatar/anon90933456/32/5_5575768a8748004e209b776fc1b2916d.png) [@anon90933456](https://forum.infinityfree.com/u/anon90933456)
#### Post date: [August 1, 2023, 12:12pm UTC](https://forum.infinityfree.com/t/unexpected-response/79923/4 "2023-08-01T12:12:55Z")

</div>

Only after you connected it to Cloudflare as well after you added it on your hosting account the problem will be solved.

---

<div class="post-metadata">

### Author: ![system](https://infinityfree-forum-uploads.s3.dualstack.eu-central-1.amazonaws.com/original/3X/b/0/b024fd3fa88bae093c9576e55c2c94e33f890206.svg) [@system](https://forum.infinityfree.com/u/system)
#### Post date: [August 8, 2023, 12:13pm UTC](https://forum.infinityfree.com/t/unexpected-response/79923/5 "2023-08-08T12:13:32Z")

</div>

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