Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
Signed-off-by: Jason Cameron <git@jasoncameron.dev>
  • Loading branch information
JasonLovesDoggo authored Jan 21, 2025
1 parent cbcf3d8 commit d08369f
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,15 +84,6 @@ defender <responder> {
- `custom`: Returns a custom message (requires `responder_args`).
- `<ip_ranges...>`: A list of CIDR ranges or predefined range keys (e.g., `openai`, `localhost`) to match against the client's IP.
- `<custom message>`: A custom message to return when using the `custom` responder.
#### **Ordering the Middleware**
To ensure the `defender` middleware runs before other middleware (e.g., `basicauth`), add the following to your global configuration:

```caddyfile
{
order defender before basicauth
}
```

---

### **Examples**
Expand Down Expand Up @@ -143,7 +134,9 @@ The plugin includes predefined IP ranges for popular AI services. These ranges a
| DeepSeek | [deepseek.go](ranges/fetchers/deepseek.go) |
| GitHub Copilot | [github.go](ranges/fetchers/github.go) |
| Microsoft Azure | [azure.go](ranges/fetchers/azure.go) |
| Localhost (testing) | [localhost.go](ranges/fetchers/localhost.go) |
| Localhost (testing) | [localhost.go](ranges/fetchers/localhost.go) |
| AWS | [aws.go](ranges/fetchers/aws/aws.go) |
| AWS Region | [aws_region.go](ranges/fetchers/aws/aws_region.go) |

More are welcome! for a precompiled list, see the [embedded results](ranges/data/generated.go)

Expand Down

0 comments on commit d08369f

Please sign in to comment.