Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Please suggest brute force protection other than built-in captcha

  • bulgin
  • bulgin's Avatar Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
4 years 7 months ago - 4 years 7 months ago #188016 by bulgin
hello @denischenu and thank you for your continued interest. I'm happy about that.

I don't know how to make a lite plugin out of:

'log' => array(
'routes' => array(
'fileError' => array(
'class' => 'CFileLogRoute',
'logFile' => 'tokenaccess.log',
'levels' => 'warning, error',
'categories' => 'plugin.logToken.Error',
),
),
),
Last edit: 4 years 7 months ago by bulgin.
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 7 months ago #188031 by DenisChenu
No,

PLugin must be here only to add the
Code:
\Yii::log("Bad token entered", error, 'plugin.logToken.Error');

In onSurveyDenied event.

After you can update config.php to log in on a specific file and use fail2ban configuration to disable IP access to whole system.

Alternative : create a more complete plugin to disable access directly in onSurveyDenied event.

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The topic has been locked.
  • bulgin
  • bulgin's Avatar Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
4 years 7 months ago #188064 by bulgin
So appreciate your efforts to help me DenisChenu. Really, I do. You are great, but my coding skills are very primitive. I need to see a single file that contains all the necessary commands as a plugin - I cannot figure out how to glue the pieces together.

From what I see of existing plugins there is one file that is the plugin. You examples, are they just one file or multiple files?
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 7 months ago #188095 by DenisChenu

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose