Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Make Image not copyable

I am developing an E-Commerce website on ASP.Net and I have a lot of product images in that.Now what i want is i don't want people to right click on my images and copy or save it on their system.I know if the user is determined he can make a copy of my images like taking a screenshot or other things like it,but i don't care it.For me i just not want people to come and take my pictures as easy as it is now. Is there any good way to do this?

like image 507
None Avatar asked Apr 19 '26 11:04

None


1 Answers

You can prevent users from right clicking your images. But the user will still be able to make a copy if they really want it. The best solution would be a watermark I think.

You can prevent users from right clicking images by adding onContextMenu="return false;" to your image code.

See http://www.pagetutor.com/no_right_click/index.html for more details.

like image 198
Bart Avatar answered Apr 22 '26 02:04

Bart



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!