hiding upload folder content

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
JiiPee
Forum Members
Forum Members
Posts: 81
Joined: Fri Jan 23, 2009 7:03 pm

hiding upload folder content

Post by JiiPee »

Hi, CMSMS seems to hide content in the default folders, like uploads and images. So if I open url "http://www.mysite.com/uploads/images, it don't show files that are inside there.

But if I create another folder, lets say uploads/myfiles, that content will be visible in url "http://www.mysite.com/uploads/myfiles.

Is there a way to crate new upload folders so that their content will not be visible in related url?
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Location: The Netherlands
Contact:

Re: hiding upload folder content

Post by Rolf »

Uploads and CGSmartImage module will help
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
Wishbone
Power Poster
Power Poster
Posts: 1369
Joined: Tue Dec 23, 2008 8:39 pm

Re: hiding upload folder content

Post by Wishbone »

put an empty index.html in your new directory.
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Location: The Netherlands
Contact:

Re: hiding upload folder content

Post by Rolf »

Wishbone wrote:put an empty index.html in your new directory.
Ahh, that is what he means ;)
You can also add Options -Indexes to your root .htaccess file. It will block browsing of the folders

Grtz. Rolf
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
Post Reply

Return to “CMSMS Core”