Hi guys,
Maybe a stupid question but i have a simple PHP site and want to lock www.site.se/admin
Is this possible or can i just Lock the whole site/app?
Have a nice day
Hi guys,
Maybe a stupid question but i have a simple PHP site and want to lock www.site.se/admin
Is this possible or can i just Lock the whole site/app?
Have a nice day
Hi @peterc,
We only have the option to lock a site at the moment. The ability to lock a directory we have in our backlog and is something we plan to implement.
Sounds great, thank you
Until Cleavr supports it out-of-the-box, this is how you can go about doing this right now. You can do everything manually yourself but I’m using Cleavr’s built-in “Lock Site” feature to have it create all the required files with minimal manual work.
Authentication
, and click Lock Site
to lock it.Action
dropdown, Add New Credentials
.Action
dropdown, select “Unlock Site” to unlock it. DO NOT delete the credentials from step 2.location /admin {
auth_basic "Credentials Required";
auth_basic_user_file /etc/nginx/cleavr-conf/<YOUR DOMAIN NAME HERE>/.htpasswd;
}
/admin
should now be locked.If the above steps are confusing, here’s a recording of me doing it successfully. I hope that was helpful.
Cleavr now supports locking the whole site or some selective paths. Let us know how well this new feature serves your purpose.