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
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
76
Kotlin Multiplatform
mojage
0
54
栗まんじゅう問題を体感するアプリを作って入門した ARKit + SceneKit
mojage
0
120
Actions on Googleのアプリを作ってみた
mojage
0
130
SKStoreReviewController
mojage
0
480
スマホアプリ開発で位置情報をシミュレーションする
mojage
0
300
Other Decks in Technology
See All in Technology
Running Kotlin + Quarkus with Lambda
nealle
1
3.9k
Claude の新機能を、 出た日に触って社内に届けるまで
rfdnxbro
1
190
スプシの手作業からの解脱 ~更新はClaude Codeに、見せ方と使い方はGASアプリに任せる~
kentarofujii
0
160
二歩目のフロントエンド・ウェブアクセシビリティ
camiha
2
650
DGX Spark でどこまでハッキングができるのか?
kash1064
3
1.4k
AI駆動で「他アプリの音を加工できる」アプリを作った
satomasahiro2005
0
170
CTO Night|NotionのAIエージェントとFDE
kzkhykw1991
0
220
専門領域のAIをどう評価するか
bengo4com
2
280
Refining Active Record
shugo
0
160
Browser Spec: Testing Hotwire with Ruby
takahashim
1
130
ソフトウェア ファクトリー - 再現性のあるソフトウェアの工場づくり / Software factory
iktakahiro
6
5k
Post AI時代のリファクタリング実践記 / Refactoring in the post AI era
kaminashi
1
270
Featured
See All Featured
Designing Experiences People Love
moore
143
24k
How GitHub (no longer) Works
holman
316
150k
The Curious Case for Waylosing
cassininazir
1
570
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
PRO
203
77k
Build The Right Thing And Hit Your Dates
maggiecrowley
39
3.5k
How to build a perfect <img>
jonoalderson
1
6.1k
Easily Structure & Communicate Ideas using Wireframe
afnizarnur
194
17k
Leveraging Curiosity to Care for An Aging Population
cassininazir
1
540
From Legacy to Launchpad: Building Startup-Ready Communities
dugsong
0
360
Rails Girls Zürich Keynote
gr2m
96
14k
Testing 201, or: Great Expectations
jmmastey
46
8.3k
The Organizational Zoo: Understanding Human Behavior Agility Through Metaphoric Constructive Conversations (based on the works of Arthur Shelley, Ph.D)
kimpetersen
PRO
0
500
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がある • データベースは別途ダウンロード
コード
実行
急に地域制限したいと言われても慌てない ようにしましょう! おわり