Goto main content

help desk

How can I prevent a user to vote more than one time?

I have to make sure a user can vote only one time in my voting system.
How can I achieve this goal?

Asked on 2022-01-12 08:33:00

OFFICIAL ANSWER

Programming contest and voting system is always problematic.

You have to make sure that a person can only vote 1 time.

How do you do that is the person is not login?

  • IP address validation is not safe because a company can have the same external IP for all employe.
  • IP + browser signature could be a better solution

 

// The connection() function returns the IP address of the user
Answer by:
Pierre Laplante

Replied on: 2022-01-14 14:45:00