Skip to content

Commit 8601596

Browse files
committed
remove useless traefik config
1 parent dfa5f56 commit 8601596

8 files changed

Lines changed: 6 additions & 4657 deletions

File tree

AGENTS.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## Project Overview
44

5-
This is the **Referrer Spam Blocker** project - a PHP library that generates configuration files for various web servers (Apache, Nginx, IIS, uWSGI, Caddy, Varnish, HAProxy, Traefik, Lighttpd) and Google Analytics segments to block referrer spam traffic. OpenLiteSpeed users should use the Apache .htaccess file as OpenLiteSpeed is Apache-compatible.
5+
This is the **Referrer Spam Blocker** project - a PHP library that generates configuration files for various web servers (Apache, Nginx, IIS, uWSGI, Caddy, Varnish, HAProxy, Lighttpd) and Google Analytics segments to block referrer spam traffic. OpenLiteSpeed users should use the Apache .htaccess file as OpenLiteSpeed is Apache-compatible.
66

77
### Key Details
88

@@ -104,7 +104,6 @@ Each server type has its own generator class:
104104
- `CaddyConfigGenerator` / `CaddyV2ConfigGenerator` → Caddy configs
105105
- `UwsgiConfigGenerator``referral_spam.res`
106106
- `HAProxyConfigGenerator``referral-spam.haproxy`
107-
- `TraefikConfigGenerator``referral-spam.traefik.yml`
108107
- `LighttpdConfigGenerator``referral-spam.lighttpd.conf`
109108
- `GoogleAnalyticsConfigGenerator``google-exclude-*.txt` (split files)
110109

README.md

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<h1 align="center">Referrer Spam Blocker :robot:</h1>
22

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>
44

55
<br />
66

@@ -82,17 +82,6 @@ acl spam_referer hdr_sub(referer) -i -f /etc/haproxy/referral-spam.haproxy
8282
http-request deny if spam_referer
8383
```
8484

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-
9685
## Lighttpd: referral-spam.lighttpd.conf
9786

9887
Include this file in your main `lighttpd.conf`:
@@ -148,7 +137,7 @@ php run.php --dry-run
148137
php run.php --output /path/to/configs
149138

150139
# 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
152141
```
153142

154143
## Testing
@@ -207,9 +196,6 @@ ADD https://raw.githubusercontent.com/Stevie-Ray/referrer-spam-blocker/master/re
207196
# HAProxy: Download referral-spam.haproxy to /etc/haproxy/
208197
ADD https://raw.githubusercontent.com/Stevie-Ray/referrer-spam-blocker/master/referral-spam.haproxy /etc/haproxy/
209198
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-
213199
# Lighttpd: Download referral-spam.lighttpd.conf to /etc/lighttpd/
214200
ADD https://raw.githubusercontent.com/Stevie-Ray/referrer-spam-blocker/master/referral-spam.lighttpd.conf /etc/lighttpd/
215201

composer.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "stevie-ray/referrer-spam-blocker",
3-
"description": "Apache, Nginx, IIS, uWSGI, Varnish, HAProxy, Traefik & Lighttpd blacklist plus Google Analytics segment to prevent referrer spam traffic",
3+
"description": "Apache, Nginx, IIS, uWSGI, Varnish, HAProxy & Lighttpd blacklist plus Google Analytics segment to prevent referrer spam traffic",
44
"keywords": [
55
"spam",
66
"blacklist",
@@ -13,7 +13,6 @@
1313
"iis",
1414
"uwsgi",
1515
"haproxy",
16-
"traefik",
1716
"lighttpd"
1817
],
1918
"license": "MIT",

0 commit comments

Comments
 (0)