New files .htaccess and web.config added only upon directory create

Phoca Download - download manager
User avatar
phunsoft
Phoca Member
Phoca Member
Posts: 38
Joined: 06 Sep 2023, 20:32

New files .htaccess and web.config added only upon directory create

Post by phunsoft »

The news files "web.config" and ".htaccess" seem to be added only upon directory creation in the backend. So the improve security only on new but not existing direcories.

Souldn't the files finally exist in all directries under Phoca Download "control"?
  • Should one copy them manually into all existing directories as a one time action?
  • Wouldn't it be reasonable to verify their existence in the current directory upon each file upload?
  • If there was a need to update their content in the future, how to handle this?
Phoca Download 6.1.4

Regards
Peter
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49556
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: New files .htaccess and web.config added only upon directory create

Post by Jan »

Hi, this is an extra added feature. Yes, if possible, it is a good idea to copy these files to existing directories. The problem with subsequently checking directories and adding such files is that it can slow down the system, so it is rather unwanted by users.
If you find Phoca extensions useful, please support the project
User avatar
phunsoft
Phoca Member
Phoca Member
Posts: 38
Joined: 06 Sep 2023, 20:32

Re: New files .htaccess and web.config added only upon directory create

Post by phunsoft »

Thanks. Understood.
Post Reply