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

Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

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.