In apache you can restrict access to just about everything from a single folder to a single file. A quick google should give loads of answers but a good starting point is:
http://httpd.apache.org/docs/howto/auth.html
__________________
As an example, I've setup apache so it restricts access based on IP address, any address not in the list will not be able to access anything.