79 Commits

Author SHA1 Message Date
fab
be84f1afe6 Merge pull request #10 from kjnez/main 2025-12-01 06:15:24 +01:00
Yingnan Cui
ff2be876f8 Add sliding window 2025-11-29 18:58:59 -08:00
fab
f40379a3d7 Merge pull request #7 from fabriziosalmi/dependabot/go_modules/golang.org/x/net-0.38.0
Bump golang.org/x/net from 0.36.0 to 0.38.0
v1.0.1
2025-05-26 00:04:06 +02:00
dependabot[bot]
f7dca9e5a3 Bump golang.org/x/net from 0.36.0 to 0.38.0
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.36.0 to 0.38.0.
- [Commits](https://github.com/golang/net/compare/v0.36.0...v0.38.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-version: 0.38.0
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-04-16 23:19:57 +00:00
fab
f88935f525 Merge pull request #3 from fabriziosalmi/dependabot/go_modules/github.com/golang/glog-1.2.4
Bump github.com/golang/glog from 1.2.2 to 1.2.4
v1.0.0
2025-03-13 11:10:26 +01:00
fab
ae24bef1f3 Merge pull request #4 from fabriziosalmi/dependabot/go_modules/golang.org/x/net-0.36.0
Bump golang.org/x/net from 0.33.0 to 0.36.0
2025-03-13 11:10:11 +01:00
dependabot[bot]
bd43d4c083 Bump golang.org/x/net from 0.33.0 to 0.36.0
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.33.0 to 0.36.0.
- [Commits](https://github.com/golang/net/compare/v0.33.0...v0.36.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-03-13 01:34:52 +00:00
dependabot[bot]
4ffb0b9afd Bump github.com/golang/glog from 1.2.2 to 1.2.4
Bumps [github.com/golang/glog](https://github.com/golang/glog) from 1.2.2 to 1.2.4.
- [Release notes](https://github.com/golang/glog/releases)
- [Commits](https://github.com/golang/glog/compare/v1.2.2...v1.2.4)

---
updated-dependencies:
- dependency-name: github.com/golang/glog
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-02-28 10:43:32 +00:00
fab
213bf9ba54 Merge pull request #2 from fabriziosalmi/dependabot/go_modules/github.com/go-jose/go-jose/v3-3.0.4
Bump github.com/go-jose/go-jose/v3 from 3.0.3 to 3.0.4
2025-02-28 11:42:28 +01:00
dependabot[bot]
a6f58e35db Bump github.com/go-jose/go-jose/v3 from 3.0.3 to 3.0.4
Bumps [github.com/go-jose/go-jose/v3](https://github.com/go-jose/go-jose) from 3.0.3 to 3.0.4.
- [Release notes](https://github.com/go-jose/go-jose/releases)
- [Changelog](https://github.com/go-jose/go-jose/blob/main/CHANGELOG.md)
- [Commits](https://github.com/go-jose/go-jose/compare/v3.0.3...v3.0.4)

---
updated-dependencies:
- dependency-name: github.com/go-jose/go-jose/v3
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-02-26 22:22:14 +00:00
fab
583fa46863 Update README.md 2025-02-23 22:37:26 +01:00
fab
07785bdb8f Update go.yml 2025-01-20 23:32:30 +01:00
fab
038d952177 Update README.md 2025-01-20 23:31:18 +01:00
fab
aeb5505197 Update README.md 2025-01-20 23:26:26 +01:00
fab
e8e2156a0f Update go.yml 2025-01-20 23:25:33 +01:00
fabriziosalmi
7f77483e36 test script updated and minor improvements 2025-01-20 23:12:25 +01:00
fabriziosalmi
2b70c1f9a1 Added new tests for additional cases, fixed a glitch into middleware servehttp 2025-01-20 22:59:17 +01:00
fab
c933f90e6c Update go.yml 2025-01-20 22:47:46 +01:00
fab
6c76dccb51 Update README.md 2025-01-20 22:46:53 +01:00
fabriziosalmi
734a89b00c fix: improve error handling and whitelist localhost in caddy_mib middleware
- Updated `extractStatusCodeFromError` to handle error message format correctly.
- Added `::1` and `127.0.0.1` to the whitelist to exclude localhost from banning.
- Increased ban duration to 30 seconds globally and 60 seconds for `/api`.
- Set `log_level` to `info` to reduce log noise in production.
- Replaced `file_server` with a `handle` directive to return "Hello World" with a 200 status code for allowed requests.
2025-01-20 22:45:42 +01:00
fab
1b25ad6de2 Create FUNDING.yml 2025-01-15 17:13:49 +01:00
fab
cf92b9504a Update README.md 2025-01-13 01:57:31 +01:00
fab
2e92c7a659 Update README.md 2025-01-13 01:57:06 +01:00
fab
ce0e1ce8d0 Create go.yml 2025-01-13 01:56:37 +01:00
fab
d0b66c0de7 Update README.md 2025-01-13 01:54:50 +01:00
fab
eb2487363f Update main.yml 2025-01-13 01:50:59 +01:00
fab
ed943d08e0 Create main.yml 2025-01-13 01:47:31 +01:00
fab
827a922ca5 Update README.md 2025-01-12 01:49:30 +01:00
fab
b18408e687 Update README.md 2025-01-12 01:47:31 +01:00
fab
10da1560c1 Update README.md 2025-01-12 01:47:07 +01:00
fab
398f179e91 Update test.py
200/404 test added
2025-01-12 01:46:25 +01:00
fab
b60908ec11 Update README.md 2025-01-12 01:38:48 +01:00
fab
1cfd699055 Update README.md 2025-01-12 01:37:45 +01:00
fab
1c8b1d1174 Update test.py 2025-01-12 01:34:24 +01:00
fab
809857e030 Update test.py 2025-01-12 01:19:06 +01:00
fab
0f465a021c Update README.md 2025-01-11 13:47:52 +01:00
fab
0f6c168a98 Update caddymib.go 2025-01-11 13:45:11 +01:00
fab
754e7b911b Update Caddyfile 2025-01-11 13:44:55 +01:00
fab
62d098bc13 Update test.py 2025-01-11 13:44:40 +01:00
fab
2db2854215 Update README.md 2025-01-11 12:57:25 +01:00
fab
604a2e50b8 Update caddymib.go 2025-01-11 12:55:01 +01:00
fab
704fb93b8f Update Caddyfile
custom http code return option (429 as default or 403)
2025-01-11 12:54:48 +01:00
fab
ebb58afbc5 Update README.md
Update doc for new features.
2025-01-11 12:48:23 +01:00
fab
19d3dfe357 Update test.py 2025-01-11 12:45:07 +01:00
fab
4b9477d2c5 Update caddymib.go 2025-01-11 12:36:37 +01:00
fab
0461d9ea78 Update Caddyfile 2025-01-11 12:36:22 +01:00
fab
bf88444c26 Update Caddyfile 2025-01-11 12:17:13 +01:00
fab
bbccebfbf9 Update caddymib.go
Added test and improved code.
2025-01-11 11:40:25 +01:00
fab
8a79d47eec Update Caddyfile 2025-01-11 11:39:38 +01:00
fab
d476ecf21b Update Caddyfile 2025-01-11 11:37:28 +01:00