Skip to content

Commit

Permalink
Update waf.tf
Browse files Browse the repository at this point in the history
  • Loading branch information
mchestr authored Jun 5, 2024
1 parent 720e72e commit a096a04
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions terraform/cloudflare/waf.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
resource "cloudflare_filter" "block_countries" {
zone_id = data.cloudflare_zone.domain.id
description = "Expression to block countries"
expression = "(not ip.geoip.country in {\"CA\" \"US\" \"CN\" \"IT\" \"CH\" \"NL\"})"
expression = "(not ip.geoip.country in {\"CA\" \"US\" \"CN\"})"
}
resource "cloudflare_firewall_rule" "block_countries" {
zone_id = data.cloudflare_zone.domain.id
description = "Firewall rule to block countries"
filter_id = cloudflare_filter.block_countries.id
action = "block"
}
#resource "cloudflare_firewall_rule" "block_countries" {
# zone_id = data.cloudflare_zone.domain.id
# description = "Firewall rule to block countries"
# filter_id = cloudflare_filter.block_countries.id
# action = "block"
#}

# Block Bots
resource "cloudflare_filter" "bots" {
Expand Down

0 comments on commit a096a04

Please sign in to comment.