Ar trebui sa mearga, de ex:

order allow,deny
deny from 123.45.6.7
deny from 012.34.5.
allow from all

Aditional daca ai cPanel: Restrict access with .htaccess and the IP Deny Manager | InMotion Hosting

Ca si plugin WP folosesc https://wordpress.org/plugins/wordfence/