https://github.com/kataras/hcaptcha
hCaptcha HTTP middleware for Go web servers
https://github.com/kataras/hcaptcha
go golang hcaptcha http iris
Last synced: 3 months ago
JSON representation
hCaptcha HTTP middleware for Go web servers
- Host: GitHub
- URL: https://github.com/kataras/hcaptcha
- Owner: kataras
- License: mit
- Created: 2020-04-11T17:01:32.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2022-12-24T06:21:58.000Z (about 3 years ago)
- Last Synced: 2025-04-04T03:33:21.260Z (10 months ago)
- Topics: go, golang, hcaptcha, http, iris
- Language: Go
- Homepage: https://github.com/hCaptcha/hcaptcha-integrations-list
- Size: 26.4 KB
- Stars: 33
- Watchers: 2
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# hCaptcha
[](https://github.com/kataras/hcaptcha/actions) [](https://goreportcard.com/report/github.com/kataras/hcaptcha) [](https://godoc.org/github.com/kataras/hcaptcha)
The one and only [hCaptcha](https://www.hcaptcha.com/) middleware for Go web servers.
Inspired by .
## Installation
The only requirement is the [Go Programming Language](https://golang.org/dl).
```sh
$ go get -u github.com/kataras/hcaptcha
```
## Getting Started
First of all, navigate to , create an account and attach a [new site](https://dashboard.hcaptcha.com/sites) for [development](https://docs.hcaptcha.com/#localdev).
Import the package:
```go
package main
import "github.com/kataras/hcaptcha"
```
Create a new client:
```go
client := hcaptcha.New(your_secret_key)
```
Wrap a page's handler:
```go
humanHandler := client.Handler(handler)
```
For a complete example please navigate through [_examples](_examples) directory.
## License
This software is licensed under the [MIT License](LICENSE).