Ask your WordPress questions! Pay money and get answers fast! Comodo Trusted Site Seal
Official PayPal Seal

Protecting images from download WordPress


Hi Guys

I've created this site for a client and installed a plug in to stop visitors right clicking and saving the images from regular browsers....

However it does not protect them on an iPhone or iPad.

Does anyone know of a solution to protect images from being copied/downloaded/saved on mobile devices?


Answers (8)


Manoj Raj answers:

Try adding this to your css

img { -webkit-touch-callout: none; }

Add the following to your htaccess

RewriteEngine on
RewriteCond %{HTTP_REFERER} !^http://(www\.)? [NC]
RewriteRule \.(jpe?g|gif|bmp|png)$ - [F,NC]

to protect downloading the file directly from the url...


Steve Watson comments:

Adding that to the css was perfect, thanks you


Maor Barazany answers:

There is no way to protect images from download. One can just temporarily disable javascript and the use the right click again. More than that, anyone who really wants the image, may grab a screenshot of it and save it later.
To protect your mages add a watermark to them.


Albert Shala answers:

Have you tried adding this to your css: -webkit-user-select: none;


Daniel Yoen answers:

try : <div style="background-image:url('image.jpg');width:W-px;height:H-px"></div>


Asad Iqbal answers:

Best way to protect image by giving annoying watermark onto the photo. Javascript is a way but not a full-proof idea. You may check the following links:

You may google but as I said nothing is full-proof.


Dbranes answers:

You can watermark your images with plugins like:

Hope this helps


S├ębastien | French WordpressDesigner answers:

<body onload="'none';">

S├ębastien | French WordpressDesigner comments:

example : [[LINK href=""]][[/LINK]]


Francisco Javier Carazo Gil answers:


If the user see the image, you cannot avoid it to download. The best way maybe is adding a watermark, the user could download it but it has a watermark. Use low resolution images also, it would be faster and a good image in low resolution is not very useful.

If you want to protect image from hotlinking look at code in .htaccess that Manoj Raj has added.