SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Addict ruba's Avatar
    Join Date
    Apr 2005
    Location
    Amman -Jordan
    Posts
    333
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    protect my files

    hi every body ,
    i don't know what 2 say exactly, but i wana make the user upload there imges, and they select if they want other member views our photos or no
    now my question ,
    if the member select don't let other 2 view my photo, and i any visitor write the image full path, how can i protect the picture from this situation, and don't let other to view the pictures????
    and body can help me or give a hint i'll be thankfull.....

  2. #2
    Snowboarders die even younger igor.kudela's Avatar
    Join Date
    Feb 2005
    Posts
    731
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    you need to store your images outside from the root path so they will not reside in the website itself thus this way no body can access them directly.
    Than you need to write a little script that puls out the image from the datastore checks who has right to see it and who doesnt and only then it renders the image to the screen. This way only people who are allow to see theimage will be able to see it.
    Igor Kudela
    NetPublisher - FREE Customizable .NET CMS


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
  •