I do something similar, then fail2ban immediately bans the ip for a few hours. The only people going to my root domain are people i do not want sniffing around. It also does the same if you dont pass in my domain at all (and are just hitting random ips).
Mine returns a 404, but on purpose. Everything I want internet-facing is behind a cloudflare tunnel on appropriate subdomains.
I do something similar, then fail2ban immediately bans the ip for a few hours. The only people going to my root domain are people i do not want sniffing around. It also does the same if you dont pass in my domain at all (and are just hitting random ips).
That’s great!