Validating a serial code from another Database

Discussions of secure PHP coding. Security in software is important, so don't be afraid to ask. And when answering: be anal. Nitpick. No security vulnerability is too small.

Moderator: General Moderators

Post Reply
dicon
Forum Newbie
Posts: 2
Joined: Tue Mar 15, 2005 6:47 am

Validating a serial code from another Database

Post by dicon »

Hi there,

A bit of a complex question but i am sure that you professionals out there will know :) basically i have a ready made website which i sell onto businesses in which they pay a annual license fee instead of paying for the website itself. What i want to do is supply a license key to the user who puts it into their control panel. I am looking for some php code that will stop the site from working without the license fee or if the license key is entered the website then validates the key by checking the number against ones entered on a different mysql database on a different website. If the key is invalid or hasent been renewed then it stops the website from working.

Am i asking for too much or is it easier than it sound?
Thanks in advance
dicon
User avatar
n00b Saibot
DevNet Resident
Posts: 1452
Joined: Fri Dec 24, 2004 2:59 am
Location: Lucknow, UP, India
Contact:

Post by n00b Saibot »

you may implement this by having a script residing at the database side which could get you the reg. key which you can compare with site's reg. db to see if the site is registered or not. if not, then site is blocked. :)
dicon
Forum Newbie
Posts: 2
Joined: Tue Mar 15, 2005 6:47 am

Post by dicon »

thanks nOOb, would you be able to provide me with a sample script as i am pretty new to php.

Cheers
Post Reply