#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2000
    Posts
    23
    Rep Power
    0
    Is there anyway to copy a image/file temporily only for viewing and delete it right after the browser stops loading the page?

    Also is there a way to make it so that everytime you try to save an image/file from a particular directory, it will save a default (configured) file instead, even if I have to use the .htaccess ?

    I would like to protect my files from being stolen.

    Please Help.

    ------------------
    C.K.C.
  2. #2
  3. Banned (not really)
    Devshed Supreme Being (6500+ posts)

    Join Date
    Dec 1999
    Location
    Brussels, Belgium
    Posts
    14,642
    Rep Power
    4492
    could you do something like this?

    at the beginning of the script, copy the image to a tmp folder. (use copy() function in php).

    create the rest of the page, referencing the image in the tmp folder.

    at the end of the script, delete the image from the tmp folder. (use ulink() in php)

    i'm not sure if that will work. it depends at what point the image information is sent to the viewer, during the script, or after, or what. this might not even stop people from right clicking on it and saving it, but since the image isn't there anymore...it might help.

    if you are trying to stop right clicking on your image and saving...i think there are some javascript functions that can stop this. you might want to look into that. i think you can stop people from right clicking and viewing the source, too...

    ---John Holmes
    ---www.SepodatiCreations.com
  4. #3
  5. Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Feb 2000
    Location
    Perth West Australia
    Posts
    757
    Rep Power
    15
    While there are many ways to make it harder - its all irrelevant as the image has to loaded into the users cache for the user to see it - so the image is in their temporary internet files folder until they clean it out.

    Even with streamed media which is hard to cache/catch - a dedicated geezer can just do a screen capture with PSP - whatever.

    So you are never going to protect your images if you also want the surfer to be able to see them.

    You can put a copyright notice in some image formats - but that will only help if you see your image elsewhere download it and check to see if the copyright is still intact!

    ------------------
    Simon Wheeler
    FirePages -DHTML/PHP/MySQL
  6. #4
  7. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2000
    Posts
    23
    Rep Power
    0
    I've heard of antileech scripts, do they actually work????

Similar Threads

  1. Can't move or delete it!
    By Hykinsel007 in forum Windows Help
    Replies: 3
    Last Post: June 15th, 2004, 03:41 PM
  2. Reading files that has certain parrent at once
    By cgi_pro in forum Perl Programming
    Replies: 2
    Last Post: January 29th, 2004, 10:13 PM
  3. how to rename files
    By dxgn in forum Perl Programming
    Replies: 1
    Last Post: January 1st, 2004, 01:10 PM
  4. How can I pack servlet files into a jar file?
    By suryahema in forum Java Help
    Replies: 1
    Last Post: December 18th, 2003, 08:32 AM
  5. Replies: 3
    Last Post: October 31st, 2003, 10:47 AM

IMN logo majestic logo threadwatch logo seochat tools logo