LiveWhale

Welcome, Guest Login

Support Center

Our documentation is moving: docs.livewhale.com

Please check docs.livewhale.com for the most up-to-date LiveWhale CMS and LiveWhale Calendar documentation. The below legacy documentation will remain available as a reference until the documentation migration is complete.

Configuring captcha support

Last Updated: Jul 09, 2019 12:44PM PDT

You will be redirected shortly...

Certain LiveWhale features requiring form submissions, such as the forms widget or publicly submitted news, events, etc., will benefit from a “captcha”. A captcha is a randomized question which offers proof that the user filling out the form is not a spam robot.

Features in LiveWhale which support captchas will operate fine without a captcha, however taking an extra step to configure and enable captcha support is recommended to prevent spam.

For Captcha Support

For captcha support, LiveWhale will use an account with the free Google Recaptcha service. Only one account is needed per institution.

Once signup is complete, Recaptcha will provide you with a public key and a private key. These keys must be entered into LiveWhale’s configuration to enable support: 

  1. Open the master LiveWhale config (/livewhale/core/config.php) using an FTP client or via the command line.
  2. Set the recaptcha settings to the public and private key values provided to you by Recaptcha.
    $GLOBALS['LIVEWHALE_CONFIG']['CREDENTIALS']=array(
         'RECAPTCHA'=>array(
              'PUBLIC_KEY'=>'',
              'PRIVATE_KEY'=>''
    ),
  3. Open /livewhale/client/global.config.php and comment out the following code block (if not disabled already) to let recaptcha take over:
    //$_LW->CONFIG['PUBLIC_QUESTION']='1 + 1 = ? (This is your default captcha. <a href="https://livewhale.desk.com/customer/portal/articles/1456563-configuring-captcha-support" target="_blank">Configure</a>)'; 

    //$_LW->CONFIG['PUBLIC_ANSWER']=array('2', 'two');



Do not wish to use Recaptcha?

If you do not wish to use Recaptcha, you may alternatively configure LiveWhale to use a custom question/answer instead. See instructions below:

  1. ‚ÄčOpen the global client config (/livewhale/client/global.config.php) using an FTP client or via the command line.
  2. Use the following settings to override Recaptcha support with a custom question/answer pair:
    $_LW->CONFIG['PUBLIC_QUESTION']='In what year was this school founded?';
  3. To specify the answer of the question, enter it like this:
    $_LW->CONFIG['PUBLIC_ANSWER']='1857';

NOTE: Try to use a question that has only one exact answer. However, if multiple possible answers are allowed, specify the value of PUBLIC_ANSWER as an array of acceptable responses. (See below for array example)

$_LW->CONFIG['PUBLIC_ANSWER']==array('1857','1858');


 

All public forms will posses a “honeypot” field, regardless of whether captchas are used. The honeypot field offers some basic spam protection, but for advanced filtering you should configure captcha support as well.

eb8f96c071020d8b0923da726d6cab65@livewhale.desk-mail.com
https://cdn.desk.com/
false
desk
Loading
seconds ago
a minute ago
minutes ago
an hour ago
hours ago
a day ago
days ago
about
false
Invalid characters found
/customer/en/portal/articles/autocomplete