I am working on making educational CDs. I require medium level copy protection code which may not be easily breakable by "non experts", similar to that in game CDs, so you have to have the CD in the drive while playing and have to enter key while installing it.
-
4Pseudocode in your main code: `if ( ! cd in tray ) exit;` – Ritwik Bose Feb 22 '10 at 15:27
-
@Mechko or if you prefer a lower-level approach, scrape a nail across the shiny side every time you burn a disc. – San Jacinto Feb 22 '10 at 15:40
-
Oh ffs. Choose one or the other. Cd in the drive OR cd-key to install. Not both. – Chris Becke Feb 22 '10 at 15:41
-
1In the age of the Internet, everyone is an expert. Copy protection typically inconveniences legit users more than it will frustrate pirates. Make quality software, and sell it at a fair price. – Adrian McCarthy Feb 22 '10 at 17:05
3 Answers
I think CD copy protection mechanisms MUST BE STAYED AWAY FROM! They cause your software installations recorded on such CDs to run incorrectly on many devices. What such protection mechanisms do is inserting BAD TRACKS on your CD hoping that the CD copying program will choke on them. However, the driver of the CD drive may choke as well. You're better off with an additional privacy prevention scheme.

- 2,930
- 2
- 21
- 34
Whatever trick you'll find, someone smart will find away around it.
Decide first for what kind of users you want to protect your software:
- For casual users and kids, it might be enough to check the volume id
- For more advanced users, consider using commercial protection software like SecuRom
You may also consider using a registration via Internet, where you provide your users with a 'license file' in which their username (and maybe some other configuration information) and a checksum is stored, and which should be saved on their PC. Users and especially companies are then less likely to hand out this configuration files to others, as this file simply states "I handed out my license to someone else, so if you want to sue someone, sue me".

- 23,217
- 12
- 67
- 130
-
Of course using SecureRom will cause most of your advanced users to hate you forever. If the PC gaming community is any measure at least. – Neil Aitken Feb 22 '10 at 15:49
-
But of course, if you do educational CDs, you may already have a captive market and hence not care about your users' opinion. oO. – Kheldar Sep 10 '11 at 13:02
Many games use third-party software such as SecuRom for this.
If you do not require that level of protection, you can simply check for the presence of certain files on the CD. That will stop people from running without having the CD, but not from copying the CD itself.

- 174,939
- 50
- 355
- 478
-
if i want cd to be not copied by casual users,then can i find sum way out. – sumedh prabhu Feb 22 '10 at 15:51