SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Member
    Join Date
    May 2005
    Posts
    5
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Wink Basic htaccess Question

    Hey guys,

    I have a very basic question regarding htaccess. I know that htaccess can password protect directories from being viewed, however my needs are to password protect files which arent scriptable webpages, such as a jpeg or pdf file.

    What im after is to prevent users from typing in the absolute url of the document eg www.mysite.com/picture.jpg, and retrieve the file without authentication.

    Can htaccess provide this?

    Thanks,
    - Justin

  2. #2
    SitePoint Member
    Join Date
    Jun 2005
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    If you use htaccess to password-protect your folder you won't have access to any file if your not logged in. So, yes htaccess can provide that kind of security.

  3. #3
    SitePoint Member
    Join Date
    May 2005
    Posts
    5
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Cool

    Great thanks.

    I'll try to get .htaccess working then.

    - Justin


Bookmarks

Posting Permissions

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