This week's book giveaway is in the OCAJP forum.
We're giving away four copies of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) and have Khalid A Mughal & Rolf W Rasmussen on-line!
See this thread for details.
Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

DoS Attack Filter

 
Aymeric Levaux
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm looking for a J2EE filter to prevent DoS attack. Does any body knows such filter ?
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34839
369
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Aymeric,
Technically speaking you can't prevent a DoS attack; only minimize its impact. In particular, the resources of serving the request and getting to the filter are still used. In some cases, this may be enough to get the server to 100% capacity.

The best you can do is cache the IP addresses that make requests in the filter and not process the request if there are X number from a certain IP within a predetermined interval. Note that proxy servers make it look like many users are coming from the same IP. So it is legitimate to have concurrent requests.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic