スポンサーサイト

上記の広告は1ヶ月以上更新のないブログに表示されています。
新しい記事を書く事で広告が消せます。

携帯からだけサイトが見れるようにする

とりあえず、携帯サイトなんでPCから見えず、携帯でみてほしい。
.htaccessに記述して、携帯電話からのIPやモバイルのクローラーのみ許可するようにしてみる。
自動で携帯端末以外のIPを制限するhtaccessを簡単生成してくれるサイトがあり、利用させていただきました。

自動で携帯端末以外のIPを制限するhtaccessを簡単生成


order deny,allow
deny from all

#docomo 2010/02/05
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
allow from 124.146.175.0/24
allow from 202.229.176.0/24
allow from 202.229.177.0/24
allow from 202.229.178.0/24
allow from 210.153.87.0/24
allow from 203.138.180.0/24
allow from 203.138.181.0/24
allow from 203.138.203.0/24

#ezweb 2010/02/05
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
allow from 111.86.142.0/26
allow from 111.86.141.64/26
allow from 111.86.141.128/26
allow from 111.86.141.192/26

#softbank 2010/02/05
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.175.1.128/25
allow from 211.8.159.128/25
allow from 123.108.237.224/27
allow from 202.253.96.0/28

#willcom 2010/02/05
allow from 61.198.128.0/24
allow from 61.198.129.0/24
allow from 61.198.130.0/24
allow from 61.198.131.0/24
allow from 61.198.132.0/24
allow from 61.198.133.0/24
allow from 61.198.134.0/24
allow from 61.198.135.0/24
allow from 61.198.136.0/24
allow from 61.198.137.0/24
allow from 61.198.138.100/32
allow from 61.198.138.101/32
allow from 61.198.138.102/32
allow from 61.198.138.103/32
allow from 61.198.139.0/29
allow from 61.198.139.128/27
allow from 61.198.139.160/28
allow from 61.198.140.0/24
allow from 61.198.141.0/24
allow from 61.198.142.0/24
allow from 61.198.143.0/24
allow from 61.198.160.0/24
allow from 61.198.161.0/24
allow from 61.198.162.0/24
allow from 61.198.163.0/24
allow from 61.198.164.0/24
allow from 61.198.165.0/24
allow from 61.198.166.0/24
allow from 61.198.168.0/24
allow from 61.198.169.0/24
allow from 61.198.170.0/24
allow from 61.198.171.0/24
allow from 61.198.172.0/24
allow from 61.198.173.0/24
allow from 61.198.174.0/24
allow from 61.198.175.0/24
allow from 61.198.248.0/24
allow from 61.198.249.0/24
allow from 61.198.250.0/24
allow from 61.198.251.0/24
allow from 61.198.252.0/24
allow from 61.198.253.0/24
allow from 61.198.254.0/24
allow from 61.198.255.0/24
allow from 61.204.0.0/24
allow from 61.204.2.0/24
allow from 61.204.3.0/25
allow from 61.204.3.128/25
allow from 61.204.4.0/24
allow from 61.204.5.0/24
allow from 61.204.6.0/25
allow from 61.204.6.128/25
allow from 61.204.7.0/25
allow from 61.204.92.0/24
allow from 61.204.93.0/24
allow from 61.204.94.0/24
allow from 61.204.95.0/24
allow from 114.20.49.0/24
allow from 114.20.50.0/24
allow from 114.20.51.0/24
allow from 114.20.52.0/24
allow from 114.20.53.0/24
allow from 114.20.54.0/24
allow from 114.20.55.0/24
allow from 114.20.56.0/24
allow from 114.20.57.0/24
allow from 114.20.58.0/24
allow from 114.20.59.0/24
allow from 114.20.60.0/24
allow from 114.20.61.0/24
allow from 114.20.62.0/24
allow from 114.20.63.0/24
allow from 114.20.64.0/24
allow from 114.20.65.0/24
allow from 114.20.66.0/24
allow from 114.20.67.0/24
allow from 114.21.255.0/27
allow from 125.28.0.0/24
allow from 125.28.1.0/24
allow from 125.28.15.0/24
allow from 125.28.16.0/24
allow from 125.28.17.0/24
allow from 125.28.2.0/24
allow from 125.28.3.0/24
allow from 125.28.4.0/24
allow from 125.28.5.0/24
allow from 125.28.8.0/24
allow from 210.168.246.0/24
allow from 210.168.247.0/24
allow from 210.169.92.0/24
allow from 210.169.93.0/24
allow from 210.169.94.0/24
allow from 210.169.95.0/24
allow from 210.169.96.0/24
allow from 210.169.97.0/24
allow from 210.169.98.0/24
allow from 210.169.99.0/24
allow from 211.126.192.128/25
allow from 211.18.232.0/24
allow from 211.18.233.0/24
allow from 211.18.234.0/24
allow from 211.18.235.0/24
allow from 211.18.236.0/24
allow from 211.18.237.0/24
allow from 219.108.10.0/24
allow from 219.108.11.0/24
allow from 219.108.12.0/24
allow from 219.108.13.0/24
allow from 219.108.14.0/24
allow from 219.108.15.0/24
allow from 219.108.7.0/24
allow from 219.108.8.0/24
allow from 219.108.9.0/24
allow from 221.119.0.0/24
allow from 221.119.1.0/24
allow from 221.119.2.0/24
allow from 221.119.3.0/24
allow from 221.119.4.0/24
allow from 221.119.6.0/24
allow from 221.119.7.0/24
allow from 221.119.8.0/24
allow from 221.119.9.0/24
allow from 219.108.2.0/24
allow from 219.108.3.0/24
allow from 125.28.6.0/24
allow from 125.28.7.0/24
allow from 125.28.11.0/24
allow from 125.28.12.0/24
allow from 125.28.13.0/24
allow from 125.28.14.0/24
allow from 211.18.238.0/24
allow from 211.18.239.0/24
allow from 219.108.4.0/24
allow from 219.108.5.0/24
allow from 219.108.6.0/24
allow from 221.119.5.0/24
allow from 124.211.23.0/26

