I want to protect my pages (not whole site) with password in magento.

I want to add one password field in magento admin panel at CMS block. So when I create new page, I can also set password for it.

When I hit the URL of a page then it should popup to take password and after inserting proper password then page should be opened.

How can I do this or Is there any extension.?


1 Answer 1


Password Protecting Your Pages with htaccess

AuthUserFile /full/path/to/.htpasswd
AuthType Basic
AuthName "My Secret Page"

<Files "mypage.html">
  Require valid-user

<Files "myotherpage.html">
  Require valid-user

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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