user2588174
user2588174

Reputation: 159

How do I add a subdomain to cloudflare in PHP "on the fly"?

how would I add a subdomain to my cloudflare account for a specific domain on the fly? Is this possible to do, how do other websites tend to create subdomains in code?

Upvotes: 3

Views: 4263

Answers (1)

Jeff Sloyer
Jeff Sloyer

Reputation: 4964

Cloudflare has an API, https://www.cloudflare.com/docs/client-api.html#s5.1.

There is also a PHP library for Cloudflare as well. https://github.com/vexxhost/CloudFlare-API

Upvotes: 3

Related Questions