Q

Securing a database application

I would like to write a database application for a customer. The interface is using PHP to access the database. Is it possible to secure the application so that it cannot be copied and used on another machine? Can you give me an example of how a program can check the registry to check for a key value?
The usual way to do this is to put your PHP or other CGI programs in a directory that is protected from access from the Web server directly and will only be accessed by the CGI itself. The specifics of how you do this depend on which operating system and Web server you have.

Microsoft has a number of articles on how to do this. Take a look at:
http://support.microsoft.com/support/kb/articles/Q135/3/98.ASP
http://support.microsoft.com/support/kb/articles/Q265/3/31.ASP
http://support.microsoft.com/support/kb/articles/Q258/1/61.ASP
for reading and
http://support.microsoft.com/support/kb/articles/Q258/5/45.ASP
for writing.

Several of these have source code. Admittedly, it's in Visual FoxPro, but I found them intelligible, and I've never used FoxPro, myself.


This was first published in October 2001

Dig deeper on Security Resources

Pro+

Features

Enjoy the benefits of Pro+ membership, learn more and join.

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

0 comments

Oldest 

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to:

-ADS BY GOOGLE

SearchCloudSecurity

SearchNetworking

SearchCIO

SearchConsumerization

SearchEnterpriseDesktop

SearchCloudComputing

ComputerWeekly

Close