Unique IPs in a voting system

后端 未结 7 705
傲寒
傲寒 2020-11-29 10:37

I\'m creating a voting system for my PHP/MySQL website and I would like to make sure one user can only vote once. What would be a good way of doing this? So far I have thoug

7条回答
  •  半阙折子戏
    2020-11-29 10:52

    Whatever it is you decide to go with, IP addresses will not be secure at all. A user can basically access from a different location and vote again etc. Cookie is a solution but not optimized because of deleting possibility (so u risk the user recognition process). You will need to handle more data from the user to be able record their option securely.

    if the system is a sub-system of a bigger system, maybe you can use a field that is common in bigger system to identify users in current system.

    Hope this helps,

提交回复
热议问题