Forum Moderators: phranque
RewriteEngine on
RewriteCond %{REMOTE_ADDR} ^000\.000\.000\.000$ [OR]
RewriteCond %{REMOTE_ADDR} ^000\.000\.000\.003$
RewriteRule ^.*$ http://www.example.com/ [R=301,L]
You might consider redirecting to a warning page saying something like. "Abuse detected. If this continues, it will be reported to your ISP." (Include a form to report seeing this message in error.)
Kaled.
If the abuser is tech-savvy, whatever block you put in place can be circumvented
Also if you're tricky enough you can do more advanced things with the technique above (like automating the banning process with a perl script or something like that).
By the way, why do you want to ban this user? The best solution will depend on exactly why. For example, if they're hitting your site too hard from many different IPs you might try mod_throttle for Apache.