blairanderson / netlify-plugin-password-protection

Password Protect your Netlify Site
https://password-protection-plugin.netlify.app
MIT License
12 stars 3 forks source link
netlify-plugin

netlify-plugin-password-protection

Netlify Status

Soon to be added to the plugins directory https://github.com/netlify/plugins/pull/110

Based on the fantastic CLI tool staticrypt, this plugin will encrypt your files with a password from your NETLIFY environment variables

Setup

Install the plugin as a dependency to your repository

npm i --s netlify-plugin-password-protection

Add the plugin in netlify.toml

[[plugins]]
  package = "netlify-plugin-password-protection"

Deploy your Netlify Site!

Optional Configuration in netlify.toml

[[plugins]]
  package = "netlify-plugin-password-protection"

  [plugins.inputs]
    fileFilter = "*.html" # default
    directoryFilter = ["!node_modules", "!admin", "!plugins"] # default
    title = "Protected Page" # default
    instructions = "" # default

View the Demo

[License][MIT]

Made by Blair Anderson