• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How can I prohibit direct access to a file in the download?

#1
[eluser]Hermes Alves[/eluser]
I want a make system that will release the download only to registered users, so I would like to prohibit direct access to the files in my folder /download/.

How do I program something that you can just download for users duly registered?

Even with the direct link does not work direct download.

#2
[eluser]Aidy[/eluser]
I would move the downloads folder out of the web root or you could protect with "deny from all" in a .htaccess file. Then take a look at codeigniter's download helper.


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.