Block one YouTube channel while allowing other content
Block access to specific YouTube channels (e.g., T-Series) while allowing other YouTube content.
Blocking specific YouTube channels while allowing other videos is a common policy need. The steps below demonstrate blocking a specific channel and its playlist videos.
Prerequisites
- HTTPS Inspection must be enabled in SafeSquid. See How to enable HTTPS Inspection.
- Extract the YouTube Channel-ID and List-ID from the target channel URL
Extract Channel-ID and List-ID
-
Open the YouTube channel to block (e.g., T-Series).
-
Extract the Channel-ID from the URL (the portion after
channel/):- URL:
https://www.youtube.com/channel/UCq-Fj5jknLsUf-MWSy4_brA - Channel-ID:
UCq-Fj5jknLsUf-MWSy4_brA

- URL:
-
Click PLAY ALL on the channel page to access a playlist.
-
Extract the List-ID from the playlist URL (the portion after
&list=):- URL:
https://www.youtube.com/watch?v=IgKdXLfxgQQ&list=PL9bw4S5ePsEE2KMw53rY40A00t4I-otqy - List-ID:
PL9bw4S5ePsEE2KMw53rY40A00t4I-otqy


- URL:
Create Request Types Policy
-
Open SafeSquid WebGUI and click Configure.

-
Click Custom Settings to open the Request Types section.

-
Ensure the Global setting in Request Types is set to True.

-
Click the Request Types tab to create a new policy.

-
Create a new Request Profile named T-SERIES CHANNEL in the Added Request Types field.

-
Add the Channel-ID and List-ID to the File field using the format:
(UCq-Fj5jknLsUf-MWSy4_brA|PL9bw4S5ePsEE2KMw53rY40A00t4I-otqy)Save the policy.

Create Access Profiles Policy
-
Navigate to the Access Profiles section.

-
Edit the default policy BLOCK YOUTUBE CHANNELS:
- Select T-SERIES CHANNEL in the Request Types field
- Set Action to DO_NOT_BYPASS

-
Save the policy.

Verification and Evidence
-
Access the T-Series channel URL:
https://www.youtube.com/channel/UCq-Fj5jknLsUf-MWSy4_brAThe channel displays the Access Blocked template.

-
Access any T-Series playlist video to confirm blocking.

This configuration blocks videos accessed from the channel page only. Videos from feed links or embedded YouTube videos are not blocked.
To block all videos from a channel, add all playlist List-IDs and individual video file portions to the Request Types File field.
Next steps
- Allow Specific YouTube Channel and Its Playlist to allow only approved channels.
- Access Restriction for policy and profile configuration.