#contents

*IPアドレスでアクセス制限 [#g129803f]
エミュレーターにも見せたくない場合はIPアドレスで制限してみよう。

default.php ファイルへのアクセスを制限する場合~
携帯電話でアクセスするように促すページは 403.html ページを用意する

 <Files default.php>
 order deny,allow
 deny from all
 
 # DoCoMo
 allow from 210.153.84.0/24
 allow from 210.136.161.0/24
 allow from 210.153.86.0/24
 
 # au
 allow from 210.169.40.0/24
 allow from 210.196.3.192/26
 allow from 210.196.5.192/26
 allow from 210.230.128.0/24
 allow from 210.230.141.192/26
 allow from 210.234.105.32/29
 allow from 210.234.108.64/26
 allow from 210.251.1.192/26
 allow from 210.251.2.0/27
 allow from 211.5.1.0/24
 allow from 211.5.2.128/25
 allow from 211.5.7.0/24
 allow from 218.222.1.0/24
 allow from 61.117.0.0/24
 allow from 61.117.1.0/24
 allow from 61.117.2.0/26
 allow from 61.202.3.0/24
 allow from 219.108.158.0/26
 allow from 219.125.148.0/24
 allow from 222.5.63.0/24
 allow from 222.7.56.0/24
 allow from 222.5.62.128/25
 allow from 222.7.57.0/24
 allow from 59.135.38.128/25
 allow from 219.108.157.0/25
 allow from 219.125.151.128/25
 allow from 219.125.145.0/25
 allow from 121.111.231.0/25
 allow from 121.111.231.160/27
 
 # SoftBank
 allow from 123.108.236.0/24
 allow from 123.108.237.0/27
 allow from 202.179.204.0/24
 allow from 202.253.96.224/27
 allow from 210.146.7.192/26
 allow from 210.146.60.192/26
 allow from 210.151.9.128/26
 allow from 210.169.130.112/28
 allow from 210.175.1.128/25
 allow from 210.228.189.0/24
 allow from 211.8.159.128/25
 </Files>
 
 ErrorDocument 403 /403.html

&color(red){※2007/11/30現在};

IPアドレスは変更があったりするので確認しましょう。

DoCoMo~
http://www.nttdocomo.co.jp/service/imode/make/content/ip/index.html

au~
http://www.au.kddi.com/ezfactory/tec/spec/ezsava_ip.html

SoftBank~
http://developers.softbankmobile.co.jp/dp/tech_svc/web/ip.php

#exlink

トップ   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS