Fortinet white logo
Fortinet white logo

Administration Guide

Filtering based on title

Filtering based on title

Video filtering can be configured to filter using keyword-based filters for video titles. When a video’s title matches the configured keyword, the video filter will take the corresponding action of allow, monitor, or block. Video filtering is only supported in proxy-based inspection mode, and deep inspection must be enabled in the firewall policy.

The YouTube API key must be configured to use this feature. Otherwise, the title filter will not retrieve the video information and bypass the traffic.

Basic configuration

In this example, videos are blocked that contain the keyword, game. For information about configuring video filter keyword lists, see Example configuration.

To configure the video filter profile in the GUI:
  1. Configure the video filter profile:

    1. Go to Security Profiles > Video Filter, select the Video Filter Profile tab, and click Create new.

    2. Enter a name (title-filter-profile).

    3. In the Filters table, click Create new.

    4. Configure the filter with the following settings:

      1. Set the Type to Title.

      2. Set the Action to Block.

      3. Set the Keyword to test-keyword-match-or.

      4. Click OK.

    5. Click OK to save the video filter profile.

  2. Apply the video filter in a firewall policy.

To configure the video filter profile in the CLI:
  1. Configure the video filter profile:

    config videofilter profile
        edit "title-filter-profile"
            config filters
                edit 1
                    set type title
                    set keyword 1
                    set action block
                    set log enable
                next
            end
        next
    end
  2. Apply the video filter in a firewall policy.

Verifying the configuration

From a client, search for a video in YouTube named "How To Use Python Steam API || Steam game API python". The video is blocked.

Sample log:
2: date=2024-09-24 time=14:31:54 eventtime=1727213514461744421 tz="-0700" logid="0350013712" type="utm" subtype="webfilter" eventtype="videofilter-title" level="warning" vd="root" msg="Video title is blocked." policyid=2 poluuid="a6ba2400-76a9-51ef-6f17-0f5efd8d28bf" policytype="policy" sessionid=371964151 srcip=10.40.1.1 dstip=142.251.211.238 srcport=59698 dstport=443 srcintf="port1" srcintfrole="undefined" dstintf="port1" dstintfrole="undefined" proto=6 httpmethod="GET" service="HTTPS" action="blocked" videoinfosource="Cache" profile="title-filter-profile" videoid="LaRHkSVvDjI" videotitle="How To Use Python Steam API  || Steam game API python" hostname="www.youtube.com" agent="Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:130.0) Gecko/201001" url="https://www.youtube.com/watch?v=LaRHkSVvDjI"

Filtering based on title

Filtering based on title

Video filtering can be configured to filter using keyword-based filters for video titles. When a video’s title matches the configured keyword, the video filter will take the corresponding action of allow, monitor, or block. Video filtering is only supported in proxy-based inspection mode, and deep inspection must be enabled in the firewall policy.

The YouTube API key must be configured to use this feature. Otherwise, the title filter will not retrieve the video information and bypass the traffic.

Basic configuration

In this example, videos are blocked that contain the keyword, game. For information about configuring video filter keyword lists, see Example configuration.

To configure the video filter profile in the GUI:
  1. Configure the video filter profile:

    1. Go to Security Profiles > Video Filter, select the Video Filter Profile tab, and click Create new.

    2. Enter a name (title-filter-profile).

    3. In the Filters table, click Create new.

    4. Configure the filter with the following settings:

      1. Set the Type to Title.

      2. Set the Action to Block.

      3. Set the Keyword to test-keyword-match-or.

      4. Click OK.

    5. Click OK to save the video filter profile.

  2. Apply the video filter in a firewall policy.

To configure the video filter profile in the CLI:
  1. Configure the video filter profile:

    config videofilter profile
        edit "title-filter-profile"
            config filters
                edit 1
                    set type title
                    set keyword 1
                    set action block
                    set log enable
                next
            end
        next
    end
  2. Apply the video filter in a firewall policy.

Verifying the configuration

From a client, search for a video in YouTube named "How To Use Python Steam API || Steam game API python". The video is blocked.

Sample log:
2: date=2024-09-24 time=14:31:54 eventtime=1727213514461744421 tz="-0700" logid="0350013712" type="utm" subtype="webfilter" eventtype="videofilter-title" level="warning" vd="root" msg="Video title is blocked." policyid=2 poluuid="a6ba2400-76a9-51ef-6f17-0f5efd8d28bf" policytype="policy" sessionid=371964151 srcip=10.40.1.1 dstip=142.251.211.238 srcport=59698 dstport=443 srcintf="port1" srcintfrole="undefined" dstintf="port1" dstintfrole="undefined" proto=6 httpmethod="GET" service="HTTPS" action="blocked" videoinfosource="Cache" profile="title-filter-profile" videoid="LaRHkSVvDjI" videotitle="How To Use Python Steam API  || Steam game API python" hostname="www.youtube.com" agent="Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:130.0) Gecko/201001" url="https://www.youtube.com/watch?v=LaRHkSVvDjI"