SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Addict
    Join Date
    Jan 2008
    Location
    Palm Harbor, FL
    Posts
    348
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question Detecting if somebody manually saves an image to their computer

    I'm trying to keep record of how many times an image has been downloaded.
    Is it possible to detect if a client manually saves an image through their browser?

  2. #2
    Unobtrusively zen silver trophybronze trophy
    paul_wilkins's Avatar
    Join Date
    Jan 2007
    Location
    Christchurch, New Zealand
    Posts
    14,729
    Mentioned
    104 Post(s)
    Tagged
    4 Thread(s)
    Quote Originally Posted by Morthian View Post
    I'm trying to keep record of how many times an image has been downloaded.
    Only from server-side logs. One way that this is done is for a server-side script (such as PHP) to scrape through server access logs, looking for all occurances of what you're interested in.

    Quote Originally Posted by Morthian View Post
    Is it possible to detect if a client manually saves an image through their browser?
    No, you can not determine if the user has saved an image from the web page.
    One possible way to obtain some numbers though is to provide a low-quality version of the image on the web page, but allow them to request a link to be sent to their email for a high-quality image. That way you can keep track of such requests.

    Nowhere is JavaScript involved in this though.
    Programming Group Advisor
    Reference: JavaScript, Quirksmode Validate: HTML Validation, JSLint
    Car is to Carpet as Java is to JavaScript


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
  •