Limit web category bandwidth
You learn how to create a traffic shaping policy that limits traffic for specific websites to a certain bandwidth and how to apply that policy.
Introduction
In this example, you apply bandwidth limits to a website: example.com.
To apply bandwidth limits to the website, do as follows:
- Create a traffic shaping policy.
- Add a custom web category.
- Edit the firewall rule that applies to the traffic you're applying bandwidth limits to.
Create a traffic shaping policy
To create a traffic shaping policy, do as follows:
-
Go to System services > Traffic shaping.
-
Click Add.
-
Specify the following example settings:
Option Description Name Limit bandwidth for example.com Policy association Web categories
The decision for bandwidth distribution is based on the web category of the domain being visited.Rule type Limit
The website's traffic can't exceed the defined bandwidth limit.Limit upload/download separately Disable Priority 1
This policy is important and should take precedence over other traffic shaping policies.Limit 10000 Bandwidth usage type Shared
All traffic for the website won't exceed the limit of 10 MB in total.Here's an example:
-
Click Save.
Create a custom web category for the website
To create a custom web category, do as follows:
- Go to Web > Categories.
- Click Add.
-
Specify the following example settings:
Option Description Name Limit example.com Classification Productive Traffic shaping policy Limit bandwidth for example.com Configure category Local Domain/keyword Domain: www.example.com
Keyword: exampleHere's an example:
-
Click Save.
Edit an existing firewall rule
To edit an existing firewall rule, do as follows:
- Go to Rules and policies > Firewall rules.
- Click the firewall rule that currently matches the traffic you want to shape.
- Go to the Security features section, and click Web filtering.
-
Click Apply web category-based traffic shaping.
Here's an example:
-
Click Save.
More resources