drudfe0446838 2015-06-26 13:55 采纳率: 0%
浏览 36
已采纳

如何记录未登录用户的投票

I am creating a simple module of like/dislike. My site has no login system, which means the visitors are not the logged in members.. How can I log their LIKES/DISLIKES, so they can not repeat the same action again and again for same post? Can i log their unique IP or mac address.. any help?

  • 写回答

3条回答 默认 最新

  • doumizhi0809 2015-06-26 14:21
    关注

    IP/MAC is not perfect as it will identify different users in the same household as one. Cookie is not perfect as they can easily be cleared (or the user can just use a private/incognito mode)

    The best solution I've found - yet still not perfect - to identify users without a login is to use a long lived cookie/session as well as storing session ID, IP and User Agent along with the like/dislike ID to enforce any rule you would like to set.

    From this answer, evercookie is also an option to explore.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(2条)

报告相同问题?

悬赏问题

  • ¥15 随身WiFi网络灯亮但是没有网络,如何解决?
  • ¥15 gdf格式的脑电数据如何处理matlab
  • ¥20 重新写的代码替换了之后运行hbuliderx就这样了
  • ¥100 监控抖音用户作品更新可以微信公众号提醒
  • ¥15 UE5 如何可以不渲染HDRIBackdrop背景
  • ¥70 2048小游戏毕设项目
  • ¥20 mysql架构,按照姓名分表
  • ¥15 MATLAB实现区间[a,b]上的Gauss-Legendre积分
  • ¥15 delphi webbrowser组件网页下拉菜单自动选择问题
  • ¥15 linux驱动,linux应用,多线程