.htaccess: Block Public Access
Place this on top of all code in the htaccess file of the directory you want to block and specify the "allowed" IPs. This can come in handy when developing a new site.
AuthType Basic order deny,allow deny from all allow from xx.xx.xxx.xx






