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 last published in October 2001

Dig Deeper on Security Resources

PRO+

Content

Find more PRO+ content and other member only offers, here.

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.

Start the conversation

Send me notifications when other members comment.

By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Please create a username to comment.

-ADS BY GOOGLE

SearchCloudSecurity

SearchNetworking

SearchCIO

SearchConsumerization

SearchEnterpriseDesktop

SearchCloudComputing

ComputerWeekly

Close