If someone is trying to hack your website or you want to block their IP Address, you can add this line to your .htaccess file.order allow,denydeny from IP-ADDRESSallow from allReplace "IP-ADDRESS" with the IP Address you want to block.
How to protect a folder with username and password in cPanel?
How to disable directory browsing using .htaccess?
How to protect your .htaccess file?
How to restrict directory access by IP address?
How to blacklist an IP Address to deny it access to your website?