Se la vuoi molto molto semplice è sufficiente un if come questo:
Codice PHP:
<?php
$password = "123456";
if (@$_POST['password'] != $password) {
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Admin Page</title>
</head>
<body>
<div>
<p align="center">Inserici la password</p>
<div align="center"><form method="post" action="#">
<input type="password" size="40" name="password"/>
<input type="submit" value=""/>
</form></div>
</div>
</body>
</html>
<?php
}
else {
/*TUA PAGINA*/
}
?>
In questo caso la password è 123456