#emobile 2010/02/05
allow from 117.55.1.224/27
allow from 117.55.1.128/26
allow from 117.55.1.96/27
allow from 117.55.65.0/28

#Google 2010/02/06
allow from 72.14.199.0/25
allow from 209.85.238.0/25

#Yahoo 2010/02/06
allow from 124.83.159.146
allow from 124.83.159.147
allow from 124.83.159.148
allow from 124.83.159.149
allow from 124.83.159.150
allow from 124.83.159.151
allow from 124.83.159.152
allow from 124.83.159.153
allow from 124.83.159.154
allow from 124.83.159.155
allow from 124.83.159.156
allow from 124.83.159.157
allow from 124.83.159.158
allow from 124.83.159.159
allow from 124.83.159.160
allow from 124.83.159.161
allow from 124.83.159.162
allow from 124.83.159.163
allow from 124.83.159.164
allow from 124.83.159.165
allow from 124.83.159.166
allow from 124.83.159.167
allow from 124.83.159.168
allow from 124.83.159.169
allow from 124.83.159.170
allow from 124.83.159.171
allow from 124.83.159.172
allow from 124.83.159.173
allow from 124.83.159.174
allow from 124.83.159.175
allow from 124.83.159.176
allow from 124.83.159.177
allow from 124.83.159.178
allow from 124.83.159.179
allow from 124.83.159.180
allow from 124.83.159.181
allow from 124.83.159.182
allow from 124.83.159.183
allow from 124.83.159.184
allow from 124.83.159.185
allow from 124.83.159.224
allow from 124.83.159.225
allow from 124.83.159.226
allow from 124.83.159.227
allow from 124.83.159.228
allow from 124.83.159.229
allow from 124.83.159.230
allow from 124.83.159.231
allow from 124.83.159.232
allow from 124.83.159.233
allow from 124.83.159.234
allow from 124.83.159.235
allow from 124.83.159.236
allow from 124.83.159.237
allow from 124.83.159.238
allow from 124.83.159.239
allow from 124.83.159.240
allow from 124.83.159.241
allow from 124.83.159.242
allow from 124.83.159.243
allow from 124.83.159.244
allow from 124.83.159.245
allow from 124.83.159.246
allow from 124.83.159.247

#livedoor 2010/02/05
allow from 203.104.254.0/24

#goo 2010/02/05
allow from 210.150.10.32/27
allow from 203.131.250.0/24
allow from 203.131.251.0/24
allow from 203.131.252.0/24
allow from 203.131.253.0/24
allow from 203.131.254.0/24
allow from 203.131.255.0/24

#froute 2010/02/06
allow from 60.43.36.253

#DeNA 2010/02/06
allow from 202.238.103.126
allow from 202.213.221.97

#自分のIP
allow from ●●●●●●●●


いちおう自分のパソコンのIPも許可。
IPは新しく随時追加する必要あり。
関連記事

テーマ : webサイト作成
ジャンル : コンピュータ

コメント

非公開コメント

プロフィール

markmark2

Author:markmark2
モバイルサイトを作っています。制作方法などをメモがわりな感じで更新。

最新記事
広告
カテゴリ
広告
月別アーカイブ
最新トラックバック
最新コメント
RSSリンクの表示
QRコード
QR
上記広告は1ヶ月以上更新のないブログに表示されています。新しい記事を書くことで広告を消せます。