0

How to deny the access to a page from any IP except from one IP address but have basic authentication for this authorized IP address in Apache? Thanks

1
  • Have you examined the order and allow directives in the httpd.apache.org web page? – mdpc Sep 10 '13 at 16:51
1

/some/location/.htaccess

Allow from 149.15.90.70
deny from all
AuthType basic
AuthName "My Protected Page"
AuthBasicProvider file
AuthUserFile /staff/widricd/htpasswd
Require user mint

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.