> ## Documentation Index
> Fetch the complete documentation index at: https://docs.safesquid.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Block Specific YouTube Channel

> Block a specific YouTube channel using SafeSquid by creating policies based on Channel-ID and List-ID for targeted video restriction.

## Problem

Security teams need predictable control over app and web usage to reduce policy bypass and data-risk exposure.

## Benefits

You can enforce policy decisions consistently with SafeSquid while preserving legitimate business workflows.

## Advantages

You keep actionable policy control close to operations, with verifiable outcomes in logs and policy behavior.

## Call to action

Use the steps in this guide to implement the control, then validate behavior with a real user-flow test.

# Block one YouTube channel while allowing other content

Block access to specific YouTube channels (e.g., T-Series) while allowing other YouTube content.

:::note
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](/SSL_Inspection).
* Extract the YouTube **Channel-ID** and **List-ID** from the target channel URL

## Extract Channel-ID and List-ID

1. Open the YouTube channel to block (e.g., T-Series).

2. 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`

   <img src="https://mintcdn.com/safe-squid-labs-12a0916f/RBjPd0RQsKIeayde/images/How_To/Block_Specific_Youtube_Channel/image1.webp?fit=max&auto=format&n=RBjPd0RQsKIeayde&q=85&s=96c9df5c1be0d1d8122e48946539bfce" alt="Extract Channel-ID from YouTube Channel" width="1280" height="720" data-path="images/How_To/Block_Specific_Youtube_Channel/image1.webp" />

3. Click **PLAY ALL** on the channel page to access a playlist.

4. 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`

   <img src="https://mintcdn.com/safe-squid-labs-12a0916f/RBjPd0RQsKIeayde/images/How_To/Block_Specific_Youtube_Channel/image2.webp?fit=max&auto=format&n=RBjPd0RQsKIeayde&q=85&s=323964d7cbcb86eae8da814d45f46362" alt="Extract List-ID from YouTube Channel" width="1280" height="720" data-path="images/How_To/Block_Specific_Youtube_Channel/image2.webp" />

   <img src="https://mintcdn.com/safe-squid-labs-12a0916f/RBjPd0RQsKIeayde/images/How_To/Block_Specific_Youtube_Channel/image3.webp?fit=max&auto=format&n=RBjPd0RQsKIeayde&q=85&s=309b8b9879aa21e082ac8ee75d258cb3" alt="List-ID in subsequent videos" width="1280" height="720" data-path="images/How_To/Block_Specific_Youtube_Channel/image3.webp" />

## Create Request Types Policy

5. Open SafeSquid WebGUI and click **Configure**.

   <img src="https://mintcdn.com/safe-squid-labs-12a0916f/RBjPd0RQsKIeayde/images/How_To/Block_Specific_Youtube_Channel/image4.webp?fit=max&auto=format&n=RBjPd0RQsKIeayde&q=85&s=3f87e23b71358aa896623ae443da2017" alt="SafeSquid Configure section" width="1280" height="720" data-path="images/How_To/Block_Specific_Youtube_Channel/image4.webp" />

6. Click **Custom Settings** to open the Request Types section.

   <img src="https://mintcdn.com/safe-squid-labs-12a0916f/RBjPd0RQsKIeayde/images/How_To/Block_Specific_Youtube_Channel/image5.webp?fit=max&auto=format&n=RBjPd0RQsKIeayde&q=85&s=1434556aebb69f9e29285a086d11b0be" alt="Custom Settings menu" width="1280" height="720" data-path="images/How_To/Block_Specific_Youtube_Channel/image5.webp" />

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

   <img src="https://mintcdn.com/safe-squid-labs-12a0916f/RBjPd0RQsKIeayde/images/How_To/Block_Specific_Youtube_Channel/image6.webp?fit=max&auto=format&n=RBjPd0RQsKIeayde&q=85&s=d1a20b2dc79089058cfa80a7d3acbff3" alt="Enable Global Request Types" width="1280" height="720" data-path="images/How_To/Block_Specific_Youtube_Channel/image6.webp" />

8. Click the **Request Types** tab to create a new policy.

   <img src="https://mintcdn.com/safe-squid-labs-12a0916f/RBjPd0RQsKIeayde/images/How_To/Block_Specific_Youtube_Channel/image7.webp?fit=max&auto=format&n=RBjPd0RQsKIeayde&q=85&s=2fc7e690cd88d13f89c0bf6a0f32b2a3" alt="Request Types tab" width="1280" height="720" data-path="images/How_To/Block_Specific_Youtube_Channel/image7.webp" />

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

   <img src="https://mintcdn.com/safe-squid-labs-12a0916f/RBjPd0RQsKIeayde/images/How_To/Block_Specific_Youtube_Channel/image8.webp?fit=max&auto=format&n=RBjPd0RQsKIeayde&q=85&s=6f2e8cb40ce635211d42fb4e589a4fd5" alt="Create T-SERIES CHANNEL profile" width="1280" height="720" data-path="images/How_To/Block_Specific_Youtube_Channel/image8.webp" />

