Skip to content

kataras/hcaptcha

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

Topics

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Sponsor this project

 

Contributors 3

  •  
  •  
  •