hosts.deny not working (restrict ssh from access)

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

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?