Images From
How to protect images from my website from being stolen by other users?
I have put in a code to disable users from right clicking and saving the images from my website.But somebody can put in the source codes of the image in the browser to copy the image.Also the images can be dragged and saved to Desktop.is there any code to disable users from using drag and drop to swipe images from my sites. Anyone have a good way around this? Do help with the codes please!!!
Tricky.
You've already done the most obvious thing of disabling right click. One way of sort-of achieving this is to have a tranparent image on top of the proper image. So if someone saves it, or drags it, all they get is the transparent one.
Another way would be do not have the image url in your html code, e.g.
, instead use javascript to load the images. It won't prevent a determined hacker, but would add a layer of obfuscation to your code to make it more difficult to follow. Javascript may be compressed to make it virtually unreadable to humans.
However, you can't stop someone completely. They could still load your page, do alt+print+screen, and trim the image.
![]() |
![]() Princess Street from Hollywood Castle Edinburgh Scotland 1944 DVD 5000+ Images $9.99 Time Remaining: 10d 21h 51m Buy It Now for only: $9.99 |
![]() 3x4 King Arthurs Hill from Hollywood Palace Edinburgh Scotland DVD 5000+ Images $9.99 Time Remaining: 10d 21h 51m Buy It Now for only: $9.99 |


