Wednesday, 28th May 2008

Using CSS to stop right-click image saving

You want to stop people casually stealing your nice images…

…you could use a bit of javascript to kill right-clicks but I think those are a BAD IDEA! They can really annoy a lot of users (especially people who use right-click based ‘mouse gestures’ when surfing) and are very easy to stop (by turning off js!).

Instead, you can use some (relatively) simple css. Here are some ways of stopping image saving with right-clicks with css.

Granted, they won’t stop someone who really wants to get the images, but they’re nicer than js!

by james in html & css | permalink

Leave a Reply