Giter Site home page Giter Site logo

image_drag_auth's Introduction

image_drag_auth

php image drag auth plugin, php写的图片拖动验证插件, php写的滑动旋转图片验证插件

一、php运行要求

用到了php GD库的imagecrop方法,此方法对php版本有要求(PHP 5 >= 5.5.0, PHP 7)

二,使用说明

直接down下来就可以使用了,根据自己的情况更换背景图,以及拖动区的形状[两张图,同样大小和形状,一个镂空,一个填充]

三、注意事项

图片拖动验证的本质是分步验证! 所以在调用validation方法的时候,需要传一个第二步验证的session名,默认session名是setpSession,在提交之后在你自己的后续逻辑里面需要对setpSession进行验证,验证成功之后需要及时把它设置unset掉,或者设置成false,否则就会形成第二次提交无需验证的漏洞。

四、应用Demo

zf3框架下的实现[结合redis,应对更高的并发]
yaf框架下也有实现[结合redis,应对更高的并发]
之前的放demo的网站出售掉了,go+原生js重写,地址是 https://www.yuceai.com/rotate/rotate.html 无依赖。

五、成品源码赞赏后获得

  • 滑动拼图验证yaf版源码 50永久
  • 滑动拼图验证zf3(laminas)版源码 100永久
  • 滑动图片旋转向上yaf版源码 50永久
  • 滑动图片旋转向上zf3(laminas)版源码 100永久
  • 滑动图片旋转向上go编译版(一个编译好的可执行文件+混淆的前端代码,可以自己换图片素材) 10永久
  • 滑动图片旋转向上go源码(go源码+js打包前的代码) 1000永久
  • 滑动图片旋转向上go在线版(一对key,远程调用我的接口,承诺无广告) 20每年

欢迎联系我

抖音:

赞赏多少是您的心意,感谢支持!

微信赞赏码: 支付宝赞助码:

image_drag_auth's People

Contributors

jobsfan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

image_drag_auth's Issues

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.