Unstoppable Domains

Adding a cPanel addon domain with PHP?

Spaceship Spaceship
Watch

squid

Account Closed
Impact
19
Hi,
I am trying to create a script and part of this script is adding addon domains in cPanel, now this could be done manually, but it would be a massive pain in the arse and inconvenience.

I've looked around and found one thing but that's some cPanel API that only mentions making new accounts, so my question;

How can i create a php script / function that when entered the addon domain, such as "hello.com" the script will add that to the specified user account?

It'll be from the same server and on the account that it's trying to add to.

Much help is appreciated :)

subdomaintool.com
Like that maybe? (Dunno how that functions?)

EDIT: Looks like subdomaintool.com is just a phishing scheme.
 
Last edited:
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
AfternicAfternic
This is possible using remote access to WHM. You'll need to create script that passed the same form variables (you can use GET method instead of POST) as doing it from WHM, and use a remote access hash to authenticate.

If you only have cPanel access you could probably do something with wget to login to cPanel and then create the subdomain.
 
0
•••
Why not login with cURL to the "Add-on Domain" page and submit the forms accordingly with cURL. Should work well. Look into cURL if you want to do it yourself, or you could hire someone to do it for you. I can get you started with the cURL login if you really need it, but more than that I would have to charge as it would take a little more work. But really logging in is the hardest part, all else pretty much follows suit.

-RageD
 
0
•••
I think you can use the LiveHTTP headers extension in Forefox to see exactly what request is being sent by Cpanel when u add an addon domain.

Then u simply need to open excel sheet, paste that request, add the new domains that u want to be added into it, and click on all those links. Those links will automatically open and add the domains to the server.

Not sure if i made sense or not, but that would work. Have done it with Lxadmin before.
 
0
•••

We're social

Unstoppable Domains
Domain Recover
DomainEasy — Live Options
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back