Thread: protecting a data CD/DVD from being coppied

  1. #1
    Registered User
    Join Date
    Nov 2003
    Posts
    183

    protecting a data CD/DVD from being coppied

    Hello,

    I have a collection of PDF files and I want to write them into a CD/DVD in a way that the files can be seen/used only when the CD/DVD is in the CD/DVD rom.

    I know there is no way for full data protection and there are many ways to copy a PDF file after it's opened. However, most of the users that I am dealing with are either no expert or don't have enough time. So if they cant select all the files and copy them together - I mean if the files are hidden or not directly accessible- they won't try to copy the files one by one.

    I was wondering if there is any program for making such a CD/DVD with the data files hidden on it?
    Or if it possible to write a simple code for creating an application to do so. An application that makes it possible to access to the hidden files on the CD/DVD. (I can work with C++ and C#)

    Thank you
    Arian

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,660
    For that level of protection, I guess you could just encrypt each file and bury the key inside your access program.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  3. #3
    Registered User
    Join Date
    Apr 2013
    Posts
    1,658
    Seems that you could protect the files, but for your original question, it's not too difficult for a person to do a web search to find programs to effectively image copy cds or dvds.

  4. #4
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    Let me ask the why. Doing this only causes in convenience for the user.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  5. #5
    Registered User
    Join Date
    Nov 2003
    Posts
    183
    Quote Originally Posted by Salem View Post
    For that level of protection, I guess you could just encrypt each file and bury the key inside your access program.
    will you please guide me how to do so?

    Thank you
    Arian

  6. #6
    Registered User
    Join Date
    Nov 2003
    Posts
    183
    Quote Originally Posted by rcgldr View Post
    Seems that you could protect the files, but for your original question, it's not too difficult for a person to do a web search to find programs to effectively image copy cds or dvds.
    I searched the net but I found image copy useful for audio files and not PDF.
    It was about preventing the files from being ripped ....

  7. #7
    Master Apprentice phantomotap's Avatar
    Join Date
    Jan 2008
    Posts
    5,108
    will you please guide me how to do so?
    O_o

    The instructions are literally in the comment:

    1): just encrypt each file
    2): bury the key inside your access program

    It was about preventing the files from being ripped
    It can't be done; if you give me a disc, I'll eventually find a way to get the contents if I really want the contents.

    That isn't because I'm some great hacker or anything like that; there are tools, as rcgldr says, that basically do this sort of thing for you if you use an existing approach.

    Besides, I understand that you want to provide a normal disc with these normal PDF files and let people view them normally with normal PDF software as long as the disc is in the drive. (You said, for example, "there are many ways to copy a PDF file after it's opened" which implies that you aren't writing your own code to view the files just using existing tools.) This simply can not be done.

    Sure, you can just hide the files. You could just mark them hidden in "Windows" or use the "." hidden prefix standard for "POSIX" operating systems. That will hide the files from a simple "ctrl+c"/"ctrl+v" if your users aren't "tech savvy", but it will also hide the files from most PDF software for exactly the same reason.

    You could also record the files to the disc without recording the index, but you would have to make custom software to navigate the disc.

    You could encrypt the files as Salem suggested, but you would have to make custom software to read the files.

    You could encrypt the disc itself, but you would need a custom driver to read the disc.

    You could do a lot of things, but if your goal is to somehow prevent copying of a perfectly normal file on a perfectly normal disc you should just give up.

    Soma

  8. #8
    Registered User
    Join Date
    Apr 2013
    Posts
    1,658
    Quote Originally Posted by rcgldr View Post
    Seems that you could protect the files, but for your original question, it's not too difficult for a person to do a web search to find programs to effectively image copy cds or dvds.
    Quote Originally Posted by arian View Post
    I searched the net but I found image copy useful for audio files and not PDF.
    It was about preventing the files from being ripped ....
    Most of these programs will just call it a copy operation as opposed to an image copy operation. Some programs can also copy a cd / dvd to an iso file. Note these aren't hacker programs. Most commercial cd / dvd products that can write (burn) cds or dvds include a copy feature. I'm not sure how cd or dvds or created to prevent standard programs from copying them.

    Wiki article:

    ISO image - Wikipedia, the free encyclopedia

  9. #9
    Registered User
    Join Date
    Nov 2003
    Posts
    183
    Quote Originally Posted by phantomotap View Post
    O_o

    The instructions are literally in the comment:

    1): just encrypt each file
    2): bury the key inside your access program
    Thank you. I read the comment; the problem is I don't know how to
    1) just encrypt each file
    2) bury the key inside your access program

    Is it just and option in the setting tab of a PDF maker program or ... ?


    Quote Originally Posted by phantomotap View Post

    You could encrypt the files as Salem suggested, but you would have to make custom software to read the files.
    You mean I have to write a software like "Acrobat reader"?!!!
    or a simple program which calls/runs acrobat reader ??

    -------------------

    Is it possible (and useful)
    1- To put all the files in a hidden folder.
    2- To write an application using something like a flash player or C#. The application provides a menu containing a link to the hidden files. So the user has to click on each link if they want to see the file?
    (I would have no problem, if they had enough time to go through all the files one by one and save them to their PC)

    Thank you very much

  10. #10
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    The thought of having to use a (poor) 3rd party program just to play YOUR files is annoying to say the least. You understand how many years people have put into their software? You are not going to be able to replicate the experience.
    So just stop. Stop. Stop trying to stop people from copying your stuff. It will just inconvenience/hurt your legal customers while the pirates laugh you in the face.
    There just in no good solution to this. People and companies have been trying for years. Focus on making a good experience for your customers instead, and put effort into making people want to get it instead of pirating it.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  11. #11
    Lurking whiteflags's Avatar
    Join Date
    Apr 2006
    Location
    United States
    Posts
    9,613
    There are commercial DVD authoring products that will encrypt your DVD like one that you buy in the store. You get what you pay for in this case.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Protecting Constructors
    By kidburla in forum C++ Programming
    Replies: 12
    Last Post: 10-14-2006, 11:18 PM
  2. protecting my plugin
    By danielC++ in forum C++ Programming
    Replies: 7
    Last Post: 03-11-2005, 03:58 AM
  3. Protecting files
    By bookworm in forum Linux Programming
    Replies: 6
    Last Post: 06-14-2004, 03:55 PM
  4. Protecting ports via winsock
    By VirtualAce in forum Networking/Device Communication
    Replies: 4
    Last Post: 04-01-2004, 09:17 PM