I want to restrict acces to a specific folder in an ibay. This ibay is accessible from to whole internet with no restrictions. I want my folder to be acceded from the local network with no restriction and from the internet with a user authentification.
So:
- created a htpasswd file in the "supposed to be" protected directory
contening my user and password doing:
#htpasswd -c .htpasswd sms
- then created a .htaccess file contening:
Options Indexes
Options +Includes
AllowOverride All
order deny,allow
deny from all
allow from 127.0.0.1 192.168.0.0/255.255.255.0
AuthName "Espace privé"
AuthType Basic
AuthExternal pwauth
AuthUserFile .htpasswd
require user sms
Satisfy any
That doesn't popup the authentification window when accessing the directory either from internet nor from the local network.
Where am I wrong ?