Results 1 to 3 of 3

Thread: Question About Password Protecting Directory

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #2
    Matt's Avatar
    Matt is offline GlowHost Administrator
    Join Date
    Jan 2005
    Location
    Behind your monitor
    Posts
    6,435

    Default

    If you password protect your images folder, and have an HTML page that embeds that image into the page, the user trying to view the page would have to know the username and password to actually see the image.

    What will happen is the page will load, then they will get a login prompt and if they enter in the username and password, the images will load on the page. If they cancel the login, the images will show big red "x"s and missing images.

    If you don't want someone to see all the available images in your images folder simply put a blank page called index.html or you can use .httaccess rules to prevent directory listings or many other things. Another option is to use the index manager in cPanel which will allow you to turn directory indexes on or off for a particular directory (folder)

    All it is essentially doing is writing the .htaccess file for you in my above option.
    Last edited by Matt; 02-24-2006 at 12:44 PM.
    Send your friends and site visitors to GlowHost and get $125 plus bonus!
    GlowHost Affiliate Program | Read our Blog | Follow us on X |

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14