kataras / hcaptcha

hCaptcha HTTP middleware for Go web servers

Home Page:https://github.com/hCaptcha/hcaptcha-integrations-list

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

hCaptcha

build status report card godocs

The one and only hCaptcha middleware for Go web servers.

Inspired by https://dev.to/stanbright/cloudflare-replaced-recaptcha-with-hcaptcha-i-followed-their-example-it-took-me-18-min-1ipn.

Installation

The only requirement is the Go Programming Language.

$ go get -u github.com/kataras/hcaptcha

Getting Started

First of all, navigate to https://www.hcaptcha.com/, create an account and attach a new site for development.

Import the package:

package main

import "github.com/kataras/hcaptcha"

Create a new client:

client := hcaptcha.New(your_secret_key)

Wrap a page's handler:

humanHandler := client.Handler(handler)

For a complete example please navigate through _examples directory.

License

This software is licensed under the MIT License.

About

hCaptcha HTTP middleware for Go web servers

https://github.com/hCaptcha/hcaptcha-integrations-list

License:MIT License


Languages

Language:Go 94.7%Language:HTML 5.3%