.htaccess ile yapilabilir :

order allow,deny
deny from ip1
deny from ip2
deny from ip3
allow from all