{"id":2589,"date":"2019-09-05T15:44:06","date_gmt":"2019-09-05T19:44:06","guid":{"rendered":"https:\/\/www.virtuallabrats.com\/blog\/?p=2589"},"modified":"2019-09-06T10:18:15","modified_gmt":"2019-09-06T14:18:15","slug":"how-to-copy-cloudflares-firewall-rules-without-terraform-or-anything-else","status":"publish","type":"post","link":"https:\/\/www.virtuallabrats.com\/blog\/how-to-copy-cloudflares-firewall-rules-without-terraform-or-anything-else\/","title":{"rendered":"How to Copy &#038; Paste Cloudflare Firewall Rules without Terraform (or anything else)."},"content":{"rendered":"<p>After I got <a href=\"https:\/\/www.virtuallabrats.com\/blog\/simple-autobot-scanner-blocking-for-shared-hosting-with-cloudflare\/\">Cloudflare implemented<\/a> on one domain, I was surprised there was no option to copy the firewall rules to other domains.\u00a0 Sure, there were plenty of great articles describing how to <a href=\"https:\/\/blog.runcloud.io\/2019\/04\/05\/cloudflare-firewall-rules.html\">use Cloudflare firewall rules to protect my webapp<\/a>, or <a href=\"https:\/\/www.kazimer.com\/how-to-protect-wordpress-with-cloudflare-firewall-rules\/\">using Cloudflare protect WordPress sites<\/a>.\u00a0 \u00a0Even some forum posts with others <a href=\"https:\/\/community.cloudflare.com\/t\/duplicate-copy-page-rules-and-firewall-rules-to-other-domains-in-account\/68985\">wondering how to duplicate Cloudflare firewall rules<\/a>. But no solutions, short of using yet another layer &#8211; and third party app &#8211; called Terraform.\u00a0 I&#8217;m sure it&#8217;s a great tool, but way to complicated.\u00a0 I just wanted to copy and paste.<\/p>\n<h4>How to Copy and Paste Cloudflare Firewall Rules to Multiple Domains<\/h4>\n<p>Cloudflare allows us to do just that!<\/p>\n<ol>\n<li>Login to Cloudflare account and <strong>pick the domain with source Firewall Rules<\/strong> already setup how you want them;<\/li>\n<li>Select <strong>Edit for the Firewall Rule you wish to copy<\/strong>;<\/li>\n<li>Scroll down in the existing Firewall Rule, below all of the steps and above the CANCEL\/SAVE buttons, you will find <strong>Expression Preview<\/strong>. Click <strong>Edit Expression<\/strong>.<\/li>\n<li>Highlight all in the box (or hit CTRL-A) and Copy (CTRL-C) content.<\/li>\n<li>Select <strong>CANCEL<\/strong> for that rule.<\/li>\n<li><strong>Pick other Cloudflare domain<\/strong> to target with new Firewall Rule;<\/li>\n<li><strong>Add new Firewall Rule,<\/strong> then<\/li>\n<li><strong>Edit Expression and Paste (or hit CTRL-V) content.<\/strong><\/li>\n<li>Select <strong>SAVE<\/strong> for that rule.<\/li>\n<\/ol>\n<p>It&#8217;s a little cumbersome, you will need to repeat individually for each rule and domain.\u00a0 However, for complicated and multiple records and domains, it&#8217;s much easier than manually building each Cloudflare firewall rule individually.<\/p>\n<p>I actually saved a text file with each firewall rule included, so I can copy\/paste all the rules in one domain at one time.<\/p>\n<p>Hope this helps someone, it&#8217;s better than nothing.\u00a0 And it&#8217;s free. LOL.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>After I got Cloudflare implemented on one domain, I was surprised there was no option to copy the firewall rules to other domains.\u00a0 Sure, there were plenty of great articles describing how to use Cloudflare firewall rules to protect my&hellip; <a href=\"https:\/\/www.virtuallabrats.com\/blog\/how-to-copy-cloudflares-firewall-rules-without-terraform-or-anything-else\/\" class=\"more-link\">Continue Reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[120,23,176],"tags":[188,189],"class_list":["post-2589","post","type-post","status-publish","format-standard","hentry","category-computers","category-how-to","category-internet","tag-cloudflare","tag-firewall"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v19.6.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to Copy &amp; Paste Cloudflare Firewall Rules without Terraform (or anything else). * Virtual Lab Rats<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.virtuallabrats.com\/blog\/how-to-copy-cloudflares-firewall-rules-without-terraform-or-anything-else\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Copy &amp; Paste Cloudflare Firewall Rules without Terraform (or anything else). * Virtual Lab Rats\" \/>\n<meta property=\"og:description\" content=\"After I got Cloudflare implemented on one domain, I was surprised there was no option to copy the firewall rules to other domains.\u00a0 Sure, there were plenty of great articles describing how to use Cloudflare firewall rules to protect my&hellip; Continue Reading &rarr;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.virtuallabrats.com\/blog\/how-to-copy-cloudflares-firewall-rules-without-terraform-or-anything-else\/\" \/>\n<meta property=\"og:site_name\" content=\"Virtual Lab Rats\" \/>\n<meta property=\"article:published_time\" content=\"2019-09-05T19:44:06+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2019-09-06T14:18:15+00:00\" \/>\n<meta name=\"author\" content=\"Phil\" \/>\n<meta name=\"twitter:card\" content=\"summary\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Phil\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.virtuallabrats.com\/blog\/how-to-copy-cloudflares-firewall-rules-without-terraform-or-anything-else\/\",\"url\":\"https:\/\/www.virtuallabrats.com\/blog\/how-to-copy-cloudflares-firewall-rules-without-terraform-or-anything-else\/\",\"name\":\"How to Copy & Paste Cloudflare Firewall Rules without Terraform (or anything else). * Virtual Lab Rats\",\"isPartOf\":{\"@id\":\"https:\/\/www.virtuallabrats.com\/blog\/#website\"},\"datePublished\":\"2019-09-05T19:44:06+00:00\",\"dateModified\":\"2019-09-06T14:18:15+00:00\",\"author\":{\"@id\":\"https:\/\/www.virtuallabrats.com\/blog\/#\/schema\/person\/3af5c8207d5aa91a6a0fec823ccefd93\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.virtuallabrats.com\/blog\/how-to-copy-cloudflares-firewall-rules-without-terraform-or-anything-else\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.virtuallabrats.com\/blog\/how-to-copy-cloudflares-firewall-rules-without-terraform-or-anything-else\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.virtuallabrats.com\/blog\/how-to-copy-cloudflares-firewall-rules-without-terraform-or-anything-else\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.virtuallabrats.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Copy &#038; Paste Cloudflare Firewall Rules without Terraform (or anything else).\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.virtuallabrats.com\/blog\/#website\",\"url\":\"https:\/\/www.virtuallabrats.com\/blog\/\",\"name\":\"Virtual Lab Rats\",\"description\":\"Finding extraordinary in food, travel &amp; life.\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.virtuallabrats.com\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.virtuallabrats.com\/blog\/#\/schema\/person\/3af5c8207d5aa91a6a0fec823ccefd93\",\"name\":\"Phil\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.virtuallabrats.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/40ed0ec73b41586f9a290cd20d0750df305e68aa0b4b5e8235df78e8ae25054c?s=96&d=identicon&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/40ed0ec73b41586f9a290cd20d0750df305e68aa0b4b5e8235df78e8ae25054c?s=96&d=identicon&r=g\",\"caption\":\"Phil\"},\"description\":\"Grown up in Cleveland, Ohio, USA., previously lived in Phoenix, Arizona and Tampa, Florida areas, and recently co-located to Asheville, North Carolina area. Trained as an Army MP, but bit of a renegade career wise. Phil has owned successful businesses in insurance, private investigations, surety bail bond industries, and has experience in computer network engineering, hospitality advertising, asset recovery and repossession, and even a few years traveling most of the lower 48 states, Ontario and Northern Mexico as a commercial over the road truck driver. Career long entrepreneur, property investor and rental manager. Phil loves sharing his experiences of great food, travel, experiences and products.\",\"url\":\"https:\/\/www.virtuallabrats.com\/blog\/author\/phil\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Copy & Paste Cloudflare Firewall Rules without Terraform (or anything else). * Virtual Lab Rats","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.virtuallabrats.com\/blog\/how-to-copy-cloudflares-firewall-rules-without-terraform-or-anything-else\/","og_locale":"en_US","og_type":"article","og_title":"How to Copy & Paste Cloudflare Firewall Rules without Terraform (or anything else). * Virtual Lab Rats","og_description":"After I got Cloudflare implemented on one domain, I was surprised there was no option to copy the firewall rules to other domains.\u00a0 Sure, there were plenty of great articles describing how to use Cloudflare firewall rules to protect my&hellip; Continue Reading &rarr;","og_url":"https:\/\/www.virtuallabrats.com\/blog\/how-to-copy-cloudflares-firewall-rules-without-terraform-or-anything-else\/","og_site_name":"Virtual Lab Rats","article_published_time":"2019-09-05T19:44:06+00:00","article_modified_time":"2019-09-06T14:18:15+00:00","author":"Phil","twitter_card":"summary","twitter_misc":{"Written by":"Phil","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.virtuallabrats.com\/blog\/how-to-copy-cloudflares-firewall-rules-without-terraform-or-anything-else\/","url":"https:\/\/www.virtuallabrats.com\/blog\/how-to-copy-cloudflares-firewall-rules-without-terraform-or-anything-else\/","name":"How to Copy & Paste Cloudflare Firewall Rules without Terraform (or anything else). * Virtual Lab Rats","isPartOf":{"@id":"https:\/\/www.virtuallabrats.com\/blog\/#website"},"datePublished":"2019-09-05T19:44:06+00:00","dateModified":"2019-09-06T14:18:15+00:00","author":{"@id":"https:\/\/www.virtuallabrats.com\/blog\/#\/schema\/person\/3af5c8207d5aa91a6a0fec823ccefd93"},"breadcrumb":{"@id":"https:\/\/www.virtuallabrats.com\/blog\/how-to-copy-cloudflares-firewall-rules-without-terraform-or-anything-else\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.virtuallabrats.com\/blog\/how-to-copy-cloudflares-firewall-rules-without-terraform-or-anything-else\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.virtuallabrats.com\/blog\/how-to-copy-cloudflares-firewall-rules-without-terraform-or-anything-else\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.virtuallabrats.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to Copy &#038; Paste Cloudflare Firewall Rules without Terraform (or anything else)."}]},{"@type":"WebSite","@id":"https:\/\/www.virtuallabrats.com\/blog\/#website","url":"https:\/\/www.virtuallabrats.com\/blog\/","name":"Virtual Lab Rats","description":"Finding extraordinary in food, travel &amp; life.","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.virtuallabrats.com\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.virtuallabrats.com\/blog\/#\/schema\/person\/3af5c8207d5aa91a6a0fec823ccefd93","name":"Phil","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.virtuallabrats.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/40ed0ec73b41586f9a290cd20d0750df305e68aa0b4b5e8235df78e8ae25054c?s=96&d=identicon&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/40ed0ec73b41586f9a290cd20d0750df305e68aa0b4b5e8235df78e8ae25054c?s=96&d=identicon&r=g","caption":"Phil"},"description":"Grown up in Cleveland, Ohio, USA., previously lived in Phoenix, Arizona and Tampa, Florida areas, and recently co-located to Asheville, North Carolina area. Trained as an Army MP, but bit of a renegade career wise. Phil has owned successful businesses in insurance, private investigations, surety bail bond industries, and has experience in computer network engineering, hospitality advertising, asset recovery and repossession, and even a few years traveling most of the lower 48 states, Ontario and Northern Mexico as a commercial over the road truck driver. Career long entrepreneur, property investor and rental manager. Phil loves sharing his experiences of great food, travel, experiences and products.","url":"https:\/\/www.virtuallabrats.com\/blog\/author\/phil\/"}]}},"_links":{"self":[{"href":"https:\/\/www.virtuallabrats.com\/blog\/wp-json\/wp\/v2\/posts\/2589","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.virtuallabrats.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.virtuallabrats.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.virtuallabrats.com\/blog\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.virtuallabrats.com\/blog\/wp-json\/wp\/v2\/comments?post=2589"}],"version-history":[{"count":5,"href":"https:\/\/www.virtuallabrats.com\/blog\/wp-json\/wp\/v2\/posts\/2589\/revisions"}],"predecessor-version":[{"id":2602,"href":"https:\/\/www.virtuallabrats.com\/blog\/wp-json\/wp\/v2\/posts\/2589\/revisions\/2602"}],"wp:attachment":[{"href":"https:\/\/www.virtuallabrats.com\/blog\/wp-json\/wp\/v2\/media?parent=2589"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.virtuallabrats.com\/blog\/wp-json\/wp\/v2\/categories?post=2589"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.virtuallabrats.com\/blog\/wp-json\/wp\/v2\/tags?post=2589"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}