I'm using nginx so .htaccess will not work.

I was hoping for it to be cookie based as well.

It's not a page that has to be terribly secure. The people who are visting it would not really even know how to access it if it was just a javascript or jquery password protect like so:


How would I add my custom block into this script?

{{block type="cms/block" block_id="mggs"}}

1 Answer 1

<script type="text/javascript">
    var password = 'password'
    var retVal = prompt("Enter your password : ", "your password here");
    if(retVal !== password)

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.