jDownloadsownloads.com

Author Topic: Protectiong downloads folder from http access  (Read 1085 times)

0 Members and 1 Guest are viewing this topic.

Offline gigowattfilm

  • Newbie
  • *
  • Posts: 23
Protectiong downloads folder from http access
« on: 22.04.2018 15:15:30 »
Hello

I would like to prevent people to access file through http.

I tried the .htaccess route and also this : http://www.jdownloads.net/documentations/item/how-can-i-protect-my-download-folders
But alas, I'm using HTML5 to be able to preview the files ans it breaks the preview "Important: If you use HTML Elements or Flowplayer to preview media files, or you have deactivated the option you must set this protection option to No.".

Is there a way to protect the files while keeping the preview ?
Thank you !
« Last Edit: 22.04.2018 15:18:17 by gigowattfilm »

Offline gigowattfilm

  • Newbie
  • *
  • Posts: 23
Re: Protectiong downloads folder from http access
« Reply #1 on: 30.04.2018 14:16:03 »
I'm sorry. I'm just upping the post a bit since I havn't found any answer yet.

Offline Arno

  • Administrator
  • ***
  • Posts: 12.361
    • jDownloads.com
Re: Protectiong downloads folder from http access
« Reply #2 on: 30.04.2018 18:48:06 »
Hi,
the hints in the documentation and  the settings are correct. So you cannot use both.
But normally it is not required to protect the download folder additional when the option: Indexes is deactivated (see your documentation link).

Another way could be to store the preview files in another folder (outside the jD folder) and add the player (via a plugin placeholder) manually in the Downloads description.
« Last Edit: 30.04.2018 18:51:32 by Arno »
Best Regards / Gruß
Arno
Please make a Donation for jDownloads and/or write a review on the Joomla! Extensions directory!

Offline ColinM

  • Moderator
  • *
  • Posts: 3.985
Re: Protectiong downloads folder from http access
« Reply #3 on: 01.05.2018 18:08:31 »
Hi
With Joomla! 3 the default .htaccess file has the line
Options -Indexes
in it.  If you check on you site that ot does have that line (and not commented out!) then you are protected.

Colin

Offline gigowattfilm

  • Newbie
  • *
  • Posts: 23
Re: Protectiong downloads folder from http access
« Reply #4 on: 10.05.2018 11:11:59 »
Hello
I went and found my .htaccess at the root of my www folder. It is not like the other .htaccess and I cannot find the parameters (I attached it). If you would be so kind to help me there.

My goal is to prevent access to the file by typing he right target in a browser.
When I enable the protect download or edit the .htacces on the jdwnloads directory, I loose the preview.
Thank you for your help.

Modified to remove htaccess.txt file (after I had down loaded it) as it could be usefull to hackers Colin
« Last Edit: 10.05.2018 14:53:36 by ColinM »

Offline ColinM

  • Moderator
  • *
  • Posts: 3.985
Re: Protectiong downloads folder from http access
« Reply #5 on: 10.05.2018 15:04:15 »
Hi
I have checked your htaccess.txt file
It has the
Options -Indexes
statement in it. So it is protecting your site
Assume you have it in your website root named as .htaccess If not rename it as .htaccess

You might need to use FileZilla or another FTP to see the file as some web sites eg the popular Cpanel ones do not show it in thier file manager.

If you edit .htaccess the do so with Notepad++ and make Notepad++ your default editor in FileZilla or whatever ftp program you use.

To send me any similar info please use the PM method rather than a forum question

Please let us know if you need more help

Colin