As WizzUpload said you need to block ssh/telnet protocol access, putty is just a software to connect via that protocol. you can also restrict login via ssh just from your IP, Search these terms on google you will find a lot of tutorials on how to do it: "block ssh by ip" or "block ssh brute force" or "ssh access disable"