also this
RewriteEngine on
RewriteMap hosts-deny txt:/etc/hosts.deny
RewriteCond ${hosts-deny:%{REMOTE_HOST}|NOT-FOUND} !=NOT-FOUND [OR]
RewriteCond ${hosts-deny:%{REMOTE_ADDR}|NOT-FOUND} !=NOT-FOUND
RewriteRule ^/.* - [F]
THe /etc/hosts.deny is a suggestion, you may use whatever you choose.
