Upgrade to PRO for Only $50/Year—Limited-Time Offer! 🔥
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
2025年 開発生産「可能」性向上報告 サイロ解消からチームが能動性を獲得するまで/ 20251216 Naoki Takahashi
shift_evolve
PRO
2
210
Bedrock AgentCore Evaluationsで学ぶLLM as a judge入門
shichijoyuhi
1
150
AI時代のワークフロー設計〜Durable Functions / Step Functions / Strands Agents を添えて〜
yakumo
3
1.9k
通勤手当申請チェックエージェント開発のリアル
whisaiyo
3
370
なぜ あなたはそんなに re:Invent に行くのか?
miu_crescent
PRO
0
130
re:Invent2025 3つの Frontier Agents を紹介 / introducing-3-frontier-agents
tomoki10
0
370
AWS re:Invent 2025~初参加の成果と学び~
kubomasataka
0
180
Connection-based OAuthから学ぶOAuth for AI Agents
flatt_security
0
270
AWS re:Invent 2025 re:Cap LT大会 データベース好きが語る re:Invent 2025 データベースアップデート/セッションの紹介
coldairflow
0
150
AWSインフルエンサーへの道 / load of AWS Influencer
whisaiyo
0
200
Oracle Database@AWS:サービス概要のご紹介
oracle4engineer
PRO
1
380
Snowflake だけで実現する “自立的データ品質管理” ~Data Quality Monitoring 解説 ~@ BUILD Meetup: TOKYO 2025
ryo_suzuki
0
120
Featured
See All Featured
VelocityConf: Rendering Performance Case Studies
addyosmani
333
24k
Mind Mapping
helmedeiros
PRO
0
38
Paper Plane (Part 1)
katiecoart
PRO
0
1.9k
The State of eCommerce SEO: How to Win in Today's Products SERPs - #SEOweek
aleyda
2
9.1k
Git: the NoSQL Database
bkeepers
PRO
432
66k
Optimising Largest Contentful Paint
csswizardry
37
3.5k
Hiding What from Whom? A Critical Review of the History of Programming languages for Music
tomoyanonymous
0
290
The Organizational Zoo: Understanding Human Behavior Agility Through Metaphoric Constructive Conversations (based on the works of Arthur Shelley, Ph.D)
kimpetersen
PRO
0
200
How To Speak Unicorn (iThemes Webinar)
marktimemedia
1
340
Applied NLP in the Age of Generative AI
inesmontani
PRO
3
2k
Bash Introduction
62gerente
615
210k
Facilitating Awesome Meetings
lara
57
6.7k
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がある • データベースは別途ダウンロード
コード
実行
急に地域制限したいと言われても慌てない ようにしましょう! おわり