I'd like to block connections to specific domains.
I know about the HOSTS file on Windows, but unfortunately it does not support wildcards. Basically, I'd like to block all connections to *.somedomain.com. The point is that the * can be almost anything so I cannot hardcode all possibilities.
Therefore, how can I block connections to those domains (including all subdomains) on Windows?