jsp get ip address

后端 未结 6 1728
挽巷
挽巷 2020-12-20 03:15

whats the best way of preventing someone from voting twice? How do i get the users ip address? What if they are on a large network? will everyone on that network show the sa

6条回答
  •  爱一瞬间的悲伤
    2020-12-20 03:47

    If users are behind NAT router or proxy server, you will see them with the same IP address. Therefore, it is not the best way of allowing users to vote once.

    An alternative would be to use cookies, but again, it is possible to erase the cookie and vote again.

提交回复
热议问题