Skip to content

Bakumusal/Create-Subdomain

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

How to connect to cloudflare (process.php)

if ($_SERVER['REQUEST_METHOD'] === 'POST') {
    $apiKey = 'YOUR_APIKEY'; // Apikey
    $apiEmail = 'YOUR_EMAIL'; // Email Cloudflare

    $listDomain = [
        'yourdomain.com' => 'ZONE_ID', // Zone ID
        'yourdomain.org' => 'ZONE_ID', // Zone ID
    ];

Edit domain for main page (index.html)

            <label for="domain">Domain</label>
            <select id="domain" name="domain" required>
                <option value="" disabled selected>Select Domain</option>
                <option value="yourdomain.com">yourdomain.com</option>
                <option value="yourdomain.org">yourdomain.org</option>
            </select>
            // Add more domains if you need

Add or delete Username and password (index.html)

        const credentials = [
            { username: 'admin', password: 'admin' },
            { username: 'admin2', password: 'admin2' },
            { username: 'admin3', password: 'admin3' },
            // Add more username and password pairs as needed
        ];

About

Create-Subdomain Using username and password to access

Resources

License

Stars

Watchers

Forks