How to forbid direct IP visit to discourse?

host header needs to be parsed though, so its not doable in iptables.