0

I have dedicated server, control panel is DirectAdmin and OS is linux. Using the copy copy ( "https://example.com/file.mp3" , string $dest) command in PHP, The file can be copied. How can I prevent? Prevent copying server to server this link for example: https://example.com/file.mp3

frzdno
  • 172
  • 9

1 Answers1

1

Take a look at this question on ServerFault (assuming you use Apache2):

Apache .htaccess file to restrict access to file except when loaded from a certain url

or this:

control Apache referrer to restrict downloads in htaccess file

Community
  • 1
  • 1
Xymanek
  • 1,357
  • 14
  • 25