I see you speak "Though those modules exist, this might be best implemented in your application"How can I understand it? I should write a c program for apache? or I should write some java web application at tomcat level?Because this is a web site, it has to face concurrency issue. So I prefer to resolve this issue at httpd level.
Not sure if my thinking is good or not?
blackhole_source = Falseif web_req.http_method == 'POST':rate_limiter = self.rate_limiter_post.get(ip_addr, None)if rate_limiter is not None:blackhole_source = rate_limiter()else:# Allow no more than two POST requests every five seconds.# In my experience legitimate WordPress administration doesn't# exceed this limit.self.rate_limiter_post[ip_addr] = util.RateLimiter(2, 5)if blackhole_source: