From 68cf281f5f592fc60f0bfeb86f302de516a347d8 Mon Sep 17 00:00:00 2001 From: David B <38657416+Davidoutz@users.noreply.github.com> Date: Tue, 30 Jul 2024 16:10:02 +0200 Subject: [PATCH 1/3] FUM-3263 customize 429 ERROR page --- waf.tf | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/waf.tf b/waf.tf index 2fd8e55..6aab95b 100644 --- a/waf.tf +++ b/waf.tf @@ -33,11 +33,16 @@ locals { )) rate_limit_response_key = "rate-limit-error" custom_response_body = <HTTP Error 429 - Too Many Requests -

Your device sent us too many requests in the past 5 minutes. Please wait a few minutes before retrying.

-

Info: Using VPNs, proxies or public wifi might affect negatively your experience. If you are using one, please try to disable it to see if the problem persists.

-
-

If, instead, you believe you have been blocked by accident, please report with a screenshot and a quick summary of what you were trying to visit. This will greatly help us improving our protection systems.

+
+
+ Company Logo +

HTTP Error 429 - Too many requests

+

Your device sent us too many requests in the past 5 minutes. Please wait a few minutes before retrying.

+

Info: Using VPNs, proxies or public wifi might affect negatively your experience. If you are using one, please try to disable it to see if the problem persists.

+
+

If, instead, you believe you have been blocked by accident, please report with a screenshot and a quick summary of what you were trying to visit. This will greatly help us improving our protection systems.

+
+
MULTILINE } From 4dcea195c5da787f2ad874f39b93b86cc2777f42 Mon Sep 17 00:00:00 2001 From: David B <38657416+Davidoutz@users.noreply.github.com> Date: Tue, 6 Aug 2024 10:30:13 +0200 Subject: [PATCH 2/3] add logo path --- waf.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/waf.tf b/waf.tf index 6aab95b..07b912b 100644 --- a/waf.tf +++ b/waf.tf @@ -35,7 +35,7 @@ locals { custom_response_body = <
- Company Logo + Company Logo

HTTP Error 429 - Too many requests

Your device sent us too many requests in the past 5 minutes. Please wait a few minutes before retrying.

Info: Using VPNs, proxies or public wifi might affect negatively your experience. If you are using one, please try to disable it to see if the problem persists.

From 99f0a9c7ddf7dffa59ba5a0906327d507a4f06cd Mon Sep 17 00:00:00 2001 From: David B <38657416+Davidoutz@users.noreply.github.com> Date: Tue, 6 Aug 2024 10:30:58 +0200 Subject: [PATCH 3/3] Add logo input --- variables.tf | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/variables.tf b/variables.tf index a5e465c..5faffd3 100644 --- a/variables.tf +++ b/variables.tf @@ -4,6 +4,12 @@ variable "waf_name" { type = string } +variable "logo_path" { + default = "" + description = "Company logo path (for 429 pages)" + type = string +} + variable "waf_scope" { default = "CLOUDFRONT" description = "The scope of the deployed waf. Available options [CLOUDFRONT,REGIONAL]"