Online CSS Compression Tools »
Allowing Access From 1 static IP and Deny the rest
November 7th, 2006
Say you want to deny access to your entire site except when you access it. The following htaccess code does just that. Instead of a Static IP you could also use a hostname, or part of a hostname..
AuthName "Site Administration" AuthUserFile /home/user/askapache.com/.htpasswd AuthType basic Require valid-user Order deny,allow Deny from all Allow from 24.11.54.6 Satisfy Any
More information about this technique can be found in the htaccessElite.com Authentication Forum

.htaccess"? Thank you Pawel