There are always a lot of bots trying to access to every vps, even when it's just registered right now, and no matters how many ips you ban, they will keep trying.
so can I just allow ssh access entering a domain which points to my vps instead of entering the ip? something similar like virtualhosts work.
I doubt about it, since even when you connect entering a domain, it resolves the pointed ip address, so it wouldn't connect in case I deny connection via IP...
so would be another way to make my idea possible?