PDA

View Full Version : IP Address tracking


Dark Hedgehog
02-13-2003, 05:59 AM
Hi. I am making an awards for Sonic sites. But, I don't trust anyone to vote only once. I would like to know if anyone know's how to code php or mysql to get an IP Address tracker so I can disable voting twice. Thanks.

InTrKtEVO
02-14-2003, 01:43 AM
Are you using a form as a way to submit the information?

If so, just tell me so I don't spend time writing an explanation :)

Dark Hedgehog
02-14-2003, 05:59 AM
In a way of that. I want the user to submit the information that is on that page. After they send the data to me, within my email or whatever is needed, I don't want the SAME user to sign it again. It's an award thing, I need only ONE vote per person...

Dark Hedgehog
02-20-2003, 06:04 PM
Anyone? I really need to make these awards..

Peter Dodge
02-20-2003, 07:34 PM
I can help there, I made my own for my site. I just need to know exactly what you want :D

http://www.hostultra.com/~peterdodge/award.php

Dark Hedgehog
02-21-2003, 09:15 PM
Yea, just like you did. I want ONE person per submittal.

Say you went to submit your site, you wanted to win so bad that you cheated and submitted again. That's cheating...

I want people to submit ONCE and only ONCE.

I want to also track and block ip's or however you can stop people from submitting again.

InTrKtEVO
02-21-2003, 10:48 PM
you have to set a cookie and then retrieve it and verify by IP

something like that, i dont know anything about cookies sorry

Dark Hedgehog
02-21-2003, 10:54 PM
How am I supposed to do that? OO;

Peter Dodge
02-21-2003, 10:55 PM
Something like:

$cookie_exists = $HTTP_COOKIE_VARS[1];

if (!$cookie_exists)
{

.
.
.
voting script


}
else
{
die("You already voted")
}