You can deny access based upon IP address, IP block or domain name. This can be done by creating an .htaccess file with the following code.
CODE
order allow,deny
deny from xxx.xx.xx.xx
allow from all
*Replace the “xxx.xx.xx.xx” with the IP you want to ban.
To deny more than one IP just add the “deny from xxx.xx.xx.xx” under the previous one like this.
CODE
Order allow,deny
deny from xxx.xx.x.x
deny from xxx.xxx.xx.x
deny from xx.xx.xxx.xx
allow from all
You now have 3 IP addresses blocked or you can “deny from all” to turn everyone away from your site