GithubHelp home page GithubHelp logo

animatedcaptcha's Introduction

AnimatedCAPTCHA

A simple JSP that provides a random string of characters over a background of bubbles.

Better than simple images, the characters wiggle and disappear, and the background moves, to help defeat OCR.

AnimatedCAPTCHA.jsp

The JSP page. Ensure there is no whitespace at the beginning of the file (as an IDE's format tool will occasionally break this) as the output must be written by the scriptlet.

Several paramters can be set via query string:

  • id - will name the Session variable in which to store the value--allows multiple uses on the same HTML page; use this in other JSP/Servlet to confirm the value from the form
  • redraw - will tickle the JSP to draw a new image using a different background and character fonts and colors; use this to refresh the image without changing the value
  • char - the number of letters to include
  • width - the horizontal width to use for the image
  • height - the vertical height to use for the image
  • circles - the number of background circles or bubbles to draw

AnimatedCAPTCHA.html

A trivial example to show how it might be implemented. Really it's <img src='AnimatedCAPTCHA.jsp'> or <img src='AnimatedCAPTCHA.jsp?id=foo&width=300&height=150'> for an example implementing options.

License

AnimatedCAPTCHA is made available under the [MIT license] (http://opensource.org/licenses/MIT). It's here, use it. Credit me or don't.

animatedcaptcha's People

Contributors

jekewa avatar

Watchers

 avatar

Forkers

yinfeifan qixs

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.