fab
84261984a6
Create test.py
...
- Send 100 curl to validate 404 returned codes (100 defined in Caddyfile).
- Send 1 curl to validate 403 returned code
2025-01-11 11:37:10 +01:00
fab
e642b22633
Update caddymib.go
...
Refactor MIB middleware to align with Caddy logging standards, refine concurrency handling, and enhance ban/whitelist logic.
2025-01-11 11:06:24 +01:00
fab
26a688dec9
Update caddymib.go
...
- Moved repeated error-tracking logic into a dedicated method (trackErrorStatus) to avoid duplication.
- Consolidated IP ban checks (banned vs. unbanned) to streamline logic in ServeHTTP.
- Cleaned up redundant logs and improved log messages.
- Ensured zero-value fields (MaxErrorCount, BanDurationMultiplier) get sensible defaults during provisioning.
- Added inline comments only where helpful, keeping code concise.
2025-01-11 11:04:21 +01:00
fab
d17446e53e
Update README.md
2025-01-10 00:33:37 +01:00
fab
9ba91a7a96
Update README.md
2025-01-10 00:32:34 +01:00
fab
30bb04ef9f
Update README.md
2025-01-10 00:31:19 +01:00
fab
30c143114f
Update caddymib.go
2025-01-09 22:11:51 +01:00
fab
d845a84a26
Update caddymib.go
2025-01-09 21:54:58 +01:00
fab
527a3bfb59
Update caddymib.go
2025-01-09 21:52:45 +01:00
fab
0599b1c4db
Update go.mod
2025-01-09 21:10:06 +01:00
fab
5524e1a82b
Update go.mod
2025-01-09 21:04:41 +01:00
fab
a8ead4fb27
Update go.mod
2025-01-09 21:01:34 +01:00
fab
e57437a9f6
Update README.md
2025-01-09 17:46:27 +01:00
fab
99e2b91aff
Update Caddyfile
...
whitelist ip or ranges added:
` whitelist 192.168.1.10 10.0.0.0/24 2001:db8::1`
2025-01-09 17:44:35 +01:00
fab
6ed6695b67
Update caddymib.go
...
ip whitelisting added to let ip or ranges bypass protection.
2025-01-09 17:44:04 +01:00
fab
ba7b3906bc
Update README.md
2025-01-09 17:27:08 +01:00
fab
fc4bd8660e
Update caddymib.go
2025-01-09 17:23:58 +01:00
fab
3c77fc7975
Update Caddyfile
...
ban_duration_multiplier added: Ban duration multiplier for each violation
2025-01-09 17:23:35 +01:00
fab
c3de832bb9
Update README.md
2025-01-09 17:16:31 +01:00
fab
085632eab2
Update Caddyfile
2025-01-09 17:12:57 +01:00
fab
4dc64d3a4b
Update caddymib.go
...
Improvements!
2025-01-09 17:12:40 +01:00
fab
65b170f456
Update README.md
2025-01-05 22:53:44 +01:00
fab
f883a1fb20
Update Caddyfile
2025-01-05 22:34:03 +01:00
fab
9151f07d85
Update README.md
2025-01-05 22:30:06 +01:00
fab
ee1fc763d6
Create go.sum
2025-01-05 22:28:07 +01:00
fab
12e298d17b
Create go.mod76
2025-01-05 22:27:47 +01:00
fab
76734211cb
Create caddymib.go
2025-01-05 22:27:21 +01:00
fab
3a095e57ea
Create Caddyfile
2025-01-05 22:27:07 +01:00
fab
adc0a18248
Initial commit
2025-01-05 22:26:57 +01:00