I love Apache. A million times better that that crappy IIS. Here is a neat little trick I have been using for awhile now… Ever want to allow access from an IP without a password, yet restrict others? Its simple with Apache…
Pop this in your .htaccess file (replace the xxx.xxx.xxx.xxx with the IP you wish to allow direct access to.) Anyone else will be required to enter a user/pass. You will need to setup an .htpasswd file though for the auth.
Order deny,allow
Deny from all
AuthName "htaccess password prompt"
AuthUserFile /home/askapache.com/.htpasswd
AuthType Basic
Require valid-user
Allow from xxx.xxx.xxx.xxx
Satisfy Any
Matt is a Systems Development Director for a multinational franchise. Matt has lived and worked in Hawaii, Chicago, South Florida and currently resides outside of Atlanta. He enjoys his hobbies including Technology, Gadgets/EDC, Fountain Pens, Wetshaving, Clocks, Antiques & Coffee. He even roasts his own coffee weekly.
Leave a Reply