doucuoyan0426 2013-04-04 14:45
浏览 47
已采纳

php限制网站使用基于会话ID和/或IP地址和帐户代理切换器

I really don't think there is a fool-proof method for this but of course I'm coming here for advice...

I have a project that I want to restrict to 3 uses per day per user based on IP address. Of course I can do this easily with a mysql table for traditional use cases...but how would I account for those clever enough to use something like foxyproxy (a proxy switcher plugin for firefox) and/or open a new browser to get a new session. Every use would appear as a fresh, unique user.

Am I stuck to a non-fool-proof method or is there anything else I can try? I am pretty certain that most of our user base will not have a clue how to use or even what these methods are but I want to account for it anyway.

EDIT: If there is a non-php solution to this as well, I am open to any ideas.

  • 写回答

3条回答 默认 最新

  • drau89457 2013-04-04 14:52
    关注

    There is literally nothing you can do to prevent this in a fool-proof way. No matter what you come up with, working around it will be trivial for anyone with a vague clue about how the web works.

    You should implement a proper authentication system and limit based on the user ID instead of the host accessing the service.

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

报告相同问题?

悬赏问题

  • ¥15 C语言visual 2022 scanf未正确输入如何解决
  • ¥15 伪装视频时长问题修改MP4的时长问题,
  • ¥15 JETSON NANO
  • ¥15 VS开发qt时如何在paintgl函数中用pushbutton控制切换纹理
  • ¥20 关于 openpyxl 处理excel文件地问题
  • ¥15 MS中不知道高分子的构型怎么构建模型
  • ¥60 QQOP数据,什么是op数据号,怎么提取op数据!能不能大量提取(语言-c语言)
  • ¥15 matlab代码 关于微分方程和嵌套的分段函数。
  • ¥15 onlyoffice编辑完后立即下载,下载的不是最新编辑的文档
  • ¥15 求caverdock使用教程