Block non-public files

Phoca Download - download manager
Gkuurstra
Phoca Newbie
Phoca Newbie
Posts: 5
Joined: 06 Nov 2012, 10:34

Block non-public files

Post 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
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48566
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Block non-public files

Post 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
If you find Phoca extensions useful, please support the project
Gkuurstra
Phoca Newbie
Phoca Newbie
Posts: 5
Joined: 06 Nov 2012, 10:34

Re: Block non-public files

Post 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
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48566
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Block non-public files

Post 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
If you find Phoca extensions useful, please support the project
Gkuurstra
Phoca Newbie
Phoca Newbie
Posts: 5
Joined: 06 Nov 2012, 10:34

Re: Block non-public files

Post 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
Post Reply