how to prevent access to a site folder ?

Discussion in 'Web Design & Coding' started by Howling Wolf, Dec 7, 2003.

  1. Howling Wolf

    Howling Wolf We did not deserve this !

    Messages:
    1,243
    Location:
    Amongst the Native Ones
    Maybe it's not a simple question...

    Is there a way for visitors not to access directly an image folder (I don't want someone to copy or view the images without visiting the page they're in...) ?
    I tried to put an .htaccess file in this folder but the wrong effect is that the page containing the images cannot access the images unless I give the username/password on clicking the link leading to this page, that's of course not a solution...

    Or, how to prevent the ability to copy the images directly from the folder they're stored in ?
    Same question, how to prevent image copy from a html page ?

    Any suggestions ?
    Thank you all !
     
  2. SPeedY_B

    SPeedY_B I may actually be insane.

    Messages:
    15,800
    Location:
    Midlands, England
    For an image folder just put a blank page in there called index.html

    As for protecting images, there's hundreds of pathetic javascripts out there to do this for you, but I have to say that absolutely none of them work, it is 100% utterly completely impossible to protect images.
     
  3. Zedric

    Zedric NTFS Guru Folding Team

    Messages:
    4,006
    Location:
    Sweden
    Yes I agree. If you want users to view the images, they will be able to steal them. The scripts are just annoying.
     
  4. Howling Wolf

    Howling Wolf We did not deserve this !

    Messages:
    1,243
    Location:
    Amongst the Native Ones
    Thank you for the info SPeedY_B, the index.html might be the right solution.

    But I've seen sites that block IE6 image toolbar (when you hover over an image), this option might be of interest for me even though it will not prevent image copy ;)
     
  5. SPeedY_B

    SPeedY_B I may actually be insane.

    Messages:
    15,800
    Location:
    Midlands, England
    Interesting, I've never seen or heard of that before. Not everyone uses IE6 though, I'm on a mac and only have IE5 available to me, along with Firebird/safari etc. Although I would imagine that stats show at least 80% of visitors do use IE6, heh.

    Only place I can think of, off the top of my head, would be http://hotscripts.com/ there's plenty of scripts there to serve various purposes, may be something there for you :)
     
  6. a1ehouse

    a1ehouse Chamone M*tha Fu*ka

    Messages:
    288
    I have seen something on the EvertonWebsite which makes it a little harder to access your images. Have a look at the source code for a few tips.
     
  7. SPeedY_B

    SPeedY_B I may actually be insane.

    Messages:
    15,800
    Location:
    Midlands, England
    I just right clicked and downloaded an image no problem..
     
  8. Khayman

    Khayman I'm sorry Hal... Political User Folding Team

    Messages:
    5,518
    Location:
    England
    even if you can click on it, save it or anything else, if you can view it you can simply take a cap of it!
     
  9. SPeedY_B

    SPeedY_B I may actually be insane.

    Messages:
    15,800
    Location:
    Midlands, England
    Hence it being 100% impossible to protect images :)

    Best way to protect your images, is to not put them on the web :)
     
  10. punkandacoke

    punkandacoke eat me

    Messages:
    255
    Location:
    at the end of the rainbow
    hey...there is a way to protect images.
    bury every image into a seperate flash file.
    ;-)
    not saying its easy, but it will protect em'
     
  11. Howling Wolf

    Howling Wolf We did not deserve this !

    Messages:
    1,243
    Location:
    Amongst the Native Ones
    Thank you all, my main concern was that some people seemed to access one of the images folders directly without loading the html they're on and may have copied some of them this way which I find fairly unfair...
    I followed SPeeDy_B's advice and put 2-3 index.html in various folders and I'm happy with it now :)
     
  12. SPeedY_B

    SPeedY_B I may actually be insane.

    Messages:
    15,800
    Location:
    Midlands, England
    Not from the print screen key though.
     
  13. punkandacoke

    punkandacoke eat me

    Messages:
    255
    Location:
    at the end of the rainbow
    damn it speedy...
    just goes to show you...nothing is "safe"
     
  14. j79zlr

    j79zlr Glaanies script monkey Political User

    Messages:
    2,725
    Location:
    Chicago
  15. Howling Wolf

    Howling Wolf We did not deserve this !

    Messages:
    1,243
    Location:
    Amongst the Native Ones
    > SITE CHMOD 711 Images
    < 550 CHMOD not allowed on Images

    that's what I get when I try... anyway, an index.html page does the trick also, so thank you j79zlr