Skip to main content

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.
  • 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
    Extract Channel-ID from YouTube Channel
  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
    Extract List-ID from YouTube Channel List-ID in subsequent videos

Create Request Types Policy

  1. Open SafeSquid WebGUI and click Configure. SafeSquid Configure section
  2. Click Custom Settings to open the Request Types section. Custom Settings menu
  3. Ensure the Global setting in Request Types is set to True. Enable Global Request Types
  4. Click the Request Types tab to create a new policy. Request Types tab
  5. Create a new Request Profile named T-SERIES CHANNEL in the Added Request Types field. Create T-SERIES CHANNEL profile
  6. Add the Channel-ID and List-ID to the File field using the format:
    Save the policy. Add Channel-ID and List-ID

Create Access Profiles Policy

  1. Navigate to the Access Profiles section. Access Profiles section
  2. Edit the default policy BLOCK YOUTUBE CHANNELS:
    • Select T-SERIES CHANNEL in the Request Types field
    • Set Action to DO_NOT_BYPASS
    Configure Access Profile
  3. Save the policy. Save policy

Verification and Evidence

  1. Access the T-Series channel URL: https://www.youtube.com/channel/UCq-Fj5jknLsUf-MWSy4_brA The channel displays the Access Blocked template. Channel blocked
  2. Access any T-Series playlist video to confirm blocking. Playlist video blocked
:::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