Results 1 to 6 of 6

Thread: Password protect page

  1. #1
    User
    Join Date
    03-28-13.
    Location
    Bietigheim-Bissingen
    Posts
    55

    Default Password protect page

    Is there a way to password protect a page? Without user, just first when you enter the page, you see an input where you should enter the password. When it's ok, you can see the actual content of the site. Contao 3.2.8

  2. #2
    User Andreas's Avatar
    Join Date
    07-11-09.
    Location
    Mönchengladbach
    Posts
    499

    Default

    Yes, protect your site with .htaccess.
    Web-Development, Freelancer, Burgtech, XHTML, HTML5, CSS, PHP, Javascript, MooTools, MySQL and more
    Amazon wishlist

  3. #3
    New user
    Join Date
    10-19-16.
    Posts
    10

    Default

    How to use .htaccess if I want to protect with password only one page for all users?
    Last edited by Aga; 11/08/2016 at 11:49.

  4. #4
    User Andreas's Avatar
    Join Date
    07-11-09.
    Location
    Mönchengladbach
    Posts
    499

    Default

    You probably find solutions on stackoverflow e.g. http://stackoverflow.com/questions/1...a-specific-url.

    But you can do this within Contao without .htaccess. Create a membergroup e.g. "allowed members". Setup a member. Allow login, assign to the group "allowed members", username e.g. "guest-member", assing a password e.g. "logmein". Protect the page with rights only for this membergroup. Right gets inherited to all subpages (I think). Setup a 403 page and a login module onto this page.
    Web-Development, Freelancer, Burgtech, XHTML, HTML5, CSS, PHP, Javascript, MooTools, MySQL and more
    Amazon wishlist

  5. #5
    User
    Join Date
    03-17-10.
    Posts
    83

    Default

    Have a look at the demo site. Login as a front_end user at the home page where it says "This feature demonstrates the possibility to create a member area for your website".
    The back_end will show you how to set this up.

    Demo site: http://demo.contao.org/contao/
    Last edited by Rian; 11/10/2016 at 01:13.

  6. #6
    User
    Join Date
    03-17-10.
    Posts
    83

    Default

    Quote Originally Posted by Aga View Post
    ... I want to protect with password only one page for all users?
    Site Structure >> Edit your page >> Enable Protect Page >> Select all member groups.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •