The goal of rlockdown is to allow users to protect their standalone html files in an easy manner.
You can install the development version of rlockdown like so:
# install.packages("devtools")
devtools::install_github("matcasti/rlockdown")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.