Table Of Contents
- 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 VES Account.
A Volterra CE site.
- Note: If you do not have a site, create a site using the instructions included in the Create a Site guide.
A virtual host advertising your application.
|Prepare Custom Page for Redirection.||Prepare a page to which the load balancer redirects.|
Prepare Custom Page for Redirection
Step 1: Create a HTML file 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: Convert the file using Base64 encoding and store the output string for later use.
openssl base64 -in test-redirect PHA+CgpIZWxsbyAhISEgUGxlYXNlIHdhaXQgCgo8L3A+Cg==
Step 1: Log into the Volterra console and change to your namespace. Select
Manage from the configuration menu and
Virtual Hosts in the options. Click
Edit against your virtual host to open virtual host configuration form.
Step 2: Scroll down the configuration form and click the
- Select the
- 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.
Step 4: Click
Save changes to apply the configuration to virtual host.
Step 1: Send request from the browser to your application site by loading the domain specified in the virtual host configuration. This example shows the request for the
bookstore application deployed.
Step 2: After the configured delay, verify if the virtual host redirects to your application site. This example shows that after the delay of 1000 milliseconds, the virtual host loads the requested
bookstore application page.
Show Statusoption of the virtual host.