We use cookies on our website to ensure we provide you with the best experience on our website. By using our website, you agree to the use of cookies for analytics and personalized content.This website uses cookies. More Information
It seems like your browser didn't download the required fonts. Please revise your security settings and try again.
Barracuda CloudGen Firewall

Attention

Barracuda CloudGen Firewall version 8.0 is a cloud-only version. It is currently not available for on-premises deployments and can only be deployed in Microsoft Azure, Amazon Web Services, or Google Cloud Platform public clouds.

How to Block Search Terms using a Custom Application Object

  • Last updated on

If the search term you want to block is not covered by the Safe Search feature (because it does not represent adult content), you can still block specific search terms or queries by creating a custom application. Custom search applications are supported for Google, Yahoo, Bing, and YouTube. These custom application objects can then be selected in the matching application rule. Custom search applications do not override the Safe Search settings of the matching access rule.

Before You Begin

  • Define the search terms you wish to block. Wildcard characters (* and ?) are allowed. E.g., *searchterm?searchterm*
  • (optional) Enable SSL Inspection. To use SSL Inspection the Feature Level of the Forwarding Firewall must be set to 7.2 or higher. For more information, see SSL Inspection in the Firewall.

Step 1. Create a Custom Application Object

Create a custom application object for each search engine provider.

  1. Go to CONFIGURATION > Configuration Tree > Box > Virtual Servers > your virtual server > Assigned Services > Firewall > Forwarding Rules.
  2. In the left menu, click Applications.
  3. Right-click in the main area, and select New > Custom Application. The Select Application to customize window opens.
  4. Select the search engine provider. E.g. Bing Search
  5. Click OK. The Custom Application window opens.
    custom_searchterm_app_01.png
  6. Enter a Name.
  7. Select a Category.
  8. Click the edit icon to select the Risk factor.
  9. Select the Properties.
  10. Click + to add a Search String. Wildcards * and ? are allowed. Multiple search entries are combined with a logic OR.
  11. Click Save.
    custom_searchterm_app_02.png
  12. Click Send Changes and Activate.

To block this search term for all supported search engine providers, repeat this step for each search engine.

Step 2. Create a PASS Access Rule

Create a PASS access rule that matches outgoing HTTP and HTTPS traffic. Because most search engines use HTTPS, using SSL Inspection is recommended.

  1. Go to CONFIGURATION > Configuration Tree > Box > Virtual Servers > your virtual server > Assigned Services > Firewall > Forwarding Rules.
  2. Double-click to edit the access rule matching outgoing web traffic generated by your users.
  3. Verify that the access rule matches both HTTP and HTTPS  traffic.
  4. Click on the Application Policy link and enable the following Application Control features:
    • Application Control
    • (optional) SSL Inspection

    custom_searchterm_app_03.png

  5. If configured, select a policy from the SSL Inspection Policy drop-down list. For more information, see SSL Inspection in the Firewall.
  6. Click OK.
  7. Click Send Changes and Activate.

Step 3. Create an Application Rule using the Custom Application Objects

Create an application rule matching the same traffic that matches the access rule created in Step 2.

  1. Go to CONFIGURATION > Configuration Tree > Box > Virtual Servers > your virtual server > Assigned Services > Firewall > Forwarding Rules.
  2. In the left menu, click Application Rules.
  3. Click Lock.  
  4. Create a DENY application rule. For more information, see How to Create an Application Rule
    • Source – Select the same source used in the matching access rule. 
    • Application  Select the custom application objects created in Step1.
    • Destination  Select the same destination used in the matching access rule. 
    custom_searchterm_app_04.png
  5. Click OK
  6. Place the application rule so that no application rule above it matches the same traffic.
  7. Click Send Changes and Activate.

You are now blocking searches for the unwanted search terms listed in the custom application objects. Users searching for these terms are redirected to the customizable block page. For more information, see How to Configure Custom Block Pages and Texts.

Last updated on