No description
| .github/workflows | ||
| .gitignore | ||
| geoip_asn.go | ||
| geoip_country.go | ||
| go.mod | ||
| go.sum | ||
| LICENSE | ||
| README.md | ||
geoip
go get git.gorbe.io/caddy/geoip@latest
Get the latest commit (if Go module proxy is not updated):
go get "git.gorbe.io/caddy/geoip@$(curl -s 'https://git.gorbe.io/api/v1/repos/caddy/geoip/commits' | jq -r '.[0].sha')"
GeoLite2 databases
The GeoLite2-Country and GeoLite2-ASN databases are embedded into the resulting binary
Usage
example.com {
@country-matcher geoip_country "HU" "DE"
respond @country-mathers "Country matcher"
@asn-matcher geoip_asn "24940"
respond @asn-matcher "Hetzner Online GmbH"
}