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
IPによる地域制限の浅い話
Search
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
Sosuke Okubo
January 31, 2020
Technology
29
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
IPによる地域制限の浅い話
社内勉強会のスライドです。
Sosuke Okubo
January 31, 2020
More Decks by Sosuke Okubo
See All by Sosuke Okubo
“Build trust through better privacy”を見たメモ
mojage
0
110
Android Robo Test
mojage
0
69
Kotlin Multiplatform
mojage
0
53
栗まんじゅう問題を体感するアプリを作って入門した ARKit + SceneKit
mojage
0
120
Actions on Googleのアプリを作ってみた
mojage
0
130
SKStoreReviewController
mojage
0
470
スマホアプリ開発で位置情報をシミュレーションする
mojage
0
300
Other Decks in Technology
See All in Technology
AI coding 整合正規方法
philipz
0
230
Claude Code本って、 読む必要あるの?
oikon48
2
490
Cloudflare Workers 向けアプリを C# で構築する ~WASM Native AOT への道~
nenonaninu
1
490
GoのInterface内部構造から学ぶ!最高パフォーマンスを出すコード設計
yappli_developers
0
190
現場で役立つ技術負債の効果的な返済方法
masuda220
PRO
9
4.6k
SREの視点で考えるSIEM活用術 〜AWS環境でのセキュリティ強化〜
cscengineer
PRO
0
120
beyond jj: config & tools ecosystem
indirect
0
5.2k
登壇の自信を奪う3匹のオバケ / 3 Ghosts That Rob You of Your Confidence in Public Speaking
pauli
9
1k
Vibe Coding で作ったプロダクトをどう安全に動かすか / How to Safely Run Products Built with Vibe Coding
glidenote
0
220
すぐできる衛星通信対応 あとは山奥に行くだけ
tatetate55
0
140
銀行勘定系システムにおける開発プロセス刷新×AIによる環境モダナイゼーション / Development Process Transformation and AI-Driven Environment Modernization
muit
1
2.4k
白金鉱業Meetup Vol.25 アウトカムが二値のデータに対するCausal Impact
brainpadpr
0
250
Featured
See All Featured
Leo the Paperboy
mayatellez
10
2.3k
Measuring & Analyzing Core Web Vitals
bluesmoon
9
1k
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
50
10k
Balancing Empowerment & Direction
lara
6
1.3k
Believing is Seeing
oripsolob
1
220
Navigating the Design Leadership Dip - Product Design Week Design Leaders+ Conference 2024
apolaine
2
430
Making the Leap to Tech Lead
cromwellryan
135
10k
Pawsitive SEO: Lessons from My Dog (and Many Mistakes) on Thriving as a Consultant in the Age of AI
davidcarrasco
0
240
DevOps and Value Stream Thinking: Enabling flow, efficiency and business value
helenjbeal
1
390
Scaling GitHub
holman
464
140k
Optimising Largest Contentful Paint
csswizardry
37
4k
Discover your Explorer Soul
emna__ayadi
2
1.3k
Transcript
IPによる地域制限の浅い話 20/01/31 Sosuke Okubo
最近生きづらいですよね… • GDPRのためのジオブロッキング実装方法案を考えてみる - orangeitems’s diary https://www.orangeitems.com/entry/2018/05/29/141813 • もしものために,香川県からのアクセスを避ける -
Qiita https://qiita.com/ni__no13/items/b1b215e7185920cd075c • 「nuro光は海外IPが割り当てられる」というデマに騙されてはいけない https://fukuoka-internet.com/hikari/nuro_ip_address/
もしものためにIPによる地域制限を行う方 法を知っておく
GeoIP
GeoIP • 狭義にはMAXMIND社のサービス • 実体はIPから地域が引けるデーターベース • 似たサービスを提供している会社もあるが、MAXMIND社がデファクトスタンダード • 現行はGeoIP2(有料) •
無料のGeoLite2もある
GeoIPをCloudFrontで使ってみる • コンテンツの地理的ディストリビューションの制限 - Amazon CloudFront https://docs.aws.amazon.com/ja_jp/AmazonCloudFront/latest/DeveloperGuid e/georestrictions.html • >
CloudFront は、サードパーティーの GeoIP データベースを使用して、ユーザー がいる場所を判別します。
AWSコンソールで設定(1)
AWSコンソールで設定(2)
日本からアクセス
日本以外からアクセス
GeoIPをRubyで使ってみる • maxmind/MaxMind-DB-Reader-ruby: Ruby reader for the MaxMind DB Database
Format https://github.com/maxmind/MaxMind-DB-Reader-ruby • 公式のgemがある • データベースは別途ダウンロード
コード
実行
急に地域制限したいと言われても慌てない ようにしましょう! おわり