$30 off During Our Annual Pro Sale. View Details »
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
IPによる地域制限の浅い話
Search
Sosuke Okubo
January 31, 2020
Technology
0
20
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
59
Kotlin Multiplatform
mojage
0
36
栗まんじゅう問題を体感するアプリを作って入門した ARKit + SceneKit
mojage
0
110
Actions on Googleのアプリを作ってみた
mojage
0
110
SKStoreReviewController
mojage
0
450
スマホアプリ開発で位置情報をシミュレーションする
mojage
0
290
Other Decks in Technology
See All in Technology
mairuでつくるクレデンシャルレス開発環境 / Credential-less development environment using Mailru
mirakui
5
590
Building Serverless AI Memory with Mastra × AWS
vvatanabe
0
320
ソフトウェアエンジニアとAIエンジニアの役割分担についてのある事例
kworkdev
PRO
0
130
AWS re:Invent 2025~初参加の成果と学び~
kubomasataka
0
180
日本の AI 開発と世界の潮流 / GenAI Development in Japan
hariby
1
200
『君の名は』と聞く君の名は。 / Your name, you who asks for mine.
nttcom
1
100
日本Rubyの会: これまでとこれから
snoozer05
PRO
5
220
Oracle Database@AWS:サービス概要のご紹介
oracle4engineer
PRO
1
380
Bedrock AgentCore Memoryの新機能 (Episode) を試してみた / try Bedrock AgentCore Memory Episodic functionarity
hoshi7_n
2
1.6k
AWS re:Invent 2025 re:Cap LT大会 データベース好きが語る re:Invent 2025 データベースアップデート/セッションの紹介
coldairflow
0
150
20251222_next_js_cache__1_.pdf
sutetotanuki
0
150
Connection-based OAuthから学ぶOAuth for AI Agents
flatt_security
0
280
Featured
See All Featured
How Software Deployment tools have changed in the past 20 years
geshan
0
30k
How to train your dragon (web standard)
notwaldorf
97
6.4k
A Modern Web Designer's Workflow
chriscoyier
698
190k
Accessibility Awareness
sabderemane
0
23
The Organizational Zoo: Understanding Human Behavior Agility Through Metaphoric Constructive Conversations (based on the works of Arthur Shelley, Ph.D)
kimpetersen
PRO
0
200
Un-Boring Meetings
codingconduct
0
160
The Director’s Chair: Orchestrating AI for Truly Effective Learning
tmiket
0
62
Marketing to machines
jonoalderson
1
4.3k
Designing Experiences People Love
moore
143
24k
jQuery: Nuts, Bolts and Bling
dougneiner
65
8.3k
Documentation Writing (for coders)
carmenintech
77
5.2k
Lightning Talk: Beautiful Slides for Beginners
inesmontani
PRO
1
400
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がある • データベースは別途ダウンロード
コード
実行
急に地域制限したいと言われても慌てない ようにしましょう! おわり