hosts.deny not working (restrict ssh from access)

Hey
im working on centos to deny access to ssh by country and found a good script.

In / etc / hosts .deny add the line:
sshd: ALL

an… | Read the rest of https://www.webhostingtalk.com/showthread.php?t=1829670&goto=newpost

linux hosts.deny ALL EXCEPT does not work

I added this line to the hosts.deny file /etc/hosts.deny to allow only access to our apache server from the selected address but it does not work for me. Any suggestions where I'm wrong?

ALL EXCEPT: 192.168.3.169