Mobile app version of vmapp.org
Login or Join
Sims2060225

: 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

@Sims2060225

Posted in: #IpAddress #WebDevelopment

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

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Sims2060225

1 Comments

Sorted by latest first Latest Oldest Best

 

@Eichhorn148

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.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme