Home > Backend Development > PHP Tutorial > 投票限制IP时用$_SERVER['REMOTE_ADDR'],局域网是不是只能投一次

投票限制IP时用$_SERVER['REMOTE_ADDR'],局域网是不是只能投一次

WBOY
Release: 2016-06-23 14:20:14
Original
1085 people have browsed it

比如用$_SERVER['REMOTE_ADDR']来限制IP,一个公司是一个外网,那是不是整个公司只能投一票。


回复讨论(解决方案)

是的,可以要求用户登录,使用cookie来配对

有没有不登陆,可以限制的。

不登录也可以使用 cookie 或 session

http估计只能防君子不防小人

防投票防不住的!

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template