ReCAPTCHA in Staticman

In this post I will implement ReCAPTCHA with Staticman. Due to Spam from bots we need to enable ReCAPTCHA to verify human interaction. Go to Google ReCAPTCHA and create one for your website. Choose verison 2 as Staticman only supports this verison. Encrypt the secret key by going to your heroku web app. https://staticman-erik.herokuapp.com/v3/encrypt/SECRET Edit the config.yml file with: staticman: api: https://staticman-erik.herokuapp.com/v3/entry/gitlab/eriksnartland/blog_comments/main/comments recaptcha: sitekey: "key" secret: "encoded-secret" Edit the staticman.yml file in the blog_comments repo:...

December 30, 2021 · 2 min · Me