Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Prevent image theft

Prevent image theft

Scheduled Pinned Locked Moved ASP.NET
questionjavascriptwindows-admin
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Asad Hussain
    wrote on last edited by
    #1

    How do i prevent a user from downloading images from my website and disable it from getting stored in the cache?? Is there an IIS setting or do I have to write code. I know javascript can disable the right click stuff and i have that. I'm more concerned about not caching the images.

    M 1 Reply Last reply
    0
    • A Asad Hussain

      How do i prevent a user from downloading images from my website and disable it from getting stored in the cache?? Is there an IIS setting or do I have to write code. I know javascript can disable the right click stuff and i have that. I'm more concerned about not caching the images.

      M Offline
      M Offline
      minhpc_bk
      wrote on last edited by
      #2

      Hi there, To set the expired time for an image file, in the IIS snap-in you right click on the image file to open the Properties dialog box. On the HTTP headers tab, you select the Enable Content Expiration checkbox and set the expired time you want. You can also do that in code as well.

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups