TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,973
  • Latest: NonStop
Stats
  • Total Posts: 196,245
  • Total Topics: 21,354
  • Online today: 565
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online

Secure Download Folder

Started by Dynotrick, June 05, 2007, 01:55:21 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Dynotrick

I searched around a bit but couldn't find anything that addressed this issue really.

I have my download section with membergroup permissions and all is fine there. 

But if I am logged out of my forum (guest) and put in the url to the downloads folder (ex. ../tp-downloads/) anyone can see the directory and the files there.  Is there a way to prevent this while still allowing the proper members to download files while logged into the forum?

Reality12

create a blank index.html file in that folder.

lemme know if that works.

Dynotrick

#2
yea, prevents from seeing the contents of the folder, but you can still download the files as a guest provided you know the exact filename of what you want.  ie. typing the full path into the address bar of the browser.

the security by obscurity is a bit better though ^_^

edit:  also index.html shows now as not assigned in the download manager in the forum admin panels.  not a big deal though.

IchBin

do you have the .htaccess file in the tp-downloads folder?

Dynotrick

thanks IchBin... big "duh" for me..  I don't use .htaccess files on my server but i simply put this in the server directives and it did the trick.

  <Directory /var/www/forums/tp-downloads/>
        AllowOverride None
      Order Deny,Allow
      Deny from all
</Directory>

This website is proudly hosted on Crocweb Cloud Website Hosting.