What is the best way to prevent customers from evaluating a product more than once?

How to prevent a customer from evaluating a product more than once? Is it best to use cookies that store an IP address, or is it better to store user ratings in a database? I am using MySQL and ColdFusion.

Hooray!

+3
source share
3 answers

If you have user accounts, compare your ratings with your accounts. The work is done as long as one user has only one account.

cookie, , , , IP-, ( ) IP- - , , IP-, -, AOL, IP-.

, , , , , , . IP , - , , , , , . , , , - , , , , , . , , , ...

+2

, . cookie , IP- .

+2

, , - , ? mySQL, , , .

, , IP-, , , . , .

.

 IF userVoted != true 
         saveVote ( "ipAddress", "User Voted Yes")
    else
         display ( "You have already voted" )
+1

Source: https://habr.com/ru/post/1734077/


All Articles