JohnWarren1 / daily-image

Started as an experiment with Django. Evolving into a social media-esque project.
0 stars 0 forks source link

Prevent vote abuse on image voting #14

Open JohnWarren1 opened 6 years ago

JohnWarren1 commented 6 years ago

User can vote once, refresh page, vote again. want to limit each unique visitor to one vote a day:

(historic idea) Rather than requiring a login would rather do this with a cookie or database entry:

cookie https://stackoverflow.com/questions/11059191/django-guests-vote-only-once-poll probably best solution. Risk is pretty low.

database (may have scaling issues. Seems a nice solution though) a table that logs:

ip
image id
vote type?
.... depends whether this table stores vote result or just ips that have voted. Could be flushed daily.

More recently Have warmed to the idea of requiring a login after learning about mixins. Login + security is super easy using django