Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FUM-3263 customize 429 ERROR page #13

Merged
merged 3 commits into from
Aug 6, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 10 additions & 5 deletions waf.tf
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,16 @@ locals {
))
rate_limit_response_key = "rate-limit-error"
custom_response_body = <<MULTILINE
<h1>HTTP Error 429 - Too Many Requests</h1>
<p>Your device sent us too many requests in the past 5 minutes. Please wait a few minutes before retrying.</p>
<p>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.</p>
<br/>
<p>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.</p>
<div style="font-family: Arial, sans-serif;text-align: center; padding: 50px; background-color: #f4f4f4;">
<div style="background-color: #fff; padding: 20px; border-radius: 10px; box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); display: inline-block; max-width: 600px; margin: auto;">
<img src="https://upload.wikimedia.org/wikipedia/commons/2/2b/Logo_tx_group.png" alt="Company Logo" style="width: 150px; margin-bottom: 20px;">
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
<img src="https://upload.wikimedia.org/wikipedia/commons/2/2b/Logo_tx_group.png" alt="Company Logo" style="width: 150px; margin-bottom: 20px;">
<img src="https://upload.wikimedia.org/wikipedia/commons/thumb/8/8e/Tamedia_Logo_2016.svg/311px-Tamedia_Logo_2016.svg.png" alt="Company Logo" style="width: 150px; margin-bottom: 20px;">

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added logo path as input

<h1 style="color: #e74c3c;">HTTP Error 429 - Too many requests</h1>
<p style="color: #555;">Your device sent us too many requests in the past 5 minutes. Please wait a few minutes before retrying.</p>
<p style="color: #888; font-size: 0.9em;">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.</p>
<br/>
<p style="color: #333; margin-top: 20px;">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.</p>
</div>
</div>
MULTILINE

}
Expand Down
Loading