toooo many ways to do it:
here is one of them, just put this code into the page you want to protect:
Code:
<?
If (!IsSet($PHP_AUTH_USER))
{
Header("HTTP/1.0 401 Unauthorized");
Header("WWW-Authenticate: Basic realm=\"Whatever you want to write here\"");
echo "You must provide login/password to access this page.";
exit;
}
else
{
if (($PHP_AUTH_PW != "your_passwd") || ($PHP_AUTH_USER != "your_username"))
{
Header("HTTP/1.0 401 Unauthorized");
exit;
}
}
?>
dont forget to make sure you can run PHP on your server and rename that file to something with .php .php3 .phtml extension (depends on config of your web server)
This code works only with one username and password. If you want multiple accounts to access this page it's a bit complicated but not impossible

If you want code for more users, just LMK. I'll post it here.
Hope that helps
------------------
Smashing Thumbs TGP