diff --git a/site/.htaccess b/site/.htaccess index 0ed8662..f922a22 100644 --- a/site/.htaccess +++ b/site/.htaccess @@ -2,4 +2,24 @@ RewriteEngine on RewriteRule ^$ webroot/ [L] RewriteRule (.*) webroot/$1 [L] - \ No newline at end of file + + +# Lets deny everyone -- its a clean slate! +order deny,allow +deny from all + +# Now allow local access +# Localhost +allow from 127.0.0 +# Local subnet +allow from 192.168.7 + +# Provide a mechanism for user authentication +AuthType Digest +AuthName "Property Manager" +AuthUserFile "D:/Website/auth/pmgr.htpasswd" +Require valid-user + +# Instead of satisfy all (too restrictive) +# This allows EITHER local domain OR authenticated user +satisfy any