Giter VIP home page Giter VIP logo

slidercaptcha's Introduction

sliderCaptcha-django

A python-django toy project hybriding visualCaptcha and QapTcha

Installation

You need Python installed with pip.

pip install -r requirements.txt

In current settings, memcached is used for django in memory cache. The default port is localhost:11211. However, built-in default local memory also works. You can change the CACHES settings in settings.py.

Run server

First make sure memcached is running on 11211. Or start it with

$ memcached

To start the server on port, for example, 8282, run the following command:

$ python manage.py runserver 0.0.0.0:8282

Run tests

If you want to run the unit tests, use the following command:

python manage.py test

API

I adopted the visualCaptcha utilities and left the APIs unchanged. (But you have to include the js/css code if you want to use.)

Following are added:

GET /startslider

This route will be the first route called by the front-end, which will generate and store session data.

GET /slider(/:foreground)

This route will be called for the slider image

Parameters:

  • foreground is optional means fetching slider image.

POST /scroll

This route is where the sliderCaptcha validation takes place.

License

MIT. Check the LICENSE file.

slidercaptcha's People

Contributors

stan-haochen avatar stanstarks avatar

Stargazers

Zhaotian Wang avatar

Watchers

 avatar James Cloos avatar

Forkers

zensec

slidercaptcha's Issues

Fix the historical problems

  1. change the mouse trace post into file streaming (periodically)
  2. find ways of manipulating the image, like adding noise?
  3. move the slider to cache
  4. modify the slider img
  5. refresh image only when changed

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.