% 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