Jump to content


Photo

How to check unique person


  • Please log in to reply
4 replies to this topic

#1 hackerkts

hackerkts
  • Members
  • PipPipPip
  • Advanced Member
  • 593 posts
  • LocationSingapore
  • Age:18

Posted 08 July 2006 - 06:31 AM

As the subject says, how do you guys actually check if the person is unique.
What I mean is, hmm... Let's take this example:

I have a voting system, but I wanna make it only 1 person to vote once.
But I can't set it as 1 person vote one time according to their IP address, some of the people have dynamic IP (which changes everytime they restart their cable/modem)

Is there a way to check MAC address and use it in PHP code ?

Sorry, I'm dumb with computer. :s

Regards,
hackerkts

To be a coder, you must learn how to think and not to give up so easily.


#2 Daniel0

Daniel0
  • Staff Alumni
  • Advanced Member
  • 11,956 posts

Posted 08 July 2006 - 06:45 AM

I don't think you can get the MAC address (that can be spoofed too though). You could check for IP ranged (i.e. 1.2.3.*), an example of this is shown here: http://projects.xaos.../icebb.php#L221

#3 Prismatic

Prismatic
  • Members
  • PipPipPip
  • Advanced Member
  • 503 posts
  • LocationSan Diego

Posted 08 July 2006 - 07:50 AM

Use Sessions, IP, and Cookies to check, 3 levels of protection, should be good enough :)

#4 Barand

Barand
  • Moderators
  • Sen . ( ile || sei )
  • 18,021 posts

Posted 08 July 2006 - 08:08 AM

But I can't set it as 1 person vote one time according to their IP address, some of the people have dynamic IP (which changes everytime they restart their cable/modem)


And there is the opposite problem, as in a classroom situation, where several users may have the same IP
If you are still using mysql_ functions, STOP! Use mysqli_ or PDO. The longer you leave it the more you will have to rewrite.

Donations gratefully received






moon.png

|baaGrid| easy data tables - and more
|baaChart| easy line, column and pie charts

#5 hackerkts

hackerkts
  • Members
  • PipPipPip
  • Advanced Member
  • 593 posts
  • LocationSingapore
  • Age:18

Posted 08 July 2006 - 12:18 PM

>.<! Thanks for all the replies, I think I will go with IP address.
The unlucky one will not be able to vote :P

o.O Or I think I might only allow them to vote if they are member :P

Regards,
hackerkts

To be a coder, you must learn how to think and not to give up so easily.





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users