Stevie-Ray / referrer-spam-blocker

Apache, Nginx, IIS, uWSGI, Caddy & Varnish blacklist + Google Analytics segments to prevent referrer spam traffic 🤖
MIT License
374 stars 86 forks source link

Add support for Caddy #118

Closed julianxhokaxhiu closed 7 years ago

julianxhokaxhiu commented 7 years ago

Documentation: -> redir: https://caddyserver.com/docs/redir -> import: https://caddyserver.com/docs/import

Description

This PR adds support for Caddy HTTP Server, by redirecting to 444 an referer, if matched.

Motivation and Context

Enables who is relying on Caddy as HTTP server to use this referrer list.

How Has This Been Tested?

I generated the file, and I try to import the generated output on top of my caddy http configuration file ( see comments on top of the generated .caddy file.

Screenshots (if appropriate):

Types of changes

Checklist:

Stevie-Ray commented 7 years ago

Hi Julian, thanks for your contribution! ;-) I'll try to add some documentation to the README.MD later..

julianxhokaxhiu commented 7 years ago

Thank you! Indeed I forgot to do it, but feel free to ping me in case I can help :)

Best regards