PHPでBasic認証を行うことができますが PHP 5.1.0 以降であれば、PHPでDigest認証を行うことができます。 ソースはこんな感じです。 <?php define(USER_ID, "admin"); define(PASSWD, "pass"); $realm = 'shain'; if (empty($_SERVER['PHP_AUTH_DIGEST'])) { header('HTTP/1.1 401 Unauthorized'); header('WWW-Authenticate: Digest realm="' . $realm . '",qop="auth",nonce="' . uniqid() . '",opaque="' . md5($realm) . 'algorithm=MD5"'); die("ユーザ名とパスワードを入力してください"); } $da