jqqjj / laravel-simple-judge-robot
Laravel simple judge robot
dev-master
2022-07-04 08:20 UTC
Requires
- php: ~7.0|~8.0
- illuminate/support: ~5.5|~6.0|~7.0|~8.0|~9.0
This package is auto-updated.
Last update: 2025-04-04 14:21:24 UTC
README
A simple way to determine whether the client is a machine
installation
composer require jqqjj/laravel-simple-judge-robot
methods
- void JudgeRobot::attemptFailure()
- void JudgeRobot::attemptSuccess()
- bool JudgeRobot::isHuman()
- bool JudgeRobot::isRobot()
- void JudgeRobot::trashData()
- string JudgeRobot::getCookieKey()
- string JudgeRobot::getSessionId()
- \Jqqjj\LaravelSimpleJudgeRobot\Session JudgeRobot::getSession()
- string JudgeRobot::getOutputCookieString()
- void JudgeRobot::outputCookie()
usage
- Call JudgeRobot::attemptFailure() method when clients incorrectly access sensitive operations.
- Call JudgeRobot::attemptSuccess() method when clients correctly accesses sensitive operations.
- Call JudgeRobot::isHuman() method to determine whether the client is human.
- Call JudgeRobot::isRobot() method to determine whether the client is a robot.
- Call JudgeRobot::trashData() method to clear history data.
LICENCE
MIT