# I cant create APIs on InfinityFree (and other hostings that are powered by iFastNet)

**URL:** <https://forum.infinityfree.com/t/i-cant-create-apis-on-infinityfree-and-other-hostings-that-are-powered-by-ifastnet/76039>\
**Category:** Hosting Support\
**Created:** [May 11, 2023, 2:50pm UTC](https://forum.infinityfree.com/t/i-cant-create-apis-on-infinityfree-and-other-hostings-that-are-powered-by-ifastnet/76039 "2023-05-11T14:50:40Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![HGStyle](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/hgstyle/32/35835_2.png) [@HGStyle](https://forum.infinityfree.com/u/HGStyle)\
**Post date:** [May 11, 2023, 2:50pm UTC](https://forum.infinityfree.com/t/i-cant-create-apis-on-infinityfree-and-other-hostings-that-are-powered-by-ifastnet/76039/1 "2023-05-11T14:50:40Z")

</div>

### Website URL

Any site (ex: [http://osworldtour.rf.gd/](http://osworldtour.rf.gd/))

### Error Message

When using Python to access to the page it returns something that I call “JavaScript redirect” because it seems to redirect the user to the right page but with a special cookie that is generated with some kind of code using some weird and obscure implementation of SlowAES…

Here is the response that I got insead of my HTML page:

```auto
<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("[some string here]"),b=toNumbers("[some string here]"),c=toNumbers([some string here]");document.cookie="__test="+toHex(slowAES.decrypt(c,2,a,b))+"; expires=[some date here]; path=/"; location.href="[current site url here]?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>

```

Can anyone explain this please? It occurs on any site that is hosted by any host that is powered by [iFastNet](https://www.infinityfree.com/go/ifastnet), so this include InfinityFree, AeonFree, ProFreeHost, UltiFree, and many more that provide “free unlimited hosting”.

---

<div class="post-metadata">

**Author:** ![Deveroonie](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/deveroonie/32/35629_2.png) [@Deveroonie](https://forum.infinityfree.com/u/Deveroonie)\
**Post date:** [May 11, 2023, 2:52pm UTC](https://forum.infinityfree.com/t/i-cant-create-apis-on-infinityfree-and-other-hostings-that-are-powered-by-ifastnet/76039/2 "2023-05-11T14:52:52Z")

</div>

it’s an anti-what you are doing measure to make sure that requests are legit users.  
for api hosting use repl (or similar)

---

<div class="post-metadata">

**Author:** ![Greenreader9](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/greenreader9/32/22847_2.png) [@Greenreader9](https://forum.infinityfree.com/u/Greenreader9)\
**Post date:** [May 11, 2023, 3:30pm UTC](https://forum.infinityfree.com/t/i-cant-create-apis-on-infinityfree-and-other-hostings-that-are-powered-by-ifastnet/76039/3 "2023-05-11T15:30:51Z")

</div>

Welcome!

The reason this is happening is because iFastNet forbids API creation on free hosting. Only web-browsers are able to access your website (Cookies and JS must be enabled).

---

<div class="post-metadata">

**Author:** ![ChrisPAR](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/chrispar/32/8743_2.png) [@ChrisPAR](https://forum.infinityfree.com/u/ChrisPAR)\
**Post date:** [May 11, 2023, 5:27pm UTC](https://forum.infinityfree.com/t/i-cant-create-apis-on-infinityfree-and-other-hostings-that-are-powered-by-ifastnet/76039/4 "2023-05-11T17:27:55Z")

</div>

This article can help:

> [@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…

---

<div class="post-metadata">

**Author:** ![HGStyle](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/hgstyle/32/35835_2.png) [@HGStyle](https://forum.infinityfree.com/u/HGStyle)\
**Post date:** [May 12, 2023, 3:32pm UTC](https://forum.infinityfree.com/t/i-cant-create-apis-on-infinityfree-and-other-hostings-that-are-powered-by-ifastnet/76039/5 "2023-05-12T15:32:25Z")

</div>

Oh thanks.  
I just read the article.  
So if I upgrade to iFastNet premium this “protection” will be removed right?

(basically I wanted to create a GDPS on InfinityFree but since it needs to execute JS code, GDPSes cant work with iFastNet servers since there is this security…)

---

<div class="post-metadata">

**Author:** ![ChrisPAR](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/chrispar/32/8743_2.png) [@ChrisPAR](https://forum.infinityfree.com/u/ChrisPAR)\
**Post date:** [May 12, 2023, 8:17pm UTC](https://forum.infinityfree.com/t/i-cant-create-apis-on-infinityfree-and-other-hostings-that-are-powered-by-ifastnet/76039/6 "2023-05-12T20:17:03Z")

</div>

This protection does not apply to [premium hosting](https://www.infinityfree.com/premium/), yes.

I’m not familiar with what GDPSs are, so since you’re thinking to move to [premium hosting](https://www.infinityfree.com/premium/), the following article can help you with what you can expect (and has a link to [iFastNet](https://www.infinityfree.com/go/ifastnet)’s support system where you can ask them for more information related to your specific usage plans):

> [@Getting started with your premium hosting account](https://forum.infinityfree.com/t/getting-started-with-your-premium-hosting-account/49218):
>
> Did you just upgrade your website to premium hosting? Awesome! To make the most of your upgrade, here are some things you need to know. You are now a customer of iFastNet InfinityFree is a free website hosting provider, sponsored by iFastNet. InfinityFree does not provide any premium hosting services. The premium hosting services advertised on InfinityFree’s website and panels is provided by a different company, iFastNet. So if you have any questions about the premium hosting, the status of yo…

---

<div class="post-metadata">

**Author:** ![HGStyle](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/hgstyle/32/35835_2.png) [@HGStyle](https://forum.infinityfree.com/u/HGStyle)\
**Post date:** [May 18, 2023, 9:14am UTC](https://forum.infinityfree.com/t/i-cant-create-apis-on-infinityfree-and-other-hostings-that-are-powered-by-ifastnet/76039/7 "2023-05-18T09:14:36Z")

</div>

Sorry I dont have money to pay Premium Hosting.  
I opened this thread only to know why APIs (and GDPSes) cannot be created on iFastNet-based services.  
Anyways it’s good to know that Premium Accounts does not have this limitation.  
Thanks you all !

---

<div class="post-metadata">

**Author:** ![HGStyle](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/hgstyle/32/35835_2.png) [@HGStyle](https://forum.infinityfree.com/u/HGStyle)\
**Post date:** [May 18, 2023, 9:18am UTC](https://forum.infinityfree.com/t/i-cant-create-apis-on-infinityfree-and-other-hostings-that-are-powered-by-ifastnet/76039/8 "2023-05-18T09:18:15Z")

</div>

Oh and I forgot, but GDPSes is a private server for the Geometry Dash game, so you need to upload some PHP scripts and set up the MySQL database connection, HEX-edit the Geometry Dash files to redirect requests from the official server to the custom website with the PHP scripts.  
It’s absolutely legal since around 2 years ago.

---

<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:** [May 25, 2023, 9:19am UTC](https://forum.infinityfree.com/t/i-cant-create-apis-on-infinityfree-and-other-hostings-that-are-powered-by-ifastnet/76039/9 "2023-05-25T09:19:14Z")

</div>

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