• Resolved johnh10

    (@johnh10)


    I don’t know how, but some voters are stuffing entries with 5 stars. I check the yasr_log entries and see things like

    mysql> select vote,date,ip from wp_yasr_log where post_id='172190';
    
    |  5.0 | 2016-03-19 23:57:04 | 64.71.124.178   |
    |  5.0 | 2016-03-19 23:57:06 | 64.71.124.178   |
    |  5.0 | 2016-03-19 23:57:08 | 64.71.124.178   |
    |  5.0 | 2016-03-19 23:57:10 | 64.71.124.178   |
    |  5.0 | 2016-03-19 23:57:11 | 64.71.124.178   |
    |  5.0 | 2016-03-19 23:57:13 | 64.71.124.178   |
    |  5.0 | 2016-03-19 23:57:14 | 64.71.124.178   |
    |  5.0 | 2016-03-19 23:57:16 | 64.71.124.178   |
    |  5.0 | 2016-03-19 23:57:18 | 64.71.124.178   |

    etc. sometimes hundreds or thousands of them. Many different posts.

    1) Going forward, how can I allow just 1 vote per IP per day? That would really help.
    2) How can I remove these erroneous votes and readjust the totals to what they should be?

    https://www.ads-software.com/plugins/yet-another-stars-rating/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor dudo

    (@dudo)

    Hello johnh10, in Yasr a double vote is blocked using a cookie, this because a lot of pepole can share the same ip address.

    In order remove these votes, after that query, just correct the column number_of_votes and sum_votes in the table yasr_votes

    Good work,
    Dario

    Thread Starter johnh10

    (@johnh10)

    Yes, they’ve found a way around that cookie block, so I’d like to limit one vote per IP per day. I’d rather have that than this vote stuffing.

    If you don’t want to do this, perhaps add a filter hook so the user can do the check with a bit of custom code.

    Plugin Contributor dudo

    (@dudo)

    Yeah, when a vote is saved/update there are these hooks:

    do_action(‘yasr_action_on_visitor_vote’, $post_id);

    do_action(‘yasr_action_on_update_visitor_vote’, $post_id);

    so you can use these with add_action.

    Hovewer, I suggest to block that ip at all (it’s clear it’s a bot) in your hosting panel ??

    Best,
    Dario

    Thread Starter johnh10

    (@johnh10)

    Thanks. I’ve hooked in and denied more than one vote per post per ip per day.

    I can’t just block the ip since there are different ones every day.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Trying to avoid vote stuffing’ is closed to new replies.