防止客户多次评价产品的最佳方法是什么? [英] What is the best way to prevent customers from rating a product more than once?

查看:50
本文介绍了防止客户多次评价产品的最佳方法是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何防止客户对产品进行多次评分?最好使用存储 IP 地址的 cookie 还是将用户评级存储在数据库中?我正在使用 MySQL 和 ColdFusion.

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

干杯!

推荐答案

如果您有用户帐户,请将您的评级与这些帐户相关联.只要一个用户只有一个账号就可以完成工作.

If you have user accounts, associate your ratings with the accounts. Job done as long as one user only has one account.

如果您使用 cookie,那么您可能会遇到禁用它们、使用多个浏览器或故意删除它们的用户的问题,如果您存储 IP 地址,您可能会(尽管这很不寻常)遇到问题具有来自同一 IP 地址的不同用户 - 同一家族或组织的外部 IP 地址可能相对较少,而 AOL 等 ISP 经常会收到来自多个 IP 的单个页面请求.

If you use cookies then you will likely run into problems with users who have them disabled, who use multiple browsers or who deliberately delete them, if you store the IP address you will potentially ( although it is quite unusual ) run into problems with different users from the same IP address- the same family or organisation will probably have relatively few external IP addresses, while ISPs such as AOL will routinely have requests for a single page come from multiple IPs.

总的来说,我的感觉是,如果用户足够关心对产品进行评分,他们可能会足够关心注册用户帐户.您仍然可以密切关注 IP 数据和其他浏览器信息,以防万一发生任何可疑的情况,但这是确保您的用户至少有足够不同以拥有不同电子邮件地址的最有效方法.它不会抓住任何想要认真操纵您的评分的人,但实际上,如果您遇到这样的人,无论您做什么,都很难阻止他们,直到您有指示性的使用模式,您将很难知道是什么寻找.在这种情况下,确保无论您做什么,仔细记录日志都很重要...

On the whole my feeling is that if a user cares enough to rate a product they probably care enough to sign up for a user account. You can still keep an eye on IP data and other browser information in case anything dodgy is going on, but that is the most effective way to ensure that your users are at least distinct enough to have different email addresses. It won't catch anyone wanting to seriously manipulate your ratings, but actually if you do run into someone like that you will have a hard time stopping them whatever you do and until you have indicative useage patterns you'll be hard pressed to know what to look for. In this instance making sure that whatever you do, you keep careful logs is important...

这篇关于防止客户多次评价产品的最佳方法是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