View Single Post
Old 06-05-2013, 10:39 AM   #459
Goner
Connoisseur
Goner is a marvel to beholdGoner is a marvel to beholdGoner is a marvel to beholdGoner is a marvel to beholdGoner is a marvel to beholdGoner is a marvel to beholdGoner is a marvel to beholdGoner is a marvel to beholdGoner is a marvel to beholdGoner is a marvel to beholdGoner is a marvel to behold
 
Posts: 55
Karma: 11628
Join Date: Jun 2011
Location: Rotterdam, Netherlands
Device: ARCHOS 80G9, Kobo Touch, Sony PRS-T1, BeBook Club S, Icarus Reader Go
Ah, thanks ! Good idea !
I'm already using that in Apache directories, like this :

<Directory "..../...../....">
Options MultiViews
AllowOverride None
Order deny,allow
Deny from all
Allow from 192.168.1
</Directory>

found an .htaccess example that should work :

Allow from IP without password prompt, and also allow from any address with password prompt

Order deny,allow
Deny from all
AuthName "htaccess password prompt"
AuthUserFile /web/passwd/.htpasswd
AuthType Basic
Require valid-user
Allow from 192.168.1
Satisfy Any
Goner is offline   Reply With Quote