Http Authentication
The Apache docs have some good information for setting up authentication and authorization using the htaccess file and htpasswd utility.
Besides requiring a username and password, you can tell your server to only answer requests from certain IP addresses or to specifically deny users from certain IP addresses.
