How to Allow a Single YouTube Video and Block All Other Videos
PLEASE NOTE:
In order to get this to work correctly, you need the following:
- SSL decryption needs to be enabled.
- QUIC protocol needs to be disabled because it bypasses SSL decryption.
In this example, we only want to allow just one of the YouTube videos: https://www.youtube.com/watch?v=8VnvZ8kvAS0 and block all of the other videos on YouTube. Please follow these steps to accomplish this.
Steps
- Create a new Custom URL Category to allow only the wanted YouTube video(s).
Get to your URL filtering policy inside of the WebGUI > Objects > Custom Objects > URL Category.
Then click Add to create a new Custom URL Category.
A new window will pop up. Inside that new window, Give it a Name (youtube-allowed) and Description if you like, and then click Add again and put in the one YouTube URL to be allowed: www.youtube.com/watch?v=8VnvZ8kvAS0 (No HTTPS:// needed), Then hit OK.
- Next, you will want to create a new second URL category in order to represent the rest of the YouTube videos.
- While still inside that URL Category window, click Add again, and then put in a name (youtubeWatch) and description if needed
- Then insert the following URL under Sites: www.youtube.com/watch?v= (with no video number to represent all videos).
- Click OK.
- Now onto the Firewall rules needed. You first need to block the QUIC protocol. Please create a new rule in your rulebase to Deny outbound protocol "quic".

- Please verify that you have a decryption policy of type SSL Forward Proxy. The decryption policy should cover youtube traffic. One way is to define a decryption policy for the "streaming-media" URL category. Please see the following article about configuring SSL Decryption: How to Implement and Test SSL Decryption or see the SSL Decryption Resource List on Configuration and Troubleshooting.
- Next are the 2 rules needed to allow and deny the traffic.
The first rule will be used to allow youtube-base and google-base apps for the allowed youtube custom url category - "youtube-allowed".
The second rule will then deny the same youtube-base and google-base apps for the rest of youtube custom url category - "youtubeWatch".
- Commit and test.
When testing, you should be able to visit www.youtube.com and the links should appear to be active. But when you click on any video (other than the allowed video) you should get a block screen.

Otherwise, if you launch the allowed youtube link, you should be able to watch the video withtout issues.
