防止 PHP 驱动的网络竞赛因动态 IP 地址篡改而导致作弊的方法

发布于 2024-09-16 04:53:55 字数 219 浏览 4 评论 0原文

假设您有一个用 PHP 编程的网站竞赛,用户必须单击他们最喜欢的图片。现在据我所知,有一些方法可以动态改变你的ip地址,比如用iphone,这样看起来你就是别人,因此你可以在几分钟内不断地一遍又一遍地点击同一张图片,因此发现比赛中存在漏洞并导致作弊。

首先我想知道这是否属实,其次如果属实,有没有办法解决这个问题?如果没有,用户真的可以在几分钟内多次更改其 IP 地址吗?

感谢您的任何回复。

Let's say you have a website contest programmed in PHP, and the user must click their favorite picture. Now from what I hear, there are ways to dynamically change your ip address, such as with the iphone, so it looks like you are someone else and therefore you can continuously click the same picture over and over in a matter of minutes, therefore finding a loophole in the contest and cause cheating.

First, I would like to know whether this is true and second if it is true, are there ways to address this issue? And if there aren't, can a user really change their ip address so many times in a matter of minutes?

Thanks for any response.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

那片花海 2024-09-23 04:53:55

在某些情况下,可以使用简单的脚本更改您的 IP 地址。
为了防止完全自动投票,您可以使用验证码。为了防止用户反复点击,您可以实现用户注册并限制每个用户的投票。

In some cases, it is possible to change your IP address with a simple script.
To prevent fully automated votes, you could use CAPTCHA. To prevent users from clicking over and over, you could implement user registration and limit the votes per user.

只为守护你 2024-09-23 04:53:55

以下是一些需要考虑的其他选项:

  • 您可能需要电子邮件地址才能投票。

  • 您可以设置一些cookie。这些很容易被通过,但是你绕过它们的方法是允许他们多次投票,而不告诉他们他们已经投票了,但不要增加投票的价值。

Here are some other options to consider:

  • You could require an email address to vote.

  • You could set some cookies. These are easily by passed, but the way you get around them bypassing it is by allowing them to vote multiple times without telling them they have already voted, but do not increment the value of the vote.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文