Page 1 of 1

Block non-public files

Posted: 16 Mar 2015, 15:52
by Gkuurstra
Hello,

I installed Phocadownload on a website where I have a secure part set for specific files.
When I type the url to the files in the address field, I can reach those files.
Is there a way that those accesses are blockend and for example linked to the homepage?
And that those who are loggedin can only see those files?

I hope you understand my question and can help me.

Geert

Re: Block non-public files

Posted: 21 Mar 2015, 18:46
by Jan
Hi, you can block direct access e.g. in htaccess and in similar tools on your server.

But e.g. you can add the protected files behind public_html which means, they cannot be accessible through web, see:
https://www.phoca.cz/documents/17-phoca- ... e-joomla-3 (absolute path options where you can set that the files will be stored behind the public_html), see:
https://www.phoca.cz/documents/17-phoca- ... tml-folder
Jan

Re: Block non-public files

Posted: 23 Mar 2015, 12:57
by Gkuurstra
Hello,

Thanks for the help, I think that should be the best option.
I have moved the two maps "Phocadownload" and "Phocadownloadpap" to a map before the public html and set the absolute path in the settings.
When I go to my website and klik on a download-link, nothing happens. The pages refreshed but no file is downloading.
How can this be fixed?

Geert

Re: Block non-public files

Posted: 26 Mar 2015, 21:41
by Jan
Hi,

1) phocadownloadpap is a folder for playing and previewing the files, this needs to be inside public_html - so only phocadownload folder should be behind public_html

2) check the path to the folder - it must be absolute path on your server to work properly
3) check if the files are stored with right path too. e.g. if the file is inside subfolder, the path must be: subfolder/filename.zip

Jan

Re: Block non-public files

Posted: 30 Mar 2015, 10:46
by Gkuurstra
Hello,

1,2,3 are al set right.
Are there any other solutions to fix this?
Maybe you can login to help me with this?

Geert