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
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
Yes, protect your site with .htaccess.
Web-Development, Freelancer, Burgtech, XHTML, HTML5, CSS, PHP, Javascript, MooTools, MySQL and more
Amazon wishlist
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.
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
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.
Bookmarks