On This Page:
- Force the browser to run a complex operation that requires it to spend a large number of 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:
- Note: If you do not have an account, see Create a Volterra Account.
A HTTP load balancer advertising your application.
|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 a 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: Start updating the HTTP load balancer in VoltConsole.
Log into the VoltConsole and change to your namespace. Select
Load Balancers -> from the configuration menu and
HTTP Load Balancers in the options. Click
Edit against your load balancer to open its configuration edit form.
- Scroll down to
Security Configurationsection and enable
Show Advanced Fields. Select the
Select Type of Challengefield.
- Enter a value in the
- Enter value in the
- Enter the Base64 encoded string in the
Note: Use the Base64 string generated in the Prepare Custom Page for Redirection chapter and prepend the
string:///string to it.
Save and Exit to apply the configuration to load balancer.
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.
Show Statusoption of the load balancer.