10. Add the Channel-ID and List-ID to the **File** field using the format:

    ```
    (UCq-Fj5jknLsUf-MWSy4_brA|PL9bw4S5ePsEE2KMw53rY40A00t4I-otqy)
    ```

    Save the policy.

    <img src="https://mintcdn.com/safe-squid-labs-12a0916f/RBjPd0RQsKIeayde/images/How_To/Block_Specific_Youtube_Channel/image9.webp?fit=max&auto=format&n=RBjPd0RQsKIeayde&q=85&s=1068ef25caa87d63e1e33f315bc2a1c3" alt="Add Channel-ID and List-ID" width="1280" height="720" data-path="images/How_To/Block_Specific_Youtube_Channel/image9.webp" />

## Create Access Profiles Policy

11. Navigate to the **Access Profiles** section.

    <img src="https://mintcdn.com/safe-squid-labs-12a0916f/RBjPd0RQsKIeayde/images/How_To/Block_Specific_Youtube_Channel/image10.webp?fit=max&auto=format&n=RBjPd0RQsKIeayde&q=85&s=565e7f9cef2361be6fb841efc1b419f2" alt="Access Profiles section" width="1280" height="720" data-path="images/How_To/Block_Specific_Youtube_Channel/image10.webp" />

12. Edit the default policy **BLOCK YOUTUBE CHANNELS**:

    * Select **T-SERIES CHANNEL** in the Request Types field
    * Set Action to **DO\_NOT\_BYPASS**

    <img src="https://mintcdn.com/safe-squid-labs-12a0916f/RBjPd0RQsKIeayde/images/How_To/Block_Specific_Youtube_Channel/image11.webp?fit=max&auto=format&n=RBjPd0RQsKIeayde&q=85&s=c57276d8e54a3c1ec9d7211a826d8fc4" alt="Configure Access Profile" width="1280" height="720" data-path="images/How_To/Block_Specific_Youtube_Channel/image11.webp" />

13. Save the policy.

    <img src="https://mintcdn.com/safe-squid-labs-12a0916f/RBjPd0RQsKIeayde/images/How_To/Block_Specific_Youtube_Channel/image12.webp?fit=max&auto=format&n=RBjPd0RQsKIeayde&q=85&s=a569805e3beffda38bcf0828c62c3820" alt="Save policy" width="1280" height="720" data-path="images/How_To/Block_Specific_Youtube_Channel/image12.webp" />

## Verification and Evidence

14. Access the T-Series channel URL: `https://www.youtube.com/channel/UCq-Fj5jknLsUf-MWSy4_brA`

    The channel displays the Access Blocked template.

    <img src="https://mintcdn.com/safe-squid-labs-12a0916f/RBjPd0RQsKIeayde/images/How_To/Block_Specific_Youtube_Channel/image13.webp?fit=max&auto=format&n=RBjPd0RQsKIeayde&q=85&s=a73efe761baa8876ef4d9d8a5533f677" alt="Channel blocked" width="1280" height="720" data-path="images/How_To/Block_Specific_Youtube_Channel/image13.webp" />

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

    <img src="https://mintcdn.com/safe-squid-labs-12a0916f/RBjPd0RQsKIeayde/images/How_To/Block_Specific_Youtube_Channel/image14.webp?fit=max&auto=format&n=RBjPd0RQsKIeayde&q=85&s=3bb92d6db51d965040a2b036ebdfca27" alt="Playlist video blocked" width="1280" height="720" data-path="images/How_To/Block_Specific_Youtube_Channel/image14.webp" />

:::note
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](/Allow_Specific_YouTube_Channel_and_its_Playlist) to allow only approved channels.
* [Access Restriction](/Access_Restriction) for policy and profile configuration.


## Related topics

- [Allow Specific YouTube Channel and its Playlist](/use_cases/access_restriction/allow_specific_youtube_channel_and_its_playlist.md)
- [YouTube API Integration](/use_cases/access_restriction/youtube_api_integration_with_safesquid_to_allow_specific_youtube_videos.md)
- [Profiling Engine](/use_cases/profiling_engine/profiling_engine.md)
- [Header Filter Configuration and Reference](/use_cases/header_rewrite/header_filter_configuration.md)
- [Content rewrite](/admin_guide/filtering_and_privacy/content_modifier.md)
