corsasport.co.uk
 

Corsa Sport » Message Board » Off Day » Geek Day » "Forbidden - You don't have permission to access /images/ on this server" » Post Reply

Post Reply
Who Can Post? All users can post new topics and all users can reply.
Icon:
Formatting Mode:
Normal
Advanced
Help

Insert Bold text Insert Italicized text Insert Underlined text Insert Centered text Insert a Hyperlink Insert Email Hyperlink Insert an Image Insert Code Formatted text Insert Quoted text
Message:
HTML is Off
Smilies are On
BB Code is On
[img] Code is On
Post Options: Disable smileys?
Turn BBCode off?
Receive email notification of new replies?

Ian

posted on 12th Feb 08 at 21:24

Should be 700 if you want no access.

711 is execute access for group and public.

If you want a nicer message, make it 644 and put an index.htm in there. You still need 644 on the images as well, which means they'll work if you know the filenames but you can't browse the folder.

Still not secure as such as if someone knows the name they can get the pics. If you want to authenticate users properly then you need htaccess.

Also that error code will but 401 I think not 404 if you've not authorised the read. The 404 might be the error page not available.

Either way, those errors are usually ugly. Default document (index.htm) in there usually does the trick.


drax

posted on 12th Feb 08 at 18:31

Look up editing the HTACCESS file for custom 404


AndyKent

posted on 12th Feb 08 at 13:10

Some hosts will let you specify custom error pages, so rather than forward you to a 404 (not found) or whatever the code is for permission denied, the user would get sent to a custom page.


liamC

posted on 12th Feb 08 at 08:40

On my web hosting control panel I have set the permissions of folders to 711 so people can't look through the different folders on my server, but I was just wondering if it is possible to create a webpage saying "you do not have access to this page, please visit the homepage" or if the person types in the wrong address, it comes up saying "this page doesn't exist" blah blah

Anyone any idea how I can do this?