Skip to content

Instantly share code, notes, and snippets.

View guicz's full-sized avatar

Guilherme da Cruz Silveira guicz

View GitHub Profile
@guicz
guicz / cloudflare_batch.php
Created February 1, 2022 18:40 — forked from domaingood/cloudflare_batch.php
Cloudflare Batch Edit
<?php
// Form a list of all CF IP zones
// For each zone, grab all A records and TXT records matching $oldip
// For each matching record, update it to the new IP address
// Does not deal with paginated zone results so there's currently
// a maximum of 50 zones managed by this tool
$authemail = "YOU @ YOUR EMAIL . COM";
$authkey = "YOUR CLOUDFLARE API KEY";