How to ban the IP address via .HTAccess?
If any person is trying to hack the website and you want to block their IP Address, then you should simply add this line to your .htaccess file.
order allow, deny
deny from IP-ADDRESS
allow from all
Replace “IP address” with that address you need to block.