Skip to content
The XG Series hardware appliances will reach end-of-life (EOL) on March 31, 2025. Click here to see the XG to XGS migration documentation.

Limit bandwidth for a web category

You can apply a traffic shaping policy that guarantees bandwidth to a website.

In this example, you apply a bandwidth limit to the following website: example.com
Do as follows:

  • Create a traffic shaping policy.
  • Create a custom web category and assign the traffic shaping policy to it.
  • Create a web policy with a rule for this website.
  • Add the web policy to a firewall rule and apply traffic shaping.

Create a traffic shaping policy to limit bandwidth for websites

The following are example settings:

  1. Go to System services > Traffic shaping and click Add.

    How to access traffic shaping settings.

  2. Enter a name.

  3. Set Policy association to Web categories.
  4. Set Rule type to Limit.
  5. Set Priority to 1.
  6. Set Limit upload/download separately to Disable.
  7. Enter the following for Limit: 10000
    This is the maximum bandwidth the websites can use.
  8. Set Bandwidth usage type to Shared.
    All applications and application categories to which you assign this policy will share the guaranteed bandwidth.
  9. Click Save.

    Here's an example:

    Traffic shaping settings for web categories.

Create a custom web category for the website

The following are example settings as follows:

  1. Go to Web > Categories.
  2. Click Add.
  3. Enter a name.
  4. Set Classification to Productive.
  5. Select the traffic shaping policy you created.
  6. Set Configure category to Local.
  7. For Domain/keyword, do as follows:
    1. For domain, enter www.example.com and click the plus (+) button.
    2. For keyword, enter example and click the plus (+) button.
  8. Click Save.

    Here's an example:

    Example settings for custom web category.

Add a web policy

The following are example settings:

  1. Go to Web > Policies.
  2. Click the edit button next to the web policy you want.
  3. Click Add to add a web policy rule.
  4. Under Activities, click the field and click Show only.
  5. Select Web categories, select the example category you created, and click Apply selected items.

    Here's an example:

    Example web policy rule.

  6. Click Save.

Select web policy and traffic shaping in a firewall rule

To edit an existing firewall rule, do as follows:

  1. Go to Rules and policies > Firewall rules.
  2. Click the firewall rule that currently matches the traffic you want to shape.
  3. Go to Security features and click Web filtering.
  4. Click Apply web category-based traffic shaping.
    The web policy to which you've added the category has already been added to the firewall rule.

    Here's an example:

    Example settings for security features.

  5. Click Save.

More resources