Mofh

Hi there! I know this isn’t really related to InfinityFree but i want to know.

How did u make the add domain function in your dashboard? I’m building a MOFH site and in the API documentation there isn’t a file nor category for that. Even the iFN support team don’t know:

-------------------------------byethost.com replied---------------------------
Hi there,

https://api.myownfreehost.net/

Shows all the available functions I am unaware of a API call to create a domain on an existing account.

Best Regards

Could you please explain how you coded it?

2 Likes

Welcome to the forum. Just a note this should be categorized as Informal as this is not related to InfinityFree hosting.

3 Likes

Admin have his own magic by reverse engineering the VistaPanel and implement his own, original way. It’s not official and not ready to use code.


I don’t have the exact post (made by Admin regarding an exact same inquiry) but, no, you won’t have any luck here.
Like seriously, you really think Admin would tell you how exactly he did this thing?

Your act is the equivalent of starting up a phone company, and instead of building your own store front you contacted Apple support and asked “hey I like your website design can you give all of it to me?”

You are welcome to try and implement this logic by yourself. Just don’t expect any ready to use code.

6 Likes

Thanks, but I wasn’t asking for ready code i just thought that there was an official way to create a domain using the api that wasn’t documented. That’s all i needed to know though.

I’ve not worked with MOFH but as a general rule, if somethings an “official” way of doing something, its documented, otherwise, if its not documented, its not offiicial

6 Likes

There is no API endpoint for creating domain names. The functionality in the client area just works by interacting directly with VistaPanel (after logging in on behalf of the user).

I didn’t put that functionality in my API client, and I’m not sure if there are any public examples of this. So you may need to reverse engineer it yourself.

It’s not intended to be used like this, but I’m know that iFastNet knows what I’m doing and they haven’t asked me to stop, so it’s probably fine.

6 Likes

i guess admin do lots of requests tracking and create his own api, if you want to recreate this, you can start by monitor the login screen to capture how the api proccess the login info and give you cookie, from that cookie, you can start by capture the request to create and manage domain

from those info you can create your own api, if you lazy (like me), you can make a full documentation on how things work in txt format and give it to cursor ai, it will auto cook for you a proper api to create and manage domain

remember to check the source code before use because ai sometimes can write dumb code that can make your site have security issue and it might vulnerable to some bug that can allow hacker to inject bad seo to your site

2 Likes