The "Request a password for a folder" recipe provides a straightforward solution for website owners seeking to enhance security by restricting access to specific folders on their sites. By implementing "Basic Authentication", it ensures that only authorized users with the correct login credentials can access the protected folder.
Why install this recipe?
- Security: Protect sensitive data and resources by restricting access to specific ressource or folder, adding an additional layer of security to your website.
- Confidentiality: Keep confidential files, documents, or development environments secure from unauthorized access, safeguarding your digital assets.
- Controlled Access: A simple username and password setup allows only authorized users to enter the protected folder.
If you have a pre-production or test/QA version of your site, it is good practice to protect access to it using this type of authentication, as this will at least ensure that search engine crawlers will not explore these pre-production pages and will not see duplicate content with your production domain.
How it works
- Configuration: Website owners define a login and password within the recipe configuration page.
- User Experience: Visitors attempting to access the protected folder are prompted with a standard Basic Authentication dialog, requesting valid credentials for entry. If the wrong password is provided, the user are served a
403
error page.
How to install this recipe on my website with redirection.io?
Installing this recipe on your website requires the following steps:
- Define the login and password: Fill in the desired login and password for the Basic Authentication.
- Click on the "Install on my website" button: Install the recipe by clicking the "Install" button. This creates two rules in "Draft" mode.
- Review the created rules: If necessary, you can edit the rules before publishing them on your website.
- Publish on your website: Publish the rules on your website
A few seconds later, the login prompt will be displayed when trying to access the protected ressource.