close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

upload image folder visibility

Thread began 2/27/2013 3:31 am by JamieEff | Last modified 2/27/2013 11:42 am by JamieEff | 1674 views | 5 replies |

JamieEff

upload image folder visibility

Hi Jason

Have just found out that if I navigate to the path of the image upload area i, the folder and the contents are visible to anyone - how do I stop that from happening please and stop unauthorised prying eyes from seeing the contents?

Thanks

Jamie

Sign in to reply to this post

Jason ByrnesWebAssist

you would need to have the host disable directory listing on the server. you can also do this by creating an htaccess file if your using an Apache server:
disable-directory-listings/

Sign in to reply to this post

JamieEff

thanks Jason.. wasnt sure if there was a setting within PCMS that I needed to toggle...

FTR, I created a .htaccess file using the following redirect:

RedirectMatch 301 ^/uploads/ www.domainname.co.uk

and placed it in the folder that I am looking to limit access to (eg /uploads)

Sign in to reply to this post

JamieEff

well that doesnt work either... it doesnt allow for access to the file that has been uploaded....

is there a more elegant way than using IndexIgnore * which basically just shows this int he browser rather than the list of files: Index of /uploads/files

Sign in to reply to this post

Jason ByrnesWebAssist

Disabling the index is the only option that i am familiar with.

Sign in to reply to this post

JamieEff

have figured it out now...

created .htaccess with this in it:

Options -Indexes

place that in the folder that you are 'hiding'. This creates 'forbidden access'

Then create a 403 error and either point it to your 404 file or create a specific one for the 403

The folders are now 'invisible' (visitor just gets taken to the 404 or 403 page you create if they try to access the folders) but the files that are included in that folder can still be linked to (and subsequently downloaded if required)

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...