Page 1 of 1

PHP Activation System

Posted: Fri May 20, 2011 8:44 pm
by Carbine
This isn't necercerally something that I need now, but I think it could be helpful for the future. Lets take vBulletin for example, how do they know if your activation key is right because it's to risky using a database as the software would give out the details easily. Any ideas?

Re: PHP Activation System

Posted: Fri May 20, 2011 9:57 pm
by jacek
Why is it risky to use a database :? That almost defiantly the way to do it ;)

Re: PHP Activation System

Posted: Sat May 21, 2011 10:28 am
by Carbine
Think about if you're selling some software, putting database details in the script to see if it's a right code would be very insecure, and also they could manipulate it go to their own database :L Also they could just delete the whole activation bit right?
/E would I need to use some sort of encoder so they can't see this part of the script?

Re: PHP Activation System

Posted: Sat May 21, 2011 10:51 am
by jacek
Oh right, I thought you meant like email activation for accounts.

For something you were distributing, yes having the password in the file would not be a good idea, you would probably have it post data to a php file on your server that would then be able to control how much it can do.
Carbine wrote:Also they could just delete the whole activation bit right?
They could, but you have to just trust them, as there is no way to encode it really.

Re: PHP Activation System

Posted: Sat May 21, 2011 10:58 am
by Carbine

Re: PHP Activation System

Posted: Sat May 21, 2011 11:12 am
by jacek
Only works if they have a thing installed on their server, and it can be easily decoded http://www.showmycode.com/

Re: PHP Activation System

Posted: Sat May 21, 2011 11:44 am
by Carbine
Fair enough, so posting through to a page on my server is the best way to go? And if so. I'd use hidden fields to post any other information such as IP if needed?

Re: PHP Activation System

Posted: Sat May 21, 2011 12:12 pm
by jacek
well you could just use php to send the post data, there is no need for an actual form.