| 1 |
Captcha |
| 2 |
======= |
| 3 |
|
| 4 |
Presentation |
| 5 |
------------ |
| 6 |
|
| 7 |
Captcha is a security mechanism to prevent forms from being submited by robots. |
| 8 |
|
| 9 |
Captchas are available on following forms: |
| 10 |
|
| 11 |
- Login form: where user inputs login and password for authenticating |
| 12 |
- Password reset by mail form: where user inputs mail to recover a forgotten password |
| 13 |
- Register form: where user inputs information to create a new account |
| 14 |
|
| 15 |
|
| 16 |
.. attention:: |
| 17 |
|
| 18 |
We use the GD::SecurityImage Perl module to generate images. |
| 19 |
This module is required if you enable Captcha feature. |
| 20 |
With Debian-based distributions, you may have to install 'gsfonts' package. |
| 21 |
|
| 22 |
Configuration |
| 23 |
------------- |
| 24 |
|
| 25 |
Go in ``General parameters`` > ``Portal`` > ``Captcha``: |
| 26 |
|
| 27 |
- **Activation in login form**: set to "On" to display captcha in login |
| 28 |
form, or *- starting from version 2.20.0 -* use a rule if you want to enable |
| 29 |
it only for some networks. Example: |
| 30 |
``inSubnet('10.0.0.0/8', '192.168.0.0/16') or isInNet6($ipAddr, 'fe80::/10')`` |
| 31 |
- **Activation in password reset by mail form**: set to "On" to display |
| 32 |
captcha in password reset by mail form, or *- starting from version 2.20.0 -* |
| 33 |
use a rule |
| 34 |
- **Activation in register form**: set to 1 to display captcha in |
| 35 |
register form, or *- starting from version 2.20.0 -* use a rule |
| 36 |
- **Size**: define captcha length |
| 37 |
- **Captcha module**: allows you to use a custom Captcha module, see |
| 38 |
:ref:`below <customcaptcha>`. Leave it blank to use the default Captcha |
| 39 |
implementation |
| 40 |
- **Captcha module options**: options for the custom Captcha module |
| 41 |
|
| 42 |
.. _customcaptcha: |
| 43 |
|
| 44 |
Alternatives |
| 45 |
------------ |
| 46 |
|
| 47 |
- :doc:`Google reCaptcha<recaptcha>` |
| 48 |
|
| 49 |
Custom Captcha modules |
| 50 |
---------------------- |
| 51 |
|
| 52 |
.. versionadded:: 2.0.15 |
| 53 |
|
| 54 |
If the default Captcha does not meet your requirements, you can replace it with |
| 55 |
a different implementation. See the ``Lemonldap::NG::Portal::Captcha`` manual |
| 56 |
page for details on how to implement a Captcha module. |