News:

Dear forum visitors, if the support forum is not available, please try again a few minutes later. Thanks!

Main Menu
Support-Forum

.htaccess stops all downloads

Started by barraclm, 17.05.2021 00:01:19

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

barraclm

I am having problems with web crawlers and have implemented the Protect your Download Directory option. It has put the following .htaccess file in the downloads directory and users now get a 403 Forbidden error and are no longer able to download files. How do I stop web crawlers from downloading directly from the downloads directly but still give a download capability to users at the front-end?

Options -Indexes

<IfModule mod_authz_core.c>
# Apache 2.4
Require all denied
</IfModule>

<IfModule !mod_authz_core.c>
# Apache 2.2
Deny from all
</IfModule>
  •  

ColinM

Hmm! 
I cannot reproduce the problem.
Colin
Colin M
  •  

barraclm

Here's my sequence.

  • Login at the frontend and download a file
  • Check the downloads directory on the server - no .htacces file
  • Go to the security tab in jDownloads global options and set 'Protect your Download Directory' to YES
  • Check the downloads directory on the server - there is now an .htacces file
  • Go to the frontend and try to download the same file - can't, get a 403 error
  • Go to the downloads directory on the server and delete the .htacces file
  • Go to the frontend and try to download the same file again - it works
You have probably visited the site after I have removed the .htacess file as I can't leave the site without people being able to download files.

Regards - Michael Barraclough
  •  

ColinM

Michael,What I meant is that I cold not reproduce on my test siteWhich Browser are you using - I tested with FirefoxColin
Colin M
  •  

barraclm

Chrome Version 90.0.4430.212 (Official Build) (64-bit)
  •