: Content vote system with IP verification and dynamic IP adresses Description: I have two types of vote system on my site. First of them is for all users and store IP adress to prevent more
Description:
I have two types of vote system on my site.
First of them is for all users and store IP adress to prevent more than one vote. Second is for authenticated users only, which also store nickname.
Problem to solve:
Dynamic IP adress will change in about 24 hours with second type of vote system it doesn't really matter because of stored nickname but in first case IP is the only data about user action.
There is chance that User 1 which had IP X yesterday have now adress Y and cannot vote today because User 2 had Y IP a day before and already "locked" row in database. According to this User 1 cannot vote on content despite of he/she should been able to do it.
Question:
Should I delete all IP adresses in first and/or second case of vote system due to dynamic IP technology (at least once per 24h)?
More posts by @Sims2060225
1 Comments
Sorted by latest first Latest Oldest Best
It is maybe not 100% flawless, but I would combine an IP & cookie check system.
First check for the IP in a database or log, if exists, check if a cookie is set/created. If IP exists but cookie doesn't, then voting is allowed. If cookie exists with another IP, then no voting is allowed because cookie is only set/created after a vote.
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.