Difference between revisions of "Block Specific Youtube Channel"

From Secure Web Gateway
en>Santosh.thorat
 
 
(One intermediate revision by one other user not shown)
Line 67: Line 67:


|-
|-
|  
|
 
 


9. You have to add Channel-ID and List-Id in File Field. You have already saved them in notepad for you reference. Refer to [http://2017.swg.safesquid.com/wiki/Block_Specific_Youtube_Channel#Extract_Channel-ID_from_Youtube_Channel Channel-ID extraction] and [http://2017.swg.safesquid.com/wiki/Block_Specific_Youtube_Channel#Extract_List-ID_from_Youtube_Channel List-Id extraction].<br/> &nbsp; Here for T-Series channel we added&nbsp; '''(UCq-Fj5jknLsUf-MWSy4_brA&#124;PL9bw4S5ePsEE2KMw53rY40A00t4I-otqy)''' in File Field.<br/> &nbsp; Save the Policy created.<br/> [[File:Youtube Channel Block (10).PNG|border|center|Youtube Channel Block (10).PNG|link=]]
9. You have to add Channel-ID and List-Id in File Field. You have already saved them in notepad for you reference. Refer to [https://docs.safesquid.com/wiki/Block_Specific_Youtube_Channel#Extract_Channel-ID_from_Youtube_Channel Channel-ID extraction] and [https://docs.safesquid.com/wiki/Block_Specific_Youtube_Channel#Extract_List-ID_from_Youtube_Channel List-Id extraction].<br/> &nbsp; Here for T-Series channel we added&nbsp; '''(UCq-Fj5jknLsUf-MWSy4_brA&#124;PL9bw4S5ePsEE2KMw53rY40A00t4I-otqy)''' in File Field.<br/> &nbsp; Save the Policy created.<br/> [[File:Youtube Channel Block (10).PNG|border|center|Youtube Channel Block (10).PNG|link=]]


|-
|-

Latest revision as of 13:07, 15 June 2022

Overview

Prevent users to access specific YouTube Channel like 'T-Series'.

Note : Blocking of Specific YouTube channel and allowing all the other youTube videos is a hypothetical scenario. YouTube website is not designed for such hypothetical situation. However, this how-to will demonstrate to block a specific YouTube Channel and one of its playlist videos.

Prerequisites

  • HTTPS Inspection should be enabled in SafeSquid. If not enabled, you can check our document - How to enable HTTPS Inspection
  • You need the YouTube Channel-ID and List-ID. You have to extract Channel-ID and List-ID from YouTube URL before creating rules in SafeSquid.

Policy Creation

We can achieve the above by following steps –

Extract Channel-ID from Youtube Channel

1. Open the Youtube channel you want to block. Here T-Series channel is taken as an example.
  Here you will get Channel-ID from the referer URL. Channel-ID is the preceding portion of the URL after 'channel/' part. Save this part on notepad for reference.

 T-Series Channel URL : https://www.youtube.com/channel/UCq-Fj5jknLsUf-MWSy4_brA
 Channel-ID: UCq-Fj5jknLsUf-MWSy4_brA
 For List-ID extraction click on PLAY ALL link on the page as shown below.
Youtube Channel Block (1).PNG

 

Extract List-ID from Youtube Channel

2. Extract List-ID from any of the subsequent URL.
  List-ID is the preceding portion of the URL after '&list=' part. Save this part on notepad for reference.

 T-Series Channel subsequent URL: https://www.youtube.com/watch?v=IgKdXLfxgQQ&list=PL9bw4S5ePsEE2KMw53rY40A00t4I-otqy
  List-ID: PL9bw4S5ePsEE2KMw53rY40A00t4I-otqy
Youtube Channel Block (2).PNG

 You will find every Video in the list contain List-ID of the channel.
 T-Series Channel subsequent URL: https://www.youtube.com/watch?v=9FjuBvzF1E4&index=2&list=PL9bw4S5ePsEE2KMw53rY40A00t4I-otqy
  List-ID: PL9bw4S5ePsEE2KMw53rY40A00t4I-otqy
Youtube Channel Block (3).PNG

 

3. After extracting the Channel-ID and List-ID we have create policies in SafeSquid.
  Go to SafeSquid Web-GUI and click on Configure to create Policies.
Youtube Channel Block (4).PNG

 

Create Policy in Request Types Section

4. Click on Custom Settings to open Request Types Section.
Youtube Channel Block (5).PNG

 

6. Make sure the Global of Request Types Section is Enabled to True.
Youtube Channel Block (6).PNG

 

7. Click on Request Types tab to create new policy.
Youtube Channel Block (8).PNG

 

8. Add Youtube Channels in Request Types Field. Create new Request Profile as T-SERIES CHANNEL in Added Request Types Field.
Youtube Channel Block (9).PNG

 

9. You have to add Channel-ID and List-Id in File Field. You have already saved them in notepad for you reference. Refer to Channel-ID extraction and List-Id extraction.
  Here for T-Series channel we added  (UCq-Fj5jknLsUf-MWSy4_brA|PL9bw4S5ePsEE2KMw53rY40A00t4I-otqy) in File Field.
  Save the Policy created.
Youtube Channel Block (10).PNG

 

Create Policy in Access Profiles Section

10. Go to Access Profiles section.
Youtube Channel Block (11).PNG

 

11. Edit the Default Policy already created in SafeSquid named BLOCK YOUTUBE CHANNELS. Select T-SERIES CHANNEL in Request Types Field. Set Action Field as DO_NOT_BYPASS.
Youtube Channel Block (12).PNG

 

12. Save the policy created in Access Restrictions.
Youtube Channel Block (13).PNG

 

Test the Youtube Channel Blocked

13.  Now try to open the Youtube Channel of T-Series https://www.youtube.com/channel/UCq-Fj5jknLsUf-MWSy4_brA.
  All the Youtube channel of T-series will be blocked and Access block Template will be shown.
Youtube Channel Block (14).PNG

 

 If you try to open any of the subsequent Youtube videos of T-Series Channel like https://www.youtube.com/watch?v=IgKdXLfxgQQ&list=PL9bw4S5ePsEE2KMw53rY40A00t4I-otqy
 It will be blocked and Access block Template will be shown.
Youtube Channel Block (15).PNG


Note :

  • This configuration will work only for videos sourced from the channel page and not from the feeds links or YouTube Videos embedded in website.
  • To block every videos of any specific YouTube Channel you have to insert List-ID's (of every playlists in that channel) and file part (of each individual unlisted videos) of URL in the File field of Request Types Section.