Not able to block youtube shorts on phone

74 views
Skip to first unread message

Jasenko Rakovic

unread,
Oct 4, 2023, 6:06:05 PM10/4/23
to Diladele Web Safety
In am trying to block m.youtube.com/shorts/* but no luck.
Everything else is fine.

Screenshot 2023-10-05 at 00.00.27.pngScreenshot 2023-10-05 at 00.00.35.png

rafael....@diladele.com

unread,
Oct 5, 2023, 3:47:46 AM10/5/23
to Diladele Web Safety
Good morning Jasenko,


Best regards,
Rafael

Jasenko Rakovic

unread,
Oct 5, 2023, 10:55:05 AM10/5/23
to web-s...@googlegroups.com
Good day Rafael 🙂

I am not using App, its via tablet browser, directly on m.youtube.com

--
You received this message because you are subscribed to a topic in the Google Groups "Diladele Web Safety" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/web-safety/A9rDngdOJO8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to web-safety+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/web-safety/710ee4bf-5ede-48f6-b03d-e5e702ea5da7n%40googlegroups.com.

Rafael Akchurin

unread,
Oct 6, 2023, 2:37:14 AM10/6/23
to web-s...@googlegroups.com
May I ask an example of URL which should be blocked and is not? With the corresponding regex which is not triggered as you would expect.

You are doing https decryption, right?

Best regards,
Rafael

Op 5 okt. 2023 om 16:55 heeft Jasenko Rakovic <jasenko...@maratus.xyz> het volgende geschreven:



Jasenko Rakovic

unread,
Oct 7, 2023, 7:37:29 AM10/7/23
to Diladele Web Safety
Yes decryption is working fine and  it works for channel and single video restriction as designed.

None of these rules work for url https://m.youtube.com/shorts/vqoIomGs_k0

https://.*youtube.com/shorts*  
^https:\/\/m\.youtube\.com\/shorts\/[^ \n]+$
https:\/\/m\.youtube\.com\/shorts*
https://.youtube\.com\/shorts*  
https://.youtube\.com\shorts*  
https://.youtube\.com/shorts*  
.*shorts.*  
https://m.youtube.com/shorts/*  
https://m.youtube.com/shorts/.*
https://m.youtube.com/shorts/.  
https:\/\/*\.youtube\.com\/.    
^https?://m\.youtube\.com/shorts/.*
^(?:https?:\/\/\w*\.?)?(youtube\.com\/|youtu\.be?\/)+(watch\?v=|shorts\/)

rafael....@diladele.com

unread,
Oct 9, 2023, 7:46:34 AM10/9/23
to Diladele Web Safety
So for me to better understand:

The URL block regex rules you mentioned below do NOT block https://m.youtube.com/shorts/vqoIomGs_k0

https://.*youtube.com/shorts*  
^https:\/\/m\.youtube\.com\/shorts\/[^ \n]+$
https:\/\/m\.youtube\.com\/shorts*
https://.youtube\.com\/shorts*  
https://.youtube\.com\shorts*  
https://.youtube\.com/shorts*  
.*shorts.*  
https://m.youtube.com/shorts/*  
https://m.youtube.com/shorts/.*
https://m.youtube.com/shorts/.  
https:\/\/*\.youtube\.com\/.    
^https?://m\.youtube\.com/shorts/.*
^(?:https?:\/\/\w*\.?)?(youtube\.com\/|youtu\.be?\/)+(watch\?v=|shorts\/) 

Correct?
If so see if the following rule would block it:

https?:\/\/m\.youtube\.com\/shorts\/.*

I have tested it using https://regex101.com/#python - seems to trigger the match.

Best regards,
Rafael

Shepherd Follower

unread,
Oct 9, 2023, 11:05:28 AM10/9/23
to Diladele Web Safety
I too would like to block the shorts videos so please let us know if there is a solution out there for that on this filtering platform.
-Stephen Martin

justina...@gmail.com

unread,
Oct 27, 2023, 11:17:32 AM10/27/23
to Diladele Web Safety
I can also confirm with the above -- it appears that regex blocking of Youtube shorts does not work. I'm testing on most-recent version of Websafety virtual appliance.

Reference Regex: \/*youtube\.com\/shorts\/.*
URL: https://www.youtube.com/shorts/roc6D14F7lg

Please advise -- Thanks!

Rafael Akchurin

unread,
Oct 27, 2023, 11:20:12 AM10/27/23
to web-s...@googlegroups.com

 

From: web-s...@googlegroups.com <web-s...@googlegroups.com> On Behalf Of justina...@gmail.com
Sent: Friday, October 27, 2023 5:18 PM
To: Diladele Web Safety <web-s...@googlegroups.com>
Subject: Re: Not able to block youtube shorts on phone

 

I can also confirm with the above -- it appears that regex blocking of Youtube shorts does not work. I'm testing on most-recent version of Websafety virtual appliance.

 

Reference Regex: \/*youtube\.com\/shorts\/.*
URL: https://www.youtube.com/shorts/roc6D14F7lg

 

Please advise -- Thanks!

On Monday, October 9, 2023 at 11:05:28 AM UTC-4 shepherdf...@gmail.com wrote:

I too would like to block the shorts videos so please let us know if there is a solution out there for that on this filtering platform.

-Stephen Martin

On Wednesday, October 4, 2023 at 6:06:05 PM UTC-4 jasenko...@maratus.xyz wrote:

In am trying to block m.youtube.com/shorts/* but no luck.

Everything else is fine.

 

--
You received this message because you are subscribed to a topic in the Google Groups "Diladele Web Safety" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/web-safety/A9rDngdOJO8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to web-safety+...@googlegroups.com.

justina...@gmail.com

unread,
Oct 27, 2023, 12:42:16 PM10/27/23
to Diladele Web Safety
Log file sent as requested.

rafael....@diladele.com

unread,
Nov 1, 2023, 4:41:17 AM11/1/23
to Diladele Web Safety
Ok - the URL regex "https?\:\/\/.*\.youtube\.com\/shorts.*" blocks the URL for shorts.

BUT - you tube app running in the browser does not use that URL to display shorts - it uses a very obscure series of requests to .googlevideo.com site to actually retrieve the video stream for that short video.
Proxy works at the per request level - and I am not able to understand to what short video the request (see below) refers. Hence I am not able to block it.

The whole YT filtering functionality become obsolete due to changes in you tube implementation and most probably we will completely remove this from the application.
Please if you have any experience in this or can think out the way to identify a video from the stream - share it.

Sorry,
Raf

https://rr3---sn-uhvcpaxoa-guhe.googlevideo.com/videoplayback?expire=1698849275&ei=mw1CZaPYIYzigAft2a2IDw&ip=82.172.135.168&id=o-ANyMmKik9xP9j1zFl-1djeLPnVjQUaEmNnVm0X4xmfVj&itag=396&aitags=133%2C134%2C135%2C136%2C137%2C160%2C242%2C243%2C244%2C247%2C248%2C278%2C394%2C395%2C396%2C397%2C398%2C399&source=youtube&requiressl=yes&mh=X0&mm=31%2C29&mn=sn-uhvcpaxoa-guhe%2Csn-5hnekn7d&ms=au%2Crdu&mv=m&mvi=3&pl=22&ctier=SH&initcwndbps=932500&spc=UWF9f2mPJDBFpU2eZmKdp-v_wwNSfhw&vprv=1&svpuc=1&mime=video%2Fmp4&ns=naGhyHt3j_5E0y2DwJNse4AP&gir=yes&clen=1366487&dur=41.840&lmt=1694456928124371&mt=1698827111&fvip=3&keepalive=yes&fexp=24007246&beids=24350018&c=WEB&txp=5537434&n=kK_mfR3Rj0wXUQ&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Cctier%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig=AGM4YrMwRAIgWn3BVwZlWj-rV-V9igKdsQd6v-e5qeE7dBeyLTzCS8ACIGecc3W9lFAnm1NmVF3EbmjIE9wtMnzmwWtd-xm4ZcVK&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=AK1ks_kwRQIhAM9DFylNQ2_hJ-VDxvciGEOmYZ393fRQdEXsJpeANBr_AiBT6o8k1doMbMajWNKzOi-i5aOBw9NHkeCNecKGzAfReg%3D%3D&alr=yes&cpn=CgILke1z1SzQAuwO&cver=2.20231030.04.00&range=0-81330&rn=26&rbuf=0&pot=IjLvje-Mis_iFqzqm_m45N-_vryI9I7Jh92N9IbbgrmG_K3npsSs6qXCu8-mzqrqrqjcyQ==&ump=1&srfvp=1&altitags=395%2C394

justina...@gmail.com

unread,
Nov 1, 2023, 9:02:01 AM11/1/23
to Diladele Web Safety
Thank you for the info here Rafael -- am I reading your message correctly that the main issue arises here with the fact that the Browser is the issue and not the YT app itself? For instance, will the above Regex block YT shorts on the ios app?

rafael....@diladele.com

unread,
Nov 1, 2023, 9:10:41 AM11/1/23
to Diladele Web Safety
Unfortunately it is the way how youtube works - it is not possible to block it  on the proxy level - not for browser and not for ios app.
Reply all
Reply to author
Forward
0 new messages