|
1 | 1 | <h1 align="center">Referrer Spam Blocker :robot:</h1> |
2 | 2 |
|
3 | | -<p align="center">Apache, Nginx, IIS, uWSGI, Caddy, Varnish, HAProxy, Traefik & Lighttpd blacklist + Google Analytics segments to prevent referrer spam traffic</p> |
| 3 | +<p align="center">Apache, Nginx, IIS, uWSGI, Caddy, Varnish, HAProxy & Lighttpd blacklist + Google Analytics segments to prevent referrer spam traffic</p> |
4 | 4 |
|
5 | 5 | <br /> |
6 | 6 |
|
@@ -82,17 +82,6 @@ acl spam_referer hdr_sub(referer) -i -f /etc/haproxy/referral-spam.haproxy |
82 | 82 | http-request deny if spam_referer |
83 | 83 | ``` |
84 | 84 |
|
85 | | -## Traefik: referral-spam.traefik.yml |
86 | | - |
87 | | -Traefik doesn't have native support for blocking based on Referer header. You'll need to use a Traefik plugin or custom middleware. |
88 | | - |
89 | | -The generated file contains a YAML list of domains that should be blocked. Use this with: |
90 | | -- A Traefik plugin that supports Referer header blocking |
91 | | -- A ForwardAuth middleware pointing to a service that checks the Referer header |
92 | | -- A custom middleware implementation |
93 | | - |
94 | | -See the generated file for detailed instructions and example configurations. |
95 | | - |
96 | 85 | ## Lighttpd: referral-spam.lighttpd.conf |
97 | 86 |
|
98 | 87 | Include this file in your main `lighttpd.conf`: |
@@ -148,7 +137,7 @@ php run.php --dry-run |
148 | 137 | php run.php --output /path/to/configs |
149 | 138 |
|
150 | 139 | # Options: -h (help), -v (version), --dry-run, -o (output), -t (types) |
151 | | -# Supported types: apache, nginx, varnish, iis, uwsgi, caddy, caddy2, haproxy, traefik, lighttpd, google |
| 140 | +# Supported types: apache, nginx, varnish, iis, uwsgi, caddy, caddy2, haproxy, lighttpd, google |
152 | 141 | ``` |
153 | 142 |
|
154 | 143 | ## Testing |
@@ -207,9 +196,6 @@ ADD https://raw.githubusercontent.com/Stevie-Ray/referrer-spam-blocker/master/re |
207 | 196 | # HAProxy: Download referral-spam.haproxy to /etc/haproxy/ |
208 | 197 | ADD https://raw.githubusercontent.com/Stevie-Ray/referrer-spam-blocker/master/referral-spam.haproxy /etc/haproxy/ |
209 | 198 |
|
210 | | -# Traefik: Download referral-spam.traefik.yml to /sitepath/ (use with Traefik plugin) |
211 | | -ADD https://raw.githubusercontent.com/Stevie-Ray/referrer-spam-blocker/master/referral-spam.traefik.yml /sitepath/ |
212 | | -
|
213 | 199 | # Lighttpd: Download referral-spam.lighttpd.conf to /etc/lighttpd/ |
214 | 200 | ADD https://raw.githubusercontent.com/Stevie-Ray/referrer-spam-blocker/master/referral-spam.lighttpd.conf /etc/lighttpd/ |
215 | 201 |
|
|
0 commit comments