GithubHelp home page GithubHelp logo

shadowcaptcha's Introduction

#ShadowCaptcha the invisible captcha

Use standard user interaction to detect human activity. Encode your action path to prevent robot to read and send spam to it. Use honeypot to trap robot, if an extra field is completed, form not submitted.

At this time, plugin is available with

  • jQuery 1.8+

Current encode available

  • base64

Compatible with

  • IE7+
  • Chrome
  • Firefox Most of common recent browsers

##Base Edit your form element, empty action parameter, and set new parameter with your action path encoded

In php

<form role="form" method="get" action="" data-shdcapt="<?php echo base64_encode("/form/test/demo.php"); ?>">

Render

<form role="form" method="get" action="" data-shdcapt="L2Zvcm0vdGVzdC9kZW1vLnBocA==">

##For jQuery version Simply include shadowCaptcha script, and call plugin before user submit

<script src="/js/min/shadowCaptcha.min.js"></script>
<script>
jQuery(document).ready(function(){
	jQuery('form').shadowCaptcha({rollingCodeSalt:"JFHGInrjg!LIGGENjg"});
})
</script>

###Parameters

  • action (default : "data-shdcapt") : attribute with encoded path
  • rollingCodeSalt (default : false) : Salt used to generate input value sent with form
  • rollingCodeName (default : "sc-rolling-code") : name of field sent with form
  • honeyName (default : "sc-honey-code") : name of honeyPot field
  • rollingCodeCypher (default : function) : function used to generate uniq rolling code, by default return rollingCodeSalt

##Todo

  • add javascript only plugin to be jquery free
  • add encoding with key
  • add ajax code generation for server check after submit

shadowcaptcha's People

Watchers

meetjey avatar

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.