/Trafik Ultimate Bad Bot Blocker

Trafik Ultimate Bad Bot Blocker

8
v0.2.0

Traefik Bad Bot Blocker

Traefik Plugin based on the Apache Ultimate Bad Bot Blocker.

Configuration

Middleware example:

---
apiVersion: traefik.io/v1alpha1
kind: Middleware
metadata:
name: botblocker
spec:
plugin:
botblocker:
ipblocklisturls:
- http://badips.example.com/ip-blocklist"
useragentblocklisturls:
- http://badips.example.com/useragent-blocklist"

Blocklist

The blocklists should be acccessible via http/s and be a plain text list of IP address or useragents.

Testing

Running go test will run a set of unit tests. Running docker compose up will start an end to end testing environment where allowed-* containers should be able to make requests, while blocked-* containers should fail.