From d42aa1be8e0ab6812f74d14ad54c9a0929305299 Mon Sep 17 00:00:00 2001 From: hoelee Date: Mon, 3 Aug 2026 12:45:00 +0800 Subject: [PATCH] Initial version --- .traefik.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .traefik.yml diff --git a/.traefik.yml b/.traefik.yml new file mode 100644 index 00000000..3c7bc108 --- /dev/null +++ b/.traefik.yml @@ -0,0 +1,28 @@ +displayName: Bot Filter +type: middleware +import: github.com/hoelee/traefik-botfilter +summary: Rejects common scans and temporarily bans suspicious clients using bounded per-IP scoring. +testData: + statusCode: 403 + requireUserAgent: true + requireAccept: true + requireHost: true + browserValidation: true + whitelistCIDRs: + - 192.168.0.0/16 + - 10.0.0.0/8 + temporaryBanMinutes: 15 + blockedUserAgents: + - curl + - wget + - python + blockedPaths: + - /.env + - /.git + - /wp-login.php + - /xmlrpc.php + - /phpmyadmin + blockedExtensions: + - .env + - .bak + - .zip