How to protect files from being copied?

Ö

ÖÜÒã

Hi
I am working on the file security development.I would like to find a way
to protect files in a specified folder from being copied to other
place.Could anybody tell me ?thank you very much.

for example:
there is a "security.txt" file in "c:\\sec\\"folder. The file is opened
,and then copied to another folder,such as "d:\\pub\\", in the "save as"
way.For the "save as" way is actually the combination of ReadFile() and
WriteFile() system services and I should not prevent the user from editing
files,so it makes no sense to simply trace the ReadFile and WriteFile
services.How could I detect this invalid copy behavior and prevent it?
 
P

Pegasus \(MVP\)

ÖÜÒã said:
Hi
I am working on the file security development.I would like to find a way
to protect files in a specified folder from being copied to other
place.Could anybody tell me ?thank you very much.

for example:
there is a "security.txt" file in "c:\\sec\\"folder. The file is opened
,and then copied to another folder,such as "d:\\pub\\", in the "save as"
way.For the "save as" way is actually the combination of ReadFile() and
WriteFile() system services and I should not prevent the user from editing
files,so it makes no sense to simply trace the ReadFile and WriteFile
services.How could I detect this invalid copy behavior and prevent it?

If you can read a file then you can copy it.

Some products such as Acrobat offer options that let you copy
the file at an operating system level but won't let you perform
actions such as "save as" or copy & paste. However, it is still
possible to save them as screen images.
 
A

Al Dykes

Hi
I am working on the file security development.I would like to find a way
to protect files in a specified folder from being copied to other
place.Could anybody tell me ?thank you very much.

for example:
there is a "security.txt" file in "c:\\sec\\"folder. The file is opened
,and then copied to another folder,such as "d:\\pub\\", in the "save as"
way.For the "save as" way is actually the combination of ReadFile() and
WriteFile() system services and I should not prevent the user from editing
files,so it makes no sense to simply trace the ReadFile and WriteFile
services.How could I detect this invalid copy behavior and prevent it?


Delete the file and then destroy the disk.

On a more practical level, Windows file/folder encryption may be what
you actually need since you query doesn't say very much about your
busines problem. As you state it, the is no solution.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top