Brook & Shiliew MITM: 屏蔽 Youtube app 的广告

https://www.txthinking.com
Created at: 18 Nov 2022
Updated at: 18 May 2022
cloud@txthinking.com

Brook & Shlliew

https://github.com/txthinking/brook

https://shiliew.com

版本

这里以 iOS 为例.

首先安装根证书

https://www.youtube.com/watch?v=HSGPC2vpDGk

前提

规则

  1. MITM -> MITM on
  2. MITM -> MITM with Body off
  3. MITM List -> https://txthinking.github.io/bypass/mitm_youtubeappadblock.txt. 注意:如果你开启了 bypass,不要 bypass 掉这个列表里的域名
  4. MITM Script -> https://txthinking.github.io/bypass/mitm_youtubeappadblock.tengo

更多:https://github.com/txthinking/bypass

TODO

Youtube 有时会走 HTTP3 有时会走 HTTP2,未十分清楚何时走 HTTP3
Brook 和 Shiliew 的 MITM 目前支持拦截 HTTP/1.1 和 HTTP2
其实 Brook 和 Shiliew 可以做到阻断 HTTP3,让其必须走 HTTP2,但目前不想这么做。

未来版本会研究支持直接拦截 HTTP3,敬请期待