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条)

报告相同问题?

悬赏问题

  • ¥20 idea运行测试代码报错问题
  • ¥15 网络监控:网络故障告警通知
  • ¥15 django项目运行报编码错误
  • ¥15 请问这个是什么意思?
  • ¥15 STM32驱动继电器
  • ¥15 Windows server update services
  • ¥15 关于#c语言#的问题:我现在在做一个墨水屏设计,2.9英寸的小屏怎么换4.2英寸大屏
  • ¥15 模糊pid与pid仿真结果几乎一样
  • ¥15 java的GUI的运用
  • ¥15 我想付费需要AKM公司DSP开发资料及相关开发。