Yes. Don't forget to turn the rewrite engine on if it's not already turned on:
Also note that rather than using the mod_rewrite engine as I've suggested, the wiki espouses the use of the mod_access engine:
deny from 124.115.0
allow from all
Either will work. I think you can get finer granularity with a rewrite directive because you have more regular expression capabilities and also can combine conditions involving both the address, hostname, and name of the agent, etc.
Blocking the right set of bots is a whole little hobby in and of itself, much like keeping insects out of your home. Good luck and please feel free to come back for additional advice!
Free unique IP and $67 off with promo code [color=#CC0000]FLENSFREEIP67[/color] or use [color=#CC0000]FLENS97[/color] for $97 off. Click here for more options