We have been seeing a lot of comment spam on blogs.sun.com and so I
wanted to add in a little more comment spam protection for those users
that want it. I have a few small changes ...
1. Add a new utility class called IPBanList which manages a list of
banned ips in a file on the filesystem.
2. Rewrite the IPBanFilter to use the IPBanList. Map the filter to the
comment servlets by default, but disable it via the config file. Users
would have to enable it in their config to use it.
3. Touch up the CommentServlet a bit and add a little code that does
throttling checks to see if a client has posted too many comments in a
given period of time.
Pretty simple stuff and it will be disabled by default and controlled
from the config file for people who want it.
-- Allen
- anyone mind if i replace the IPBanFilter and add some comm... Allen Gilliland
-