Download the PHP package sebastienheyd/hidden-captcha without Composer
On this page you can find all versions of the php package sebastienheyd/hidden-captcha. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download sebastienheyd/hidden-captcha
More information about sebastienheyd/hidden-captcha
Files in sebastienheyd/hidden-captcha
Package hidden-captcha
Short Description Fully hidden captcha for Laravel without reCaptcha
License MIT
Informations about the package hidden-captcha
Fully hidden captcha for Laravel without reCaptcha
Fully hidden spam protection solution for Laravel without reCaptcha. Based on several strategies to block the vast majority of spam bots without interfering with the user experience.
How does it work?
HiddenCaptcha will use three checking rules to block spam robots :
- an encrypted token containing the user's IP, current session id, current user agent and a random string
- a randomly named required field (will use the random string in the token)
- a time limit (10 minutes by default)
The token is retrieved via an ajax call signed with sha256.
Installation
Publish public assets :
Extra steps for Laravel < 5.5 :
- Add
SebastienHeyd\HiddenCaptcha\HiddenCaptchaServiceProvider::class,
at the end of theprovider
array inconfig/app.php
- Add
"HiddenCaptcha" => SebastienHeyd\HiddenCaptcha\Facades\HiddenCaptcha::class,
at the end of thealiases
array inconfig/app.php
Usage
In your forms, in the blade view :
To check your form, add the following validation rule:
Options
Changing time limits
By default, the time limits for submitting a form are 0 second minimum to 1200 seconds maximum (10 minutes). Beyond that, hiddencaptcha will not validate the form.
These limits can be changed by declaring them in the validation rule, for example:
$rules = ['captcha' => 'hiddencaptcha:5,2400'];
You can also publish the configuration file to edit the default time limits :
Package update (Laravel < 8.6.9)
Hidden-captcha comes with a JS who must be publish. Since you typically will need to overwrite the assets every time the package is updated, you may use the flag :
To auto update assets each time package is updated, you can add this command to post-update-cmd
into the
file composer.json
at the root of your project.
All versions of hidden-captcha with dependencies
ext-json Version *
laravel/framework Version ^5.0|^6.0|^7.0|^8.0|^9.0|^10.0