Hi everyone,
I’m looking to configure Traefik to **drop/reject** any incoming HTTP/HTTPS request that does **not** include a valid `Host` header i.e., requests hitting the server directly via its public IP without a domain.
Use case: Prevent direct IP access and force all traffic through proper virtual hosts.
Questions:
- Is there a built-in way (middleware, entrypoint config, etc.) to **drop** such requests (e.g. return 444, 400, or just close the connection)?
- If not natively, can this be achieved with a custom middleware (e.g. plugin) or by combining existing ones?
- Any recommended configuration snippet for Traefik v3?
I’ve seen `entryPoints` and `serversTransport`, but nothing specifically for mandatory Host headers.
Thanks in advance!