I thought to a site where visitors can vote elements without need to register.. For avoid that an user could vote more than once, i thought to keep trace of his vote according to his ip address.
Yes i know that ip addresses are dynamic and an user can disconnect and reconnect for vote a secon time, but it's not a problem for me.

The principal question is: is it legal to store ip addresses into the database?