Wednesday, 15 June 2011

javascript - Is it possible record a user's IP address? -



javascript - Is it possible record a user's IP address? -

this question has reply here:

rails: client ip address 2 answers

i'm building rails project. i'm trying accomplish prevent 1 person voting twice on website. don't want create people have sign up/log in. other way can think of somehow record user's ip address , block address. realize 1 person can have few different devices, it's not important, don't want 1 person voting hundreds of times. possible rails/javascript?

simply utilize request.remote_ip within controller action.

remember 1 thing, people behind nat having same ip, can not know each other still, they're using same ip address. consider adding more ip address, e.g. scheme name, browser name etc.

javascript ruby-on-rails ruby ruby-on-rails-4 ip

No comments:

Post a Comment