Skip to content

eduardoboucas/staticman-recaptcha

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
css
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Staticman + reCAPTCHA

This is a demo Jekyll site showing how to integrate Staticman with Google's reCAPTCHA.

Getting started

After following the steps to install Staticman, you need to integrate reCAPTCHA.

  1. Sign up to reCAPTCHA. You'll be assigned a Site key and Secret.

  2. Encrypt the secret using Staticman's encryption endpoint:

ย  https://api.staticman.net/v2/encrypt/YOUR-SECRET ย 

  1. Take the site key and the encrypted secret and add a reCAPTCHA block to your Staticman config file:
reCaptcha:
  enabled: true
  siteKey: "YOUR-SITE-KEY"
  secret: "YOUR-ENCRYPTED-SECRET"
  1. Add the reCAPTCHA credentials to your form:
<input type="hidden" name="options[reCaptcha][siteKey]" value="YOUR-SITE-KEY">
<input type="hidden" name="options[reCaptcha][secret]" value="YOUR-ENCRYPTED-SECRET">
  1. Add the reCAPTCHA script and DOM element
<div class="g-recaptcha" data-sitekey="YOUR-SITE-KEY"></div>
<script src='https://www.google.com/recaptcha/api.js'></script>

Reporting issues

Please open an issue in the Staticman repository.

About

๐Ÿ‘ฎโ€โ™‚๏ธ Demo site using Staticman + reCAPTCHA

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published