Forum: Ruby on Rails anonymous voting, how do they do this ?

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Aec10c73877ea116bab759e060b2fcb3?d=identicon&s=25 (Guest)
on 2007-03-16 03:16
(Received via mailing list)
at, you can vote anonymously, how do you think they are
doing this...?

- if I vote in FF, then clear cookies, it remembers I voted
- if I then vote in IE, it still remembers I voted...

so it must be server side, but checking source IP would not be very

never mind, I just tried from my wifes machine, it still thinks I have
already voted, so must be source IP
A1e31c8872289429a3ff1ad497cf4140?d=identicon&s=25 koloa (Guest)
on 2007-03-16 04:58
how do they get source ip? i thought sometimes, your ip address can look
similiar to other peoples on same cable provider?
8bc543795b502900b5333aea73ad5533?d=identicon&s=25 Eden Li (edenli)
on 2007-03-16 05:53
(Received via mailing list)
The IP address is provided to you by your web server which gets it
from the TCP/IP connection between the client and the server.  The
three-way handshake makes it impossible to spoof the IP address, so
this scheme works to ensure no dupes, but it causes problems if you
share a connection behind NAT.  If someone on your shared connection
votes before you do, you're SOL.

In your rails controllers, you can get the IP via request.remote_ip.
C91098dc76d7ad473165ef24fe805312?d=identicon&s=25 Nanyang Zhan (xain)
on 2007-03-16 07:18
Eden Li wrote:
 but it causes problems if you
> share a connection behind NAT.

any better solution?
8bc543795b502900b5333aea73ad5533?d=identicon&s=25 Eden Li (edenli)
on 2007-03-17 07:47
(Received via mailing list)
CAPTCHAs, or requiring logins that are email verified...  There are a
number of solutions; they all have their pros and cons and which one
is right for you depends on your app...

On Mar 16, 2:18 pm, Nanyang Zhan <>
This topic is locked and can not be replied to.