>I am planning to setup a web server of using RedHat Linux. The purpose >of the web server is to provide product information for only registered >customers. >I plan to send the HASP parallel port keylock to the registered >customers. >Can I use PHP to monitor the status HASP parallel port keylock in the >client side? >Is there any idea for ensuring the website piracy?
I have no idea what HASP is, but I'm almost 100% certain PHP can't tell if a client has some stupid doohickey plugged into their parallel port or not. It would be a major invasion of privacy if PHP *could* do that -- Since I could then determine if you have an old HP DeskJet or a $10,000 printer, and decide to rob you or not. That would be bad. There are many, many, many things you need to understand about web security, and even just how secure you need your content to be -- Fort Knox secure, bank branch secure, ATM secure, dime-store secure, or petty cash in the secretary's drawer secure? Only you can answer that one. You can get Fort Know security, but it will be outrageously expensive, consume inordinate amounts of resources, and will take you a *LOOOOOONNNNNGGGGGG* time to figure out how to do it right, or you'll have to hire an expert for a lot of money. Similarly, each of the security models you *COULD* implement have corresponding costs/benefits for both up-front and maintenance. Things you can start reading about include: SSL, HTTPS, and Certificates HTTP Authentication http://php.net/readfile If you just want to stop the majority of hackers from reading material without paying first, then you would probably be best off going with a standard shopping cart. http://l-i-e.com/compare/ lists several with "Votes" on a feature-by-feature comparison. Quite possibly the ugliest interface on Earth, but I was in a hurry. And some people actually like that crammed compact look. Oh well. But if you've got highly-sensitive CIA information in there or something, you'll want to do a whole lot more research. -- Like Music? http://l-i-e.com/artists.htm -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php