Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
任意のドメインを破壊
Search
おがどら
October 13, 2025
59
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
610
hono-remix-adapter使ってみた
ogadra
0
400
Terraformと AWS Lambdaで WebSocket通信
ogadra
1
270
Featured
See All Featured
Building a A Zero-Code AI SEO Workflow
portentint
PRO
0
730
技術選定の審美眼(2025年版) / Understanding the Spiral of Technologies 2025 edition
twada
PRO
120
120k
Leveraging Curiosity to Care for An Aging Population
cassininazir
1
500
The SEO Collaboration Effect
kristinabergwall1
1
570
"I'm Feeling Lucky" - Building Great Search Experiences for Today's Users (#IAC19)
danielanewman
230
23k
Public Speaking Without Barfing On Your Shoes - THAT 2023
reverentgeek
1
570
What's in a price? How to price your products and services
michaelherold
247
13k
<Decoding/> the Language of Devs - We Love SEO 2024
nikkihalliwell
1
330
XXLCSS - How to scale CSS and keep your sanity
sugarenia
250
1.3M
Digital Projects Gone Horribly Wrong (And the UX Pros Who Still Save the Day) - Dean Schuster
uxyall
1
2.9k
Crafting Experiences
bethany
1
340
Jess Joyce - The Pitfalls of Following Frameworks
techseoconnect
PRO
1
410
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)