How to protect files from being copied?

  • Thread starter Thread starter ÖÜÒã
  • Start date Start date
Ö

ÖÜÒã

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?
 
ÖÜÒã 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.
 
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.
 
Back
Top