Filtering based on YouTube channel
Video filtering can be configured to filter specific YouTube channels. The following identifiers are used for YouTube channels:
given <channel-id>, affect on:
www.youtube.com/channel/<channel-id>
www.youtube.com/user/<user-id>
matches channel-id from <meta itemprop="channelId" content="<channel-id>">
www.youtube.com/watch?v=<string>
matches channel-id from <meta itemprop="channelId" content="<channel-id>">
In a YouTube channel filter profile, the default action is set to monitor when there is no match. Logging is also disabled by default.
config videofilter youtube-channel-filter edit <id> set default-action {block | monitor | allow} set log {enable | disable} next end
In the following example, a YouTube channel ID (UCJHo4AuVomwMRzgkA5DQEOA) is blocked, and the video filter is applied to a policy.
To configure a video filter based on a YouTube channel in the GUI:
- Go to Security Profiles > Video Filter and click Create New.
- In the Channel override list section, click Create New. The New Channel Override Entry pane opens.
- Enter the Channel ID (UCJHo4AuVomwMRzgkA5DQEOA) and for Action, select Block.
- Click OK.
- Click OK.
- Create the firewall policy:
- Go to Policy & Objects > Firewall Policy and click Create New.
- For Inspection Mode, select Proxy-based.
- Enable Video Filter and select the profile you created.
- For SSL Inspection, select deep-inspection.
- Configure the other settings as needed and click OK.
To configure a video filter based on a YouTube channel in the CLI:
- Create the channel filter:
config videofilter youtube-channel-filter edit 1 set name "channel_filter" set default-action monitor set log enable config entries edit 1 set action block set channel-id "UCJHo4AuVomwMRzgkA5DQEOA" next end next end
- Create the video filter profile:
config videofilter profile edit "channel_filter" set youtube-channel-filter 1 next end
- Create the firewall policy:
config firewall policy edit 1 set name "video-filter" set srcintf "port2" set dstintf "port1" set srcaddr "all" set dstaddr "all" set action accept set schedule "always" set service "ALL" set utm-status enable set inspection-mode proxy set ssl-ssh-profile "deep-inspection" set videofilter-profile "channel_filter" set nat disable next end