UAYOR: How to password protect individual pages or folders using .htaccess

USE AT YOUR OWN RISK: The following tip is not supported by Webflow and is used as a temporary workaround until this feature becomes available within the app.
http://help.webflow.com/faq/statement-of-support

At the moment, it is not possible to password protect individual pages or folders using Webflow. However, this has been a requested feature and we hope to include it as an option in the future. If you’d also like us to add this feature, please add your thoughts on this thread.

In the meantime, it is possible to password protect individual pages using an .htaccess file after exporting. To do that, follow the instructions below:

  1. Create and upload .htpasswd file Using a text editor, create a file named .htpasswd, add an encrypted username and password to it, and upload it to a secure directory on your server.

    Example:
    admin:96WPTkzGTEPxw

    Example .htpasswd file

  2. Create and upload .htaccess file Using a text editor, create a file named .htaccess, add the following code, and upload it to the directory that has the page you want to protect in it.

    Example:
    AuthUserFile /.htpasswd
    AuthName “Name of Page”
    AuthType Basic
    < Files ”name-of-page.html”>
    require valid-user
    < /Files>

    Example .htaccess file

IMPORTANT:

  • HTAccess must be supported and enabled on your server
  • Passwords are case sensitive
  • Keep .htpasswd files in a secure directory
5 Likes

+1 here. Definitely something I’ve been needing/ struggling with.

2 Likes