Diese Seite mit anderen teilen ...

Informationen zum Thema:
WinDev Forum
Beiträge im Thema:
Erster Beitrag:
vor 9 Jahren, 4 Monaten
Letzter Beitrag:
vor 9 Jahren, 4 Monaten
Beteiligte Autoren:
Alexandre Leclerc, manish matikola.pcs.crosspost, Javier.pcs.crosspost, JB

How to prevent a viewer to download a picture which have been inserted in a website?

Startbeitrag von manish matikola.pcs.crosspost am 07.04.2009 08:07

Hi guys...

Well i am having a problem with images which i am inserting in my website. i want to prevent viewers to download a particular picture. Is this feasible in webdev10? If yes can i know how to do it?

Thanks in advance

Message forwarded from pcsoft.us.windev


I'm not sure if this is available in version 10 but in 12 under the General settings you just click the 'Image Protection' check box.


von JB - am 07.04.2009 09:37

Well, in fact this is almost impossible to do that because the content is downloaded and cached locally. For basic protection is ok for not very technical people (in WD12 there is a feature for that). But for absolute security one must use complex dynamic methods in javascript.

In any other case (normal case - even using the WebDev feature), you can always find a way to get the pictures. For example, in Firefox, go on any web page then use Tools->Page information, go in the Media tab and select the image you want to save and click the save button. There is no javascript protection for that. (Try it on google.com page... you'll be surprised to see how they efficiently have all their images in one single image then they use css to get the exact part they want. Clever.)

Ok, if you have an old version of WD, disable right click with some javascript. (Javascript must be enabled.) But this will not stop someone motivated to get the image.

< IMG src="..." oncontextmenu="return false;" >

Else, you can find many other solutions that can be inserted differently. Like http://javascript.internet.com/page-details/disable-images-click.html

Best regards.

von Alexandre Leclerc - am 07.04.2009 15:10
Hi again,

If your image must be protected as much as possible, maybe the DataURL approach can be of help to you. Actually, modern web browsers will display the image, but will not be available in the Media section (for Firefox as far as I know).

See http://www.sveinbjorn.org/dataurlmaker that create one as example... but specially the link of this page to wikipedia: http://en.wikipedia.org/wiki/Data_URL

(Oh well, reading the Wiki page I saw that IE has absolutely no support for this and the Beta 8 has support for 32K only. It's probably not a solution for you. Sorry.)

Best regards.

von Alexandre Leclerc - am 07.04.2009 15:25

Re: How to prevent a viewer to download a picture which have been inserted in a website?

I don't know in version 10 but in 12 there is a check in the General tab of the control image properties that say: Image protection (prevents the backup of the image by the popup menu).

Message forwarded from pcsoft.us.windev

von Javier.pcs.crosspost - am 08.04.2009 07:24
thanks javier for your precious help.

Message forwarded from pcsoft.us.windev

von manish matikola.pcs.crosspost - am 08.04.2009 08:02
Zur Information:
MySnip.de hat keinen Einfluss auf die Inhalte der Beiträge. Bitte kontaktieren Sie den Administrator des Forums bei Problemen oder Löschforderungen über die Kontaktseite.
Falls die Kontaktaufnahme mit dem Administrator des Forums fehlschlägt, kontaktieren Sie uns bitte über die in unserem Impressum angegebenen Daten.