PHP、Smarty、ケータイサイトについて発信中。書籍 「Smarty動的webサイト構築入門」(技術評論社) 好評発売中
RSS icon Home icon
  • ケータイのIPアドレス


    ケータイサイトでPCからのアクセスを禁止したいとき、ケータイからのIPアドレスだけを許可します。また、ケータイ向けの検索エンジンのクローラも許可します。

    次のリストは、各キャリアの公式サイトからIPアドレスを取り出したものです。メールやPCビューワからのIPアドレスは含んでいません。これらのIPアドレスはときどき変更されるので、メンテナンスが必要です。

    order deny,allow
    deny from all
    # i-mode
    # http://www.nttdocomo.co.jp/service/imode/make/content/ip/index.html
    allow from 210.153.84.0/24
    allow from 210.136.161.0/24
    allow from 210.153.86.0/24
    allow from 124.146.174.0/24
    # EZweb
    # http://www.au.kddi.com/ezfactory/tec/spec/ezsava_ip.html
    allow from 210.230.128.224/28
    allow from 121.111.227.160/27
    allow from 61.117.1.0/28
    allow from 219.108.158.0/27
    allow from 219.125.146.0/28
    allow from 61.117.2.32/29
    allow from 61.117.2.40/29
    allow from 219.108.158.40/29
    allow from 219.125.148.0/25
    allow from 222.5.63.0/25
    allow from 222.5.63.128/25
    allow from 222.5.62.128/25
    allow from 59.135.38.128/25
    allow from 219.108.157.0/25
    allow from 219.125.145.0/25
    allow from 121.111.231.0/25
    allow from 121.111.227.0/25
    allow from 118.152.214.192/26
    allow from 118.159.131.0/25
    allow from 118.159.133.0/25
    allow from 118.159.132.160/27
    # softbank
    # http://creation.mb.softbank.jp/web/web_ip.html
    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
    #------------------------------------------------------------
    # ケータイ向けの検索クローラ
    #------------------------------------------------------------
    # moba-crawler
    # http://crawler.dena.jp/
    allow from 202.238.103.126
    allow from 202.213.221.97
    # froute
    # http://search.froute.jp/howto/crawler.html
    allow from 60.43.36.253
    # モバイルgoo
    # http://help.goo.ne.jp/help/article/1142/
    allow from 210.150.10.32/27
    allow from 203.131.250.0/24
    # Livedoor
    # http://helpguide.livedoor.com/help/search/qa/grp627
    allow from 203.104.254.0/24
    # Google
    # http://googlejapan.blogspot.com/2008/05/google.html
    allow from 72.14.199.0/25
    allow from 209.85.238.0/25
    # Yahoo!
    # http://help.yahoo.co.jp/help/jp/search/indexing/indexing-27.html
    allow from 124.83.159.146/27
    allow from 124.83.159.178/29
    allow from 124.83.159.224/28
    allow from 124.83.159.240/29
    # MSN Search
    # (Microsoft社のIP範囲からMSNクローラがアクセスしてくる、ということらしいです)
    allow from 65.52.0.0/14
    2009-05-12 aoki No comments 04.ケータイ

    Leave a reply