Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Unless I have missed a setting somewhere, it appears that a single user can create a bunch of dummy accounts on my site and then place many votes on a single node. Is there any way to limit it to only one vote per IP address/account?
Comments
Comment #1
amedjones CreditAttribution: amedjones commentedYou many have to do a pre-check prior to storing the votes.
The votingapi table contains the IP address and the content_id that you can use to for the precheck
something like
1) query the votingapi to get the ip address and content_id
2) Do an If check criteria comparison between the current IP and whats stored in the database)
something like ( if browser IP = stored IP and content_id = the current contend_id )
// abort
else (
// store vote
hope that helps
Comment #2
quotesBro CreditAttribution: quotesBro commentedComment #3
quotesBro CreditAttribution: quotesBro commented