Re: [Flashcoders] prevent bot updating voting

2007-08-03 Thread Glen Pike
Hi, MD5 is one way encryption - you can't un-encrypt it, but you can use it to send a hashed version of your variables between Flash and server, then you compare hashed variable with one you hash: ?php //OT... if(isset($_POST['hash']) { //Don't just trust your input

[Flashcoders] prevent bot updating voting

2007-07-30 Thread Thomas Nordahl
I got an flash that loads images posted by users, and then anyone can vote for their favorite, but the problem is that some people have made an bot running from an proxy to update the php vote-string, wich means I cant trace their ip and then narrow it down to one vote per picture per ip. is

Re: [Flashcoders] prevent bot updating voting

2007-07-30 Thread Adrian Ionut Beschea
with your flash, in your swf you can send an encrypted key together with the vote say you send a string like: str = MD5.encrypt(userID+todayDate+someOtherStuff); and then decode it in PHP There are MD5 classes for both actionscript and php. This is not 100% proof. Once the evil doer