Use flood control API in votingapi module

Created on 9 August 2023, over 1 year ago
Updated 26 August 2024, 3 months ago

Problem/Motivation

I think that such a feature Use flood control API in flag Needs work , which could be used with patch in Flag module, is an important need for votingapi.
VotingAPI operations are not limited to voting only. Many sites use votingapi with other extended modules.
Either maliciously* or by accident, an automated script or unconscious clicks or malicious user clicks can create a large number of voting by crawling a site and clicking vote links. Especially when these votings trigger some behaviour, such as activities in a timeline, this can be quite disruptive.

This is not the same as rollover options. This is to prevent them from clicking triggers within a certain time frame.
You may want to take a look: https://www.drupal.org/project/flag/issues/3112986 Use flood control API in flag Needs work

Feature request
Status

Active

Version

4.0

Component

Code

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @erdm
  • 🇺🇸United States tr Cascadia

    Sure, that could be useful. Can you submit a patch?

    I was involved in that Flag issue three years ago, and it's still open. If you would like to get a similar feature into Voting API then it will require a patch, test cases, and user feedback reported here in this issue.

    Because flood control is something that is useful in many places, and because very few contributed module implement flood control, I find it more useful in general to use Rules to write the workflow processes on a site. Detecting floods and doing something about them (even if it's just logging) is a workflow issue that affects the site as a whole, not just individual modules.

  • 🇺🇸United States tr Cascadia
  • Assigned to RohitRawat676
  • Issue was unassigned.
  • Status changed to Needs review about 1 year ago
  • Open in Jenkins → Open on Drupal.org →
    Core: 9.5.5 + Environment: PHP 7.3 & MySQL 5.7
    last update about 1 year ago
    10 pass
  • Status changed to Active about 1 year ago
  • 🇺🇸United States tr Cascadia

    What does your patch have to do with flood control? Nothing. Why did you post it here?

  • 🇺🇸United States tr Cascadia
  • 🇳🇱Netherlands eelkeblok Netherlands 🇳🇱

    Probably an hones mistake. Funny. We've rebuilt the feature that triggered the flag issue years ago based on voting API and I came looking for a similar feature. You are right that that issue needs TLC. It's also an interesting insight that it might be more about what you do with the action than anything else. Is it, strictly speaking, a problem if someone/something triggers many votes?

  • 🇺🇸United States tr Cascadia
Production build 0.71.5 2024