I am getting a 403 Forbidden Message On My site for the directory 'images'

Discussion in 'Apache' started by 5starpix, Sep 26, 2007.

  1. #1
    Hey.

    i am getting a 403 forbidden message for one of my folders, called 'images', but all the other folders work, and I don't know how to delete it. Is it a setting in cPanel? Please, i really need help in this.

    Thanks
     
    5starpix, Sep 26, 2007 IP
  2. mcfox

    mcfox Wind Maker

    Messages:
    7,526
    Likes Received:
    716
    Best Answers:
    0
    Trophy Points:
    360
    #2
    Use the file manager in cpanel to delete it if you really must. Just make sure it isn't essential to your site - i.e. has all the images for your website contained in it.

    It sounds to me like the .htaccess has been written to make certain that anyone trying to view the content of the 'images' folder cannot do so. This is common practice and nothing to worry about, actually the opposite is true - you should be happy the 403 forbidden is being applied as this prevents people viewing the contents of the directory and therefore tightens up security.
     
    mcfox, Sep 26, 2007 IP
  3. 5starpix

    5starpix Notable Member

    Messages:
    6,380
    Likes Received:
    83
    Best Answers:
    0
    Trophy Points:
    235
    #3
    but its an image hosting site, and images are in the 'images' folder
     
    5starpix, Sep 26, 2007 IP
  4. blowingideas

    blowingideas Peon

    Messages:
    642
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #4
    that's because directory listing is not enabled on your webhost..

    for you to see the list of images on a certain directory, create a .htaccess file,
    insert this line - Options +Indexes

    and upload it to the directory where your images are stored.
     
    blowingideas, Sep 26, 2007 IP
  5. mcfox

    mcfox Wind Maker

    Messages:
    7,526
    Likes Received:
    716
    Best Answers:
    0
    Trophy Points:
    360
    #5
    Maybe you should have mentioned that in the original post? :rolleyes:

    Why are you asking about deleting it?!

    Well then, you clearly do not want the contents displayed if someone types in www.domain.com/images/ do you? Leave it alone.
     
    mcfox, Sep 26, 2007 IP
  6. 5starpix

    5starpix Notable Member

    Messages:
    6,380
    Likes Received:
    83
    Best Answers:
    0
    Trophy Points:
    235
    #6

    is this what i put in;

    Options +Indexes


    Because i put that, but its not working..:(
     
    5starpix, Sep 26, 2007 IP
  7. evera

    evera Peon

    Messages:
    283
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Maybe you need to do chmod rwxr-xr-x (755) so that you can see the folder...
     
    evera, Sep 26, 2007 IP