• Hi,

    When hiding pages from not logged in users, I can still view these pages using search.
    How can I disable that?

Viewing 5 replies - 1 through 5 (of 5 total)
  • CBServices, UM uses member directories to search instead and which have pretty good permission controls.

    That said, if you want to prevent all visitors who are not logged in from searching your content or pages, I do have code for that. Users, however, will not be able to search and find those pages that they have access permissions for unless they are logged in.

    Let me know,

    Thread Starter CBServices

    (@cbservices)

    I used

    <?php if(is_user_logged_in()){ ?>

    In my search.php now…

    That works OK, but I would like to redirect to /login when not logged in ??

    Thread Starter CBServices

    (@cbservices)

    P.S. Boris, do you know if it’s possible te use the email AND admin validation together?

    P.S. Boris, do you know if it’s possible te use the email AND admin validation together?

    Off Topic,

    Please make a new topic.

    Thread Starter CBServices

    (@cbservices)

    Yeah, I already have that indeed ??

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Disable search (?s=)’ is closed to new replies.