Where download files should be placed in Codeigniter? |
[eluser]Unknown[/eluser]
Where should I place my downloads files? These should not be accessible to public. But should be accessible to registered users. My directory structure is as follows. Quote:-application As it can be seen that downloads are directly accessible to user through following. Code: 127.0.0.1/CI/downloads/abc.7z Code: Deny from all Code: <a href="<?php echo base_url().'/downloads/abc.7z' ?>">click here to download</a>
[eluser]noideawhattotypehere[/eluser]
You could go with http authentication: http://php.net/manual/en/features.http-auth.php
|
Welcome Guest, Not a member yet? Register Sign In |