memo.xight.org

/ / memo.xight.org

2005-09-29

ホストによるアクセス制限 + Basic認証

1. .htpasswd の作成

% htpasswd -c .htpasswd username
New password: xxxxxxxx
Re-type new password: xxxxxxxx
Adding password for user username


3. .htaccess の作成,又は httpd.conf の編集

AuthType      Basic
AuthUserFile  /path/to/.htpasswd
AuthGroupFile /dev/null
AuthName      "Please input ID,Password"
 
Order deny,allow
Deny  from all
Allow from example.com example.org
 
Require valid-user


- Reference
ore.dyndns.org - Limitは使うな
http://ore.dyndns.org/web/limit.html

ore.dyndns.org - ドキュメントを読まない輩 - Limitの危険
http://ore.dyndns.org/web/RTFM.html#limit

ore.dyndns.org - 太古の<Limit>
http://ore.dyndns.org/web/limit-ncsa.html
カテゴリ: [Apache]
内部リンク: [2006-08-07-6]
2005-09 /

Color Reference

ChangeLogを検索
携帯電話からアクセス!

カテゴリ

最近の話題

リンク

過去ログ

Google

QR Code

Since
2002-11-28
Update
2008-09-05 14:14
Copyright © 2005 xight.org All Rights Reserved.