• Resolved kmnr

    (@kmnr)


    Is it possible to password protect the whole site while using Litespeed Cache? I refer to all pages on a site, not just some pages. So I don’t think I can use the “Do not cache URIs” option.

    Thanks for your support.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support qtwrk

    (@qtwrk)

    Hi,

    How do you plan to password-protect on all URIs ?

    If you are going to use a way like HTTP auth , then it will happen before cache

    Best regards,

    Thread Starter kmnr

    (@kmnr)

    hi @qtwrk

    Thanks for your quick answer. I’m using a password protect page plugin. It uses PHP to protect and return a password form if valid cookie doesn’t exist. As a result, the password form will be cached with Litespeed, and my users have to enter the password twice.

    Could you explain “HTTP auth” method in more detail? Is there any plugin that does it?

    I really appreciate your help.

    • This reply was modified 4 years, 4 months ago by kmnr.
    Plugin Support qtwrk

    (@qtwrk)

    Hi,

    By HTTP Auth I mean this

    https://www.acunetix.com/wp-content/uploads/2016/08/image01.png

    but if you are using plugin that uses cookie to check ,please try add this at top of your .htaccess file

    RewriteRule .* - [E=Cache-Vary:YOUR_COOKIE_NAME]

    Best regards,

    Thread Starter kmnr

    (@kmnr)

    Thank @qtwrk,

    Let me try it.

    Have a good day.

    • This reply was modified 4 years, 4 months ago by kmnr.
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Password protect entire site’ is closed to new replies.