cloudflare-ddns
cloudflare-ddns copied to clipboard
Add the ability to Update an IP Access rule
Unsure if this falls within the scope of this project, but I have a feature request:
- Whenever the IP updates, in addition to updating the DNS record, add or update an IP access rule (Security>WAF>Tools) to allow the new IP.
Here are the relevant docs: https://developers.cloudflare.com/api/operations/ip-access-rules-for-a-zone-list-ip-access-rules. It seems CF does not allow the value to be edited (only mode and notes), so upon an IP change the old one would have to be deleted and a new rule with the new IP would be created. For deletion, the API supports filtering the GET results using several optional parameters, including the notes.
Let me know if I can help out in implementing this is any way.