dnscontrol icon indicating copy to clipboard operation
dnscontrol copied to clipboard

Cloudflare - Bulk Redirects

Open wdhdev opened this issue 1 year ago • 1 comments

Is your feature request related to a problem? Please describe. Currently DNSControl supports both page rules and redirect rules, however it would be good if they supported bulk redirects as well.

This would be very useful as I have 700+ redirects and it is not possible to use page or redirect rules, even though we are on Cloudflare's enterprise plan with a limit of 125 rules respectively.

Describe the solution you'd like A method of adding bulk redirects on Cloudflare.

Something like:

CF_BULK_REDIRECT("LIST_NAME", "SOURCE_URL", "REDIRECT_RULE", "STATUS_CODE", { /* PARAMETERS */ });

Parameter options: image

Describe alternatives you've considered Page rules and redirect rules, however both are not feasible due to the amount of redirects we have.

wdhdev avatar Oct 22 '24 11:10 wdhdev

CC @tresni

Sounds like a useful feature. I don't have room to implement it, but I'd be glad to mentor anyone interested in making this happen. The code for CF_SINGLE_REDIRECT is a good template for what you need to do.

tlimoncelli avatar Oct 22 '24 16:10 tlimoncelli