Possible Duplicate:Make your site anti-bot? I have a custom web form on my PHP-based site.Recently it is getting a regular stream of comment-spam postings from a few specific IP addresses.Question:  What is a good way to block a small set of blacklisted IP addresses from accessing my site?I was thinking it should be possible using .htaccess to respond with status code 403 (Forbidden) for all HTTP requests from the blacklisted IP addresses, ... but I am not sure exactly how to do that.If anyone knows the .htaccess syntax needed to accomplish this, ... please let me know.thanks in advance,
Best way to block comment spam postings to web forms?
spam prevention