You have several options, some or all of which you can use.
You can write down the IP address and then check it on the IP address, but then this does not mean that a specific person is just a computer, and sometimes not just one computer.
You can also write cookies in a user browser, but the user can use a different browser, machine, etc.
In a user session, you can create a session variable, although if you expect very high traffic, this may not be the best option, and also only prevents re-voting during one session.
If you are considering captcha, you can also ask the user to provide an email address, and then you will get at least one vote for the email address. However, even then you cannot be guaranteed a valid email address.
source share