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

Form flooding protection

 
Aymeric Levaux
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm looking for an API that generates image with a random number to display it in a form to check that a real user is filling this form (not a flooder)
Does any body knows about such an API (may be a custom tag ) ?

Thank You !
 
Pavel Cherkashin
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello, It looks like you should implement it yourself.
I think these passages of code will help you:
The servlet code (in doGet method):



The getImage code - it generates BufferedImage,
which shows the fascia of percents passed in parameters
you can draw there digits, text, and other info,
which will be concerned with Session

 
David O'Meara
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
For those coming in late, there is also a response in a (closed) duplicate thread here.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic