I am trying to block certain servers on computers based on keywords that appear in their URLs. Currently, I am able to do this partially using the Internet Options -> Security settings and wildcards in the following format: ://.xxx.com.

However, I am unable to use wildcards in the format *://xxx, which is what I am trying to do. In addition to blocking websites, I also need to restrict connections to specific servers made by programs.

Is there a way to block URLs based on specific words or patterns, possibly at the connection level on the network card?

I’m open to splitting this question into smaller parts if needed.

Askify Moderator Edited question May 4, 2023