Need help in getting ips - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Need help in getting ips

Ok how can I get the ip address of a user once he votes so that he can't vote more than once


Comments

  • Hi!



    You do something like this:



    $ip_address = $ENV{'REMOTE_ADDR'};



    Hope this helps!


  • : Ok how can I get the ip address of a user once he votes so that he can't vote more than once

    :



    If the user has a dynamically assigned IP address,

    it changes each time he logs on to his ISP.



    Even if you give him a cookie, he could delete it,

    and then vote again.



    You could email him a "voter registration number",

    and validate the number before allowing the vote.



    Of course, if he had more than one email address,

    that wouldn't work either.



    Maybe you could have him pee in a cup,

    and then run a DNA test?


Sign In or Register to comment.