How to block a country from hitting my router

I’m using Avast Free Antivirus and would like to know if it’s possible to block an entire country from hitting my router. I have set up a network rule for one particular IP address but it is not working.

First, I’m an Avast user and not an Avast Team member.

I have been using Avast Free for 21 years and this isn’t something I have heard of. Also blocking a country, I’m sure would require a whole range of IP addresses and this confirmed on a search “Yes, countries have specific IP address ranges

Where have you setup this Network rule ?

Now you wouldn’t want to be entering multiple IP ranges and I don’t know if the use of the wildcard * would work, example 123.123.123.1**

But if you can’t add it for just one IP I suspect it wouldn’t work when using wildcard * either.

If you say router, then it’s impossible; Avast Free works on PCs, not routers.
Your router itself may have integrated firewall so I’d suggest to consult its manual first.