Copy IP Access Rules from one account to another

Hello everybody!

I have a quick question. Is it possible to copy or transfer all firewall IP Access Rules from one account to another?

I want to create a separate account for one of my sites, but keep the same settings in cloudflare.
Right now I have 10 pages full of rules, copying everything manually does not seem like a viable idea.

There’s no internal method, but you can create a script using the API. My @MVP buddies might remember a script that can copy Cloudflare settings between zones.

3 Likes

There was one, I was looking a couple days ago and I couldn’t find it either.

2 Likes

:wave: @IMMKO,

Perhaps more trouble than its worth but there is a cf-terraforming module in github which can be used to export a current state file for a zone and you can then use terraform to apply to a new zone.

Might be a sledgehammer in this case but effective, if overkill.

— OG

2 Likes

Wow thanks @sdayman & @OliverGrant
Although I was looking for something quicker, it will be intresting using API or modifying the cf-terraforming module

1 Like

This topic was automatically closed after 14 days. New replies are no longer allowed.