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
IPによる地域制限の浅い話
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
Sosuke Okubo
January 31, 2020
Technology
0
21
IPによる地域制限の浅い話
社内勉強会のスライドです。
Sosuke Okubo
January 31, 2020
Tweet
Share
More Decks by Sosuke Okubo
See All by Sosuke Okubo
“Build trust through better privacy”を見たメモ
mojage
0
100
Android Robo Test
mojage
0
60
Kotlin Multiplatform
mojage
0
37
栗まんじゅう問題を体感するアプリを作って入門した ARKit + SceneKit
mojage
0
110
Actions on Googleのアプリを作ってみた
mojage
0
120
SKStoreReviewController
mojage
0
460
スマホアプリ開発で位置情報をシミュレーションする
mojage
0
290
Other Decks in Technology
See All in Technology
茨城の思い出を振り返る ~CDKのセキュリティを添えて~ / 20260201 Mitsutoshi Matsuo
shift_evolve
PRO
1
430
Oracle Base Database Service 技術詳細
oracle4engineer
PRO
15
93k
学生・新卒・ジュニアから目指すSRE
hiroyaonoe
2
770
登壇駆動学習のすすめ — CfPのネタの見つけ方と書くときに意識していること
bicstone
3
130
Oracle Cloud Observability and Management Platform - OCI 運用監視サービス概要 -
oracle4engineer
PRO
2
14k
CDK対応したAWS DevOps Agentを試そう_20260201
masakiokuda
1
440
Context Engineeringが企業で不可欠になる理由
hirosatogamo
PRO
3
680
22nd ACRi Webinar - NTT Kawahara-san's slide
nao_sumikawa
0
110
Claude_CodeでSEOを最適化する_AI_Ops_Community_Vol.2__マーケティングx_AIはここまで進化した.pdf
riku_423
2
610
Ruby版 JSXのRuxが気になる
sansantech
PRO
0
170
10Xにおける品質保証活動の全体像と改善 #no_more_wait_for_test
nihonbuson
PRO
2
340
こんなところでも(地味に)活躍するImage Modeさんを知ってるかい?- Image Mode for OpenShift -
tsukaman
1
170
Featured
See All Featured
Designing for Timeless Needs
cassininazir
0
130
Why Mistakes Are the Best Teachers: Turning Failure into a Pathway for Growth
auna
0
57
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
35
3.4k
How to Build an AI Search Optimization Roadmap - Criteria and Steps to Take #SEOIRL
aleyda
1
1.9k
The Spectacular Lies of Maps
axbom
PRO
1
530
Redefining SEO in the New Era of Traffic Generation
szymonslowik
1
220
Leading Effective Engineering Teams in the AI Era
addyosmani
9
1.6k
The Limits of Empathy - UXLibs8
cassininazir
1
220
16th Malabo Montpellier Forum Presentation
akademiya2063
PRO
0
53
sira's awesome portfolio website redesign presentation
elsirapls
0
150
More Than Pixels: Becoming A User Experience Designer
marktimemedia
3
330
The #1 spot is gone: here's how to win anyway
tamaranovitovic
2
950
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がある • データベースは別途ダウンロード
コード
実行
急に地域制限したいと言われても慌てない ようにしましょう! おわり