# Ipallowlist to use file with IPs

**URL:** <https://community.traefik.io/t/ipallowlist-to-use-file-with-ips/30380>\
**Category:** Traefik v3 (latest)\
**Tags:** middleware\
**Created:** [November 8, 2026, 12:37pm UTC](https://community.traefik.io/t/ipallowlist-to-use-file-with-ips/30380 "2026-11-08T12:37:58Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![lazyest](https://sea2.discourse-cdn.com/flex020/user_avatar/community.traefik.io/lazyest/32/5641_2.png) [@lazyest](https://community.traefik.io/u/lazyest)\
**Post date:** [November 8, 2026, 12:37pm UTC](https://community.traefik.io/t/ipallowlist-to-use-file-with-ips/30380/1 "2026-11-08T12:37:58Z")

</div>

Sorry for borrowing you people, but is there currently a way to make ipallowlist middleware use some kind of file as a source of IPs to whitelist?

---

<div class="post-metadata">

**Author:** ![4uvFelixYoungpn](https://avatars.discourse-cdn.com/v4/letter/4/f4b2a3/32.png) [@4uvFelixYoungpn](https://community.traefik.io/u/4uvFelixYoungpn)\
**Post date:** [November 9, 2026, 4:04pm UTC](https://community.traefik.io/t/ipallowlist-to-use-file-with-ips/30380/2 "2026-11-09T16:04:36Z")

</div>

File-based allowlists are nicer when the set changes weekly.

I keep the list in git with a boring reload hook — human-readable diffs beat a long CLI flag history. Just make sure empty-file behaviour fails closed, or you’ll invent an exciting outage.
