feat: add IP filter middleware (#3035)

Closes #3011

---------

Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Octo8080X
2026-03-29 21:43:52 +02:00
committed by GitHub
co-authored by Bartek Iwańczuk Claude Opus 4.6
parent e0ee53d458
commit 566a6ce5e4
8 changed files with 315 additions and 0 deletions
+5
View File
@@ -13,6 +13,11 @@ export type { Middleware, MiddlewareFn } from "./middlewares/mod.ts";
export { staticFiles } from "./middlewares/static_files.ts";
export { csrf, type CsrfOptions } from "./middlewares/csrf.ts";
export { cors, type CORSOptions } from "./middlewares/cors.ts";
export {
ipFilter,
type IpFilterOptions,
type IpFilterRules,
} from "./middlewares/ip_filter.ts";
export { csp, type CSPOptions } from "./middlewares/csp.ts";
export type { FreshConfig, ResolvedFreshConfig } from "./config.ts";
export type { Context, FreshContext, Island } from "./context.ts";