On This Page:
- Force the browser to run a complex operation that requires it to spend many CPU cycles. This slows down a potential DoS attack by making it difficult to launch a large request flood without having to spend even larger CPU cost at their end.
The following prerequisites apply:
An HTTP load balancer advertising your application. See HTTP Load Balancer for instructions on configuring HTTP load balancer. See Deploy for deploying your applications in a Distributed Cloud network cloud or edge cloud.
|Prepare Custom Page for Redirection.||Prepare a page to which the load balancer redirects.|
Prepare Custom Page for Redirection
Perform the following to prepare a custom message.
Step 1: Create a file with your custom message.
Create a file with your message in plain text or embedded in an HTML element such as paragraph. This example shows a sample message in a paragraph element stored in the
<p> Hello! Please wait. </p>
Step 2: Apply Base64 encoding to the file.
Convert the file using Base64 encoding and store the output string for later use.
openssl base64 -in test-redirect PHA+CgpIZWxsbyAhISEgUGxlYXNlIHdhaXQgCgo8L3A+Cg==
Step 1: Navigate to the HTTP Load Balancers page.
Multi-Cloud App Connectservice.
Select the desired namespace from the
HTTP Load Balancers.
Manage Configurationfor your load balancer to open its configuration viewer.
Edit Configurationin the upper right.
Common Security Controlssection, perform the following:
Show Advanced Fieldsoption.
Malicious User Mitigation And Challengesmenu, select
Optionally, configure the
Cookie Expiration Periodoptions.
Paste the custom message into the box.
Save and Exit.
Step 1: Send request from the browser to your application domain.
Send a request by loading the domain specified in the load balancer configuration. This example shows the request for the
hipster application deployed.
Check if the custom page you configured is displayed. After the configured delay, verify if the load balancer redirects to your application site. This example shows that after the delay, the load balancer loads the requested
hipster application page.
HTTP Load Balancerspage and use the
Show Child Objectsoption of the load balancer. Then in the
Viewfor your load balancer and use the drop-down menu to show route status for a particular site.