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
任意のドメインを破壊
Search
おがどら
October 13, 2025
52
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
任意のドメインを破壊
2021年にサークル内発表で用いたものです。(途中の動画がPDFの関係上映っていません)
おがどら
October 13, 2025
More Decks by おがどら
See All by おがどら
LambdaとSQLiteでシステム構築
ogadra
1
590
hono-remix-adapter使ってみた
ogadra
0
400
Terraformと AWS Lambdaで WebSocket通信
ogadra
1
260
Featured
See All Featured
Digital Projects Gone Horribly Wrong (And the UX Pros Who Still Save the Day) - Dean Schuster
uxyall
1
2.4k
Exploring the relationship between traditional SERPs and Gen AI search
raygrieselhuber
PRO
2
4.2k
Utilizing Notion as your number one productivity tool
mfonobong
4
550
Mozcon NYC 2025: Stop Losing SEO Traffic
samtorres
1
490
Reality Check: Gamification 10 Years Later
codingconduct
0
2.3k
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
360
30k
Producing Creativity
orderedlist
PRO
348
40k
Unsuck your backbone
ammeep
672
58k
How People are Using Generative and Agentic AI to Supercharge Their Products, Projects, Services and Value Streams Today
helenjbeal
1
270
Rebuilding a faster, lazier Slack
samanthasiow
85
9.6k
The AI Search Optimization Roadmap by Aleyda Solis
aleyda
1
6.1k
Statistics for Hackers
jakevdp
799
230k
Transcript
OGADRA OGADRA (@CONST_MYSELF) (@CONST_MYSELF) ogadra - (@const_myself)
https://twitter.com/const_myself ogadra - (@const_myself)
これまでの発表 これまでの発表 ogadra - (@const_myself)
ogadra - (@const_myself)
ogadra - (@const_myself)
ogadra - (@const_myself)
ogadra - (@const_myself)
[任意のドメイン]を破壊 [任意のドメイン]を破壊 ogadra - (@const_myself)
これをYouTubeでもやりたい ogadra - (@const_myself)
だが、YouTubeにはミュート機能はない ogadra - (@const_myself)
チャンネル登録を解除しても、 ホームに無限にいい感じの動画が レコメンドされ続ける ogadra - (@const_myself)
そうだ、アクセスを不可能にしよう そうだ、アクセスを不可能にしよう ogadra - (@const_myself)
~実演~ ogadra - (@const_myself)
構成 dnsmasq Ngnix DNSとHTTPSが建てられれば同様のことは出来ます ※Nginxはエンジンエックスと読みます ogadra - (@const_myself)
DNSとは ogadra - (@const_myself)
今回は、このDNSサーバーで嘘の情報を教える ogadra - (@const_myself)
dnsmasqというアプリケーションで 簡単にDNSサーバーを建てられる ogadra - (@const_myself)
/etc/hosts 192.168.0.7 youtube.com www.youtube.com ogadra - (@const_myself)
NginxというHTTPサーバーで リダイレクトの設定をする ogadra - (@const_myself)
HTTPSの設定 HTTPSの設定 ogadra - (@const_myself)
我々がアクセスしようとしているのは なので、https化が必要 https://youtube.com ogadra - (@const_myself)
SSL証明書の生成には mkcertというアプリケーションを用いる ogadra - (@const_myself)
するとカレントディレクトリ内に youtube.com+1-key.pem youtube.com+1.pem が生成される $ brew install mkcert $ mkcert
-install $ mkcert youtube.com *.youtube.com ogadra - (@const_myself)
Nginx の default.conf server { listen 443 ssl; server_name localhost;
ssl_certificate /etc/certs/youtube.com+1.pem; ssl_certificate_key /etc/certs/youtube.com+1-key.pem; rewrite ^(.*)$ https://youareanidiot.cc/ permanent; } ogadra - (@const_myself)
これで、SSL化ができる あとは実機なりDockerなりで動かせばおk ogadra - (@const_myself)
クライアント側の準備 クライアント側の準備 ogadra - (@const_myself)
DNSサーバーの設定をする ogadra - (@const_myself)
nslookupコマンドで 意図したアドレスが返ってきているか確認 ogadra - (@const_myself)
ここまででおかしい場合 DNSサーバーと同一ネットワークに存在するか DNSサーバーが立ち上がっているか DNSサーバーのファイアウォールの設定 クライアントのDNS設定 を見直す ogadra - (@const_myself)
ブラウザでアクセス! の前に… ogadra - (@const_myself)
chromeの場合 chrome://net-internals/#dns にアクセスしてDNSキャッシュを削除 ogadra - (@const_myself)
詳細設定 > セキュリティから セキュアDNSを使用するをオフ ogadra - (@const_myself)
ogadra - (@const_myself)
Safariの場合 をTerminalで実行してDNSキャッシュを削除 $ sudo killall -HUP mDNSResponder ogadra - (@const_myself)
youtube.comにアクセスしようとすると… ogadra - (@const_myself)
ogadra - (@const_myself)
この場合、 サーバーの証明書をインストールするか、 とタイプすると進めるようになる (次回以降この操作は不要) thisisunsafe ogadra - (@const_myself)
DONE DONE ogadra - (@const_myself)
https://twitter.com/const_myself ogadra - (@const_myself)
ogadra - (@const_myself)
ogadra - (@const_myself)