Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
スマホから Youtube Shortsを見られないようにする
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
lemolatoon
October 12, 2025
Programming
38k
29
Share
スマホから Youtube Shortsを見られないようにする
lemolatoon
October 12, 2025
More Decks by lemolatoon
See All by lemolatoon
お家miniPCを使ってミリしらでkubernetes clusterたててみる
lemolatoon
1
290
【Rust × C++】 夢の共演を試した話
lemolatoon
1
1.8k
no_stdでもasyncしたい
lemolatoon
0
270
Rustの手続きマクロで黒魔術入門
lemolatoon
2
1.4k
Other Decks in Programming
See All in Programming
ReactとSvelteのその先、Ripple-TS / Beyond React and Svelte: Ripple-TS
ssssota
3
2k
脅威をエンジニアリングの糧にして――現場編 / Turning Threats into Engineering Fuel — Field Edition
nrslib
0
250
TypeScriptだけでAIエージェントを作る フロント・エージェント・インフラのフルスタック実践
har1101
6
1.3k
SPMマルチモジュールで テストカバレッジを取得する技法
yosshi4486
0
140
TSKaigi Night Talks 2026_TypeScriptでサプライチェーンの整合性を型に閉じ込める
geekplus_tech
0
250
Lessons from Spec-Driven Development
simas
PRO
0
130
開発体験を左右するライブラリの API 設計 - GraphQL スキーマ構築ライブラリから考える #tskaigi
izumin5210
2
1.6k
DynamoDBには集計系のクエリがないけどなんとかしたい
musan
1
130
AI 時代のソフトウェア設計の学び方
masuda220
PRO
29
12k
Swiftのレキシカルスコープ管理
kntkymt
0
210
Stage 3 Decorators でできること / できないこと / TSKaigi 2026
susisu
1
1.5k
並列実装の現場、2ヶ月間実務でAIを使い倒したAIもPCも私も限界が近い
ming_ayami
0
100
Featured
See All Featured
AI Search: Where Are We & What Can We Do About It?
aleyda
0
7.5k
How to train your dragon (web standard)
notwaldorf
97
6.7k
The SEO Collaboration Effect
kristinabergwall1
1
470
A designer walks into a library…
pauljervisheath
211
24k
The Organizational Zoo: Understanding Human Behavior Agility Through Metaphoric Constructive Conversations (based on the works of Arthur Shelley, Ph.D)
kimpetersen
PRO
0
350
The Invisible Side of Design
smashingmag
302
52k
Performance Is Good for Brains [We Love Speed 2024]
tammyeverts
12
1.7k
The Straight Up "How To Draw Better" Workshop
denniskardys
239
140k
Making Projects Easy
brettharned
120
6.7k
How to build an LLM SEO readiness audit: a practical framework
nmsamuel
1
770
New Earth Scene 8
popppiees
3
2.3k
The Myth of the Modular Monolith - Day 2 Keynote - Rails World 2024
eileencodes
28
3.5k
Transcript
スマホから Youtube Shorts を見られないようにする lemolatoon
みなさん日常をスマホに蝕まれていませんか?
私は蝕まれています
私は蝕まれています • 帰宅してからシャワーを浴びるまで1時間 • シャワーを浴びてから夜ご飯を用意するまで1時間 • 寝る直前に1時間...
通信をブロックしよう! どうやって?? 1. 特定のDNSクエリをブロックする (Easy) 2. URLを基にHTTPリクエストをブロックする (Hard)
方法案 1. 自宅にDNSサーバーを建てる • Youtube は shorts と普通の動画はドメイン違う?
方法案 1. 自宅にDNSサーバーを建てる • Youtube は shorts と普通の動画でドメイン違う? ◦ No:
単に特定のドメインをブロックするだけでは❌ •
方法案 1. 自宅にDNSサーバーを建てる • Youtube は shorts と普通の動画はドメイン違う? ◦ No:
単に特定のドメインをブロックするだけでは❌ • googlevideo.com を自宅サーバーでプロキシ
方法案 1. 自宅にDNSサーバーを建てる • Youtube は shorts と普通の動画はドメイン違う? ◦ No:
単に特定のドメインをブロックするだけでは❌ • googlevideo.com を自宅nginxでプロキシ ◦ shortsだと *&ctier=SH* というがURLに含まれる ◦ できなくはなさそう ◦ URLを見るには自分で証明書作る必要あり ◦ 参考: Blocking YouTube Shorts with Nginx and NextDNS
方法案 1. 自宅にDNSサーバーを建てる • Youtube は shorts と普通の動画はドメイン違う? ◦ No:
単に特定のドメインをブロックするだけでは❌ • googlevideo.com を自宅nginxでプロキシ ◦ shortsだと *&ctier=SH* というがURLに含まれる ◦ できなくはなさそう ◦ URLを見るには自分で証明書作る必要あり ◦ 参考: Blocking YouTube Shorts with Nginx and NextDNS ちょっと大変そう
方法案 2. Cloudflare Oneを使う • すべての通信をCloudflareでプロキシする仕組み • ついでにDNSクエリをブロックできる • 証明書を発行して、clientにインストールすれば、HTTPの
フィルタリングも可能 • 参考: What is Cloudflare One?
Cloudflare Oneを使う クライアントの設定 • 証明書をインストール • アプリをインストール
Cloudflare Oneを使う Cloudflareの設定 • UIから特定のURLパターンをフィルターする
結果 無事ブロックに成功!
おまけ Twitterのおすすめ欄もブロックする
おまけ Twitterのおすすめ欄もブロックする 成功!