|
Actually, it depends on the nature of this vote.
If it is only general and irrelevant voting, cookies are generally sufficient. The disadvantage is that you can vote after deleting cookies;
It is also possible to simply record the IP, and the disadvantage is equivalent to ignoring N users under the same IP (such as Internet cafes).
In the case of voting with rewards or contest-type voting, it is recommended to set up more responsible precautionary measures.
The method of registering users, then the management method depends on the user system. (If you cannot prevent multiple registrations, it is useless to judge the user)
I think it might be better to take a look.
After the vote, the cookie is recorded. Use js to determine whether to vote before the vote (saving server resources). If the cookie does not exist, judge by IP. If the IP is the same, judge the time difference between the two voting times. Do not look at your settings again.
----------------------
Maybe there is a better way. . . :) |
|