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
Google にクロールされて AWS に 26 万円請求された話
Search
labocho
October 05, 2019
Programming
720
0
Share
Google にクロールされて AWS に 26 万円請求された話
labocho
October 05, 2019
More Decks by labocho
See All by labocho
Pagehoonk - DOM based JavaScript dispatcher
labocho
0
91
Other Decks in Programming
See All in Programming
新規プロダクトを高速で生み出すハーネスエンジニアリング
seanchas116
15
6.9k
Hive Metastoreを通して学ぶIceberg REST Catalog ― 仕様から実装まで
okumin
0
290
Moments When Things Go Wrong
aurimas
3
120
Inside Stream API
skrb
1
250
OCRを使ってゲームのアイテムをデータ化する
kishikawakatsumi
0
120
ECR拡張スキャンでSBOMを収集して サプライチェーン攻撃の影響調査を 爆速で終わらせてみた
akihisaikeda
2
200
脅威をエンジニアリングの糧にして――現場編 / Turning Threats into Engineering Fuel — Field Edition
nrslib
0
210
Sans tests, vos agents ne sont pas fiables
nabondance
0
160
AIエージェントの隔離技術の徹底比較
kawayu
0
440
Oxcを導入して開発体験が向上した話
yug1224
4
230
CSC307 Lecture 17
javiergs
PRO
0
260
開発とはなにか、Essenceカーネルで見えるもの
ukin0k0
0
220
Featured
See All Featured
Stewardship and Sustainability of Urban and Community Forests
pwiseman
0
210
The Spectacular Lies of Maps
axbom
PRO
1
770
How Fast Is Fast Enough? [PerfNow 2025]
tammyeverts
3
590
We Analyzed 250 Million AI Search Results: Here's What I Found
joshbly
1
1.3k
Have SEOs Ruined the Internet? - User Awareness of SEO in 2025
akashhashmi
0
350
Digital Projects Gone Horribly Wrong (And the UX Pros Who Still Save the Day) - Dean Schuster
uxyall
0
1.5k
[RailsConf 2023 Opening Keynote] The Magic of Rails
eileencodes
31
10k
The Mindset for Success: Future Career Progression
greggifford
PRO
0
340
Git: the NoSQL Database
bkeepers
PRO
432
67k
Producing Creativity
orderedlist
PRO
348
40k
Darren the Foodie - Storyboard
khoart
PRO
3
3.4k
Building Adaptive Systems
keathley
44
3k
Transcript
Google ʹΫϩʔϧ͞Ε ͯ AWS ʹ 26 ສԁٻ ͞Εͨ @labocho
about • @labocho (github, twitter, etc..) • ࡾॏݝࢢࡏॅ • Ruby
on Rails ͷडୗ։ൃ (ࣾһ2ਓ) • ࠓճձࣾؔͳ͍
None
ຊ
ൃ
͍ͭ௨Γ AWS ͔Βͷٻॻ͕
None
$2499.36 = 26ສԁڧ
?
ௐࠪ
ٻॻΛΈͯΈΔ
None
ϩάΛͱΔ
None
whois Ͱݟͯ Googlebot Β͍͠
IP ΞυϨεࢦఆͯ͠ ΞΫηεΛڋ൱ͨ͠Β੩Խ
ߟ
ԻϑΝΠϧΛΞοϓͯ͠ Podcast Ͱௌͨ͘Ίͷ Web ΞϓϦΛ࡞ͬͯͨ
ߏਤ Amazon S3 Ξοϓϩʔυ ϑΟʔυ μϯϩʔυ Ξοϓϩʔυ Podcast ΞϓϦ
ϑΝΠϧͷ URL
ϑΟʔυʹ ೝূτʔΫϯ͚ͭͯͨ /channels/:id/feed?auth_token=randomstring
Ͳ͔͜Β Podcast ͷ URL ͕ Google ʹ࿙Εͨ?
Google Podcast ΞϓϦ?
࣌όέοτͷαΠζ 80GB ఔ
ͳͷʹ 22TB/mo ͷ௨৴
ೝূτʔΫϯ͖ͭ URL Λੜ
https://…/path/to/file? AWSAccessKeyId=XXXXXXXXXX… https://…/path/to/file? AWSAccessKeyId=YYYYYYYYYY… 1 ճͷΞΫηεͰฦ͢ URL 2 ճͷΞΫηεͰฦ͢ URL
Googlebot ͔Βৗʹҧ͏ ϑΝΠϧʹݟ͑ͨ
ରࡦ
ରࡦ • robots.txt • app ଆͰਪଌࠔͳ URL ʹ • ٻΞϥʔϜ
(େࣄ)
ٻΞϥʔϜ • ٻֹ͕͋Β͔͡Ίઃఆֹͨۚ͠Λ͑ͨ࣌ Ͱ௨ • $1, $20, $100 ͳͲ͍͔ͭ͘ઃఆ͓ͯ͘͠ͱݟ མͱ͠ʹ͍͘
AWS ͷ࿈བྷ
༗ྉαϙʔτܖͯ͠ ঢ়گΛઆ໌
4ޙ...
ࠓճʹݶΓʹݮֹ!! ※ Amazon ͞Μͷ͝ްҙͳͷͰɺ ಉ༷ͷέʔεͰݮֹ͞ΕΔͱݶΓ·ͤΜ
ֶΜͩ͜ͱ
ֶΜͩ͜ͱ • Google Podcast ͷԻϑΝΠϧΫϩʔϧ͠ ͯΔ • ͔ࣗ͠Θͳ͍ Web
ΞϓϦͰ robots.txt ͪΌΜͱॻ͘ • AWS ͬͯΔਓ͍·͙͢ٻΞϥʔτઃఆ͠ ͍ͯͩ͘͞!!!!
͕࣌ؒ͋·ͬͨΒ͏ͪͷೣͰͲ͏ͧ