# Traefik GeoIP Filter

Traefik GeoIP Filter is a self-hosted network services app. A GeoIP allow/blocklist middleware for Traefik that filters incoming requests by country, subdivision, city, or place using the MaxMind GeoLite2 database. It is open source and self-hosted, installable on Docker Hub and Unraid.

Canonical page: https://ourlocalhost.com/app/2018/traefik-geoip-filter

## Description

A GeoIP allow/blocklist middleware for Traefik that filters incoming requests by country, subdivision, city, or place using the MaxMind GeoLite2 database. A free MaxMind account is required to download the database.

## Platform availability

Available on 1 of 10 platforms: Unraid.

## Health score

47/100 (Fair), based on 5 of 5 factors.
- Maintained: 30 (last commit 427 days ago)
- Popular: 26 (19 GitHub stars)
- Easy to install: 35 (1 install platform, install notes, Docker image)
- Light to run: 95 (512 MB minimum RAM, runs on ARM)
- Security check: 85 (no serious findings, CI)

## Links

- Docker Hub: https://hub.docker.com/r/mpdcampbell/traefik-geoip-filter
- Unraid: https://ca.unraid.net/apps/traefik-geoip-filter-1xnklnq0k3rp62?q=traefik-geoip-filter

## Common questions

### Do I need a MaxMind account to run traefik-geoip-filter?

Yes. It uses the Maxmind GeoLite2 database, so a free MaxMind account is required.

### Does Traefik need to be on the same Docker network as the GeoIP filter?

Yes, Traefik must be on the same Docker network.

### What blocking precision can the filter support?

Access can be controlled at country, state, county, city, or town level. Accuracy decreases as the location level gets finer.

### Which ports should be open for Traefik's web entrypoints when using this middleware?

Open ports 80 and 443 for web and websecure traffic. These ports should also be open in your firewall.

## Alternatives

- BunkerWeb: BunkerWeb is a self-hosted, open-source web application firewall and NGINX-based web server that protects services with secure-by-default s…
- Caddy: Caddy is an extensible web server and reverse proxy that serves Transport Layer Security (TLS) by default, making it simple to secure and r…
- Envoy Gateway: Envoy Gateway is an open-source project that manages Envoy Proxy as a standalone or Kubernetes-based application gateway.
- Fossorial Pangolin: Open-source identity-based remote access platform using WireGuard, offering unified management, tunneled connections, granular access contr…
- Haproxy: HAProxy is a TCP proxy and a HTTP reverse proxy.
- Nginx Proxy Manager: Nginx Proxy Manager is a self-hosted reverse proxy and web server that lets you expose home or small-office applications to the internet wi…
- nginx: Nginx is an HTTP web server, reverse proxy, content cache, load balancer, TCP/UDP proxy, and mail proxy server.
- npmplus: NPMplus is an improved fork of Nginx Proxy Manager that provides a web interface for managing reverse proxy rules, SSL certificates, and ap…
- traefik: Traefik is a modern HTTP reverse proxy and load balancer that integrates with Docker, Kubernetes, and other container orchestrators to conf…
- tsdproxy: TSDProxy is a Tailscale proxy for Docker containers that automatically creates Tailscale machines for labeled containers, providing automat…

---
Source: Our Local Host (https://ourlocalhost.com/app/2018/traefik-geoip-filter), the self-hosted and open-source app directory.
