Not sure how reliable the source is, but it's from the watch.
http://www.clockwatchers.com/htaccess_block.html
To block a single IP address
order allow,deny deny from 127.0.0.1 allow from all
This will reject all GET and POST requests made at IP address 127.0.0.1, instead an error message will be displayed.
To block multiple IP addresses, list them one at a time
order allow,deny deny from 127.0.0.1 deny from 127.0.0.2 deny from 127.0.0.3 allow from all
To block the entire ip range
deny from 127.0.0
This will disable access for any user with an address in the range 127.0.0.0 to 127.0.0.255.
Edit: just found the same question here.
How to block a range of IP addresses using a .htaccess file
It seems the answers are similar too.
Richard Hamilton
source share