> You can't rely on just the IP. If you do then you will have problems > where large numbers of people sit behind a single IP, as will be case > where corporate firewall is used, or where proxies or other gateway or > NAT solution are used by ISPs.
That's right, try to use cookie check instead of IP check. On Jun 29, 5:12 am, Graham Dumpleton <graham.dumple...@gmail.com> wrote: > On Jun 29, 10:33 am, Aneesh <aneeshvkulka...@gmail.com> wrote: > > > I believe the request object should contain the IP address regardless > > of whether the user has an account. You can store that IP with the > > vote like Vladimir mentioned. > > You can't rely on just the IP. If you do then you will have problems > where large numbers of people sit behind a single IP, as will be case > where corporate firewall is used, or where proxies or other gateway or > NAT solution are used by ISPs. > > Graham > > > Here are the docs for HttpRequest > > objects:http://docs.djangoproject.com/en/dev/ref/request-response/#attributes > > > On Jun 28, 4:38 pm, links_awakening <brianb...@gmail.com> wrote: > > > > Actually, I was hoping specifically for an IP-based solution - one > > > which would not require users to create accounts on my site. I > > > appreciate your feedback though. > > > > On Jun 28, 4:58 am, Vladimir Shulyak <nc0...@gmail.com> wrote: > > > > > Try django-votinghttp://code.google.com/p/django-votingifyouwant > > > > digg-like voting. > > > > This app stores all votes in database, so it prevents user to "vote > > > > up" multiple times. > > > > > Alternatively, you can develop it yourself. It's pretty > > > > straightforward to implement imo. IP address comes with request object > > > > (don't forget to tweak your production server) so you can store it > > > > against voting id with datetime field. > > > > > On Jun 28, 1:23 am, links_awakening <brianb...@gmail.com> wrote: > > > > > > If users can click "vote up" on my site, I want to prevent them from > > > > > clicking "vote up" multiple times. To do this, I would check whether > > > > > their IP has clicked "vote up" in the past 24 hours. > > > > > > Thus, I am curious whether Django helps with this sort of problem, or > > > > > if anyone has solved this using Django already. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---