Can I increase the number of country list from AWS WAF rule configuration from 50?

0

I set a WAF rule to limit the country list to allow traffic and block the requests for other countries not on the list.

I can provide a maximum of 50 countries listed in the rule. I am getting a validation error if the list exceeds 50. WAF validation error

Can we provide a country list of more than 50? Is there any possibility to increase this limit?

Jothi
已提問 7 個月前檢視次數 1496 次
1 個回答
2

It seems we have geo restrictions of limit 50 countries at maximum thus this is not possible with individual rule.

Having said that the work-around to this issue is creating two Geo Matching statements with 'OR' condition and each statements with certain number of country codes you would like blocked.

Below is the JSON format from the console I have tested by creating two geo match statement using the 'Or' condition

"Statement": {
    "OrStatement": {
      "Statements": [
        {
          "GeoMatchStatement": {
            "CountryCodes": [
              "AD",
              "AI",
              "AL"
            ]
          }
        },
        {
          "GeoMatchStatement": {
            "CountryCodes": [
              "BS",
              "BD",
              "BY"
            ]
          }
        }
      ]
    }
  }
}
AWS
已回答 7 個月前
  • Thanks for your Answer. I will try this and update..

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南