Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cloudflare - Bulk Redirects #3166

Open
wdhdev opened this issue Oct 22, 2024 · 1 comment
Open

Cloudflare - Bulk Redirects #3166

wdhdev opened this issue Oct 22, 2024 · 1 comment

Comments

@wdhdev
Copy link

wdhdev commented Oct 22, 2024

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 wdhdev changed the title Cloudflare Bulk redirects Cloudflare - Bulk Redirects Oct 22, 2024
@tlimoncelli
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants