Forum Articles
  Welcome back Join CF
You are here You are here: Home | Forum | Protect Images

You are currently viewing our boards as a guest which gives you limited access to view most of the discussions, articles and other free features. By joining our Virgin Media community you will have full access to all discussions, be able to view and post threads, communicate privately with other members (PM), respond to polls, upload your own images/photos, and access many other special features. Registration is fast, simple and absolutely free so please join our community today.


Welcome to Cable Forum
Go Back   Cable Forum > Computers & IT > Internet Discussion
Register FAQ Community Calendar

Protect Images
Reply
 
Thread Tools
Old 26-11-2004, 12:45   #1
Colin
Guest
 
Posts: n/a
Protect Images

Hi there, does anyone know how to protect images on the internet so you can't right click on them and save.

Cheers

Colin
  Reply With Quote
Advertisement
Old 26-11-2004, 12:47   #2
Nemesis
Inactive
 
Join Date: Jun 2003
Location: Surrey
Age: 58
Services: Virgin stuff
Posts: 6,407
Nemesis has a nice shiny starNemesis has a nice shiny starNemesis has a nice shiny star
Nemesis has a nice shiny starNemesis has a nice shiny starNemesis has a nice shiny starNemesis has a nice shiny starNemesis has a nice shiny starNemesis has a nice shiny starNemesis has a nice shiny starNemesis has a nice shiny starNemesis has a nice shiny starNemesis has a nice shiny starNemesis has a nice shiny starNemesis has a nice shiny starNemesis has a nice shiny starNemesis has a nice shiny starNemesis has a nice shiny star
Send a message via MSN to Nemesis
Re: Protect Images

Add this to the body of your page
Quote:
<script language=JavaScript>
<!--
//Disable right mouse click Script
//By Maximus (maximus@nsimail.com) w/ mods by DynamicDrive
//For full source code, visit http://www.dynamicdrive.com
var message="Function Disabled!";
///////////////////////////////////
function clickIE4(){
if (event.button==2){
alert(message);
return false;
}
}
function clickNS4(e){
if (document.layers||document.getElementById&&!docume nt.all){
if (e.which==2||e.which==3){
alert(message);
return false;
}
}
}
if (document.layers){
document.captureEvents(Event.MOUSEDOWN);
document.onmousedown=clickNS4;
}
else if (document.all&&!document.getElementById){
document.onmousedown=clickIE4;
}
document.oncontextmenu=new Function("alert(message);return false")
// -->
</script>
Nemesis is offline   Reply With Quote
Old 26-11-2004, 12:48   #3
SMHarman
Inactive
 
Join Date: Jun 2003
Services: Cablevision
Posts: 8,305
SMHarman is cast in bronzeSMHarman is cast in bronzeSMHarman is cast in bronzeSMHarman is cast in bronze
SMHarman is cast in bronzeSMHarman is cast in bronzeSMHarman is cast in bronzeSMHarman is cast in bronzeSMHarman is cast in bronzeSMHarman is cast in bronzeSMHarman is cast in bronzeSMHarman is cast in bronzeSMHarman is cast in bronzeSMHarman is cast in bronzeSMHarman is cast in bronzeSMHarman is cast in bronzeSMHarman is cast in bronzeSMHarman is cast in bronzeSMHarman is cast in bronzeSMHarman is cast in bronzeSMHarman is cast in bronzeSMHarman is cast in bronzeSMHarman is cast in bronze
Re: Protect Images

Javascript to change the rightclick of the mouse.
PHP Code:
  <script language=javascript>var clickmessage='Copyright 2003 News Group Newspapers Ltd and/or its licensors. No use without permission. Contact [email]enquiries@nisyndication.com[/email]'
    
function disableclick(e) {
        if (
document.all) {
        if (
event.button==2||event.button==3) {
        if (
event.srcElement.tagName=='IMG'){
        
alert(clickmessage);
        return 
false;
        }
        }
    } else if (
document.layers) {
        if (
e.which == 3) {
        
alert(clickmessage);
        return 
false;
        }
    } else if (
document.getElementById) {
        if (
e.which==3&&e.target.tagName=='IMG'){
        
alert(clickmessage)
        return 
false;
        }
        }
    }
    function 
associateimages() {
        for(
i=0i<document.images.length;i++) {
            
document.images[i].onmousedown=disableclick;
        }
    }
    if (
document.all) {
        
document.onmousedown=disableclick
    
} else if (document.getElementById) {
        
document.onmouseup=disableclick
    
} else if (document.layers) {
        
associateimages()
    }
</
script
Is the one associated newspapers use to do it.

But in any case it's a bit of a waste of time as the images are cached on the users PC and anyone with some nouse, or the right firefox addin can capture them all anyway.
SMHarman is offline   Reply With Quote
Old 26-11-2004, 12:58   #4
Jon M
Inactive
 
Jon M's Avatar
 
Join Date: Oct 2003
Location: East Midlands
Age: 47
Services: Rural BB - Radio Link via Virgin Fibre
Posts: 2,947
Jon M has a bronze arrayJon M has a bronze arrayJon M has a bronze array
Jon M has a bronze arrayJon M has a bronze arrayJon M has a bronze arrayJon M has a bronze arrayJon M has a bronze arrayJon M has a bronze arrayJon M has a bronze arrayJon M has a bronze arrayJon M has a bronze arrayJon M has a bronze arrayJon M has a bronze arrayJon M has a bronze arrayJon M has a bronze arrayJon M has a bronze arrayJon M has a bronze arrayJon M has a bronze arrayJon M has a bronze array
Send a message via MSN to Jon M
Re: Protect Images

The simple fact is, that if your browser can display it, it can be saved.
As SMHarman says, Firefox has an extension that disables right-click protection and even IE users only need to extract the images from their browser cache.
Jon M is offline   Reply With Quote
Old 26-11-2004, 13:00   #5
Jon M
Inactive
 
Jon M's Avatar
 
Join Date: Oct 2003
Location: East Midlands
Age: 47
Services: Rural BB - Radio Link via Virgin Fibre
Posts: 2,947
Jon M has a bronze arrayJon M has a bronze arrayJon M has a bronze array
Jon M has a bronze arrayJon M has a bronze arrayJon M has a bronze arrayJon M has a bronze arrayJon M has a bronze arrayJon M has a bronze arrayJon M has a bronze arrayJon M has a bronze arrayJon M has a bronze arrayJon M has a bronze arrayJon M has a bronze arrayJon M has a bronze arrayJon M has a bronze arrayJon M has a bronze arrayJon M has a bronze arrayJon M has a bronze arrayJon M has a bronze array
Send a message via MSN to Jon M
Re: Protect Images

Depending on what sort of usage and restriction you're planning for these images, watermarking might be worth looking into.
Jon M is offline   Reply With Quote
Old 26-11-2004, 13:05   #6
Colin
Guest
 
Posts: n/a
Re: Protect Images

Hi guys, thanks a lot. I know nothing can be completly protected, but then again, the majority of internet users will also not know or be arsed to do it
Thanks Again
  Reply With Quote
Old 26-11-2004, 18:31   #7
cookie_365
Inactive
 
cookie_365's Avatar
 
Join Date: Mar 2004
Location: Brighton
Posts: 2,583
cookie_365 is cast in bronzecookie_365 is cast in bronzecookie_365 is cast in bronzecookie_365 is cast in bronze
cookie_365 is cast in bronzecookie_365 is cast in bronzecookie_365 is cast in bronzecookie_365 is cast in bronzecookie_365 is cast in bronzecookie_365 is cast in bronzecookie_365 is cast in bronzecookie_365 is cast in bronzecookie_365 is cast in bronzecookie_365 is cast in bronzecookie_365 is cast in bronzecookie_365 is cast in bronzecookie_365 is cast in bronzecookie_365 is cast in bronzecookie_365 is cast in bronzecookie_365 is cast in bronzecookie_365 is cast in bronze
Re: Protect Images

If you use untitled bmps I think it stops people dragging & dropping the images in XP too - not 100% sure though; I've seen it on some sites but don't know how its done
cookie_365 is offline   Reply With Quote
Old 26-11-2004, 19:11   #8
Maggy
The Invisible Woman
Cable Forum Team
 
Maggy's Avatar
 
Join Date: Jun 2003
Location: between Portsmouth and Southampton.
Age: 72
Services: VM XL TV,50 MB VM BB,VM landline, Tivo
Posts: 40,341
Maggy has a golden auraMaggy has a golden auraMaggy has a golden auraMaggy has a golden auraMaggy has a golden auraMaggy has a golden auraMaggy has a golden aura
Maggy has a golden auraMaggy has a golden auraMaggy has a golden auraMaggy has a golden auraMaggy has a golden auraMaggy has a golden auraMaggy has a golden auraMaggy has a golden auraMaggy has a golden auraMaggy has a golden aura
Re: Protect Images

Quote:
Originally Posted by s1lv3r
Depending on what sort of usage and restriction you're planning for these images, watermarking might be worth looking into.
That will cost though.However some folk do come up with some pretty ingenious ways of preventing copying.Like one site where when you save the image all you would save is a transparent layer.Don't know how they did it but I was intrigued.

Incog.
__________________
Hell is empty and all the devils are here. Shakespeare..
Maggy is offline   Reply With Quote
Old 26-11-2004, 19:35   #9
MetaWraith
Inactive
 
MetaWraith's Avatar
 
Join Date: Oct 2003
Location: 2nd CPU to the right & past the cache
Posts: 1,949
MetaWraith has a bronzed appealMetaWraith has a bronzed appeal
MetaWraith has a bronzed appealMetaWraith has a bronzed appealMetaWraith has a bronzed appealMetaWraith has a bronzed appealMetaWraith has a bronzed appealMetaWraith has a bronzed appealMetaWraith has a bronzed appeal
Send a message via ICQ to MetaWraith Send a message via AIM to MetaWraith Send a message via MSN to MetaWraith Send a message via Yahoo to MetaWraith
Re: Protect Images

Quote:
Originally Posted by Incognitas
That will cost though.However some folk do come up with some pretty ingenious ways of preventing copying.Like one site where when you save the image all you would save is a transparent layer.Don't know how they did it but I was intrigued.

Incog.
Pretty easy really. Thinking off the top of my head here, with the first of the weekend's alcohol intake inhand. One method would be to have the image as the background in a single celled table. Table data would then be a transparent gif covering the whole cell. Rightclicking would then result in saving the transparent gif rather than the real image. Give the transparent gif a deceptive name just to lull the unsuspecting copier.

As others have said it's already displayed on your browser, so you MUST be able to get at it somehow. What mankind can devise as protection, mankind can overcome.
MetaWraith is offline   Reply With Quote
Old 26-11-2004, 20:07   #10
altis
cf.mega poster
 
altis's Avatar
 
Join Date: Jun 2003
Location: Warrington ntl:81304 Altitude: 12m (and falling)
Posts: 4,499
altis has a nice shiny staraltis has a nice shiny star
altis has a nice shiny staraltis has a nice shiny staraltis has a nice shiny staraltis has a nice shiny staraltis has a nice shiny staraltis has a nice shiny staraltis has a nice shiny staraltis has a nice shiny staraltis has a nice shiny staraltis has a nice shiny staraltis has a nice shiny staraltis has a nice shiny staraltis has a nice shiny star
Re: Protect Images

Many methods were discussed in this thread started by Incognitas:

http://www.cableforum.co.uk/board/sh...ad.php?t=11467
altis is offline   Reply With Quote
Old 26-11-2004, 20:15   #11
Maggy
The Invisible Woman
Cable Forum Team
 
Maggy's Avatar
 
Join Date: Jun 2003
Location: between Portsmouth and Southampton.
Age: 72
Services: VM XL TV,50 MB VM BB,VM landline, Tivo
Posts: 40,341
Maggy has a golden auraMaggy has a golden auraMaggy has a golden auraMaggy has a golden auraMaggy has a golden auraMaggy has a golden auraMaggy has a golden aura
Maggy has a golden auraMaggy has a golden auraMaggy has a golden auraMaggy has a golden auraMaggy has a golden auraMaggy has a golden auraMaggy has a golden auraMaggy has a golden auraMaggy has a golden auraMaggy has a golden aura
Re: Protect Images

Quote:
Originally Posted by altis
Many methods were discussed in this thread started by Incognitas:

http://www.cableforum.co.uk/board/sh...ad.php?t=11467

Ah! I'd forgotten that one.
__________________
Hell is empty and all the devils are here. Shakespeare..
Maggy is offline   Reply With Quote
Old 26-11-2004, 20:58   #12
Richard M
Inactive
 
Join Date: Jun 2003
Location: Los Angeles, CA
Age: 46
Posts: 6,343
Richard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze array
Richard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze array
Re: Protect Images

Yawn...

(this is a standard feature BTW)
Richard M is offline   Reply With Quote
Old 26-11-2004, 21:47   #13
keithwalton
Inactive
 
keithwalton's Avatar
 
Join Date: Jul 2003
Location: Southampton
Age: 41
Posts: 1,089
keithwalton has reached the bronze age
keithwalton has reached the bronze agekeithwalton has reached the bronze agekeithwalton has reached the bronze agekeithwalton has reached the bronze agekeithwalton has reached the bronze agekeithwalton has reached the bronze age
Re: Protect Images

I was going to make the comment that firefox now has the javascript properties feature built in but Rich beat me to it
Pioneer seem to use a clever protection thing on some images, as in on this page http://www.pioneer-eur.com/eur/body.jsp The image top left just saves as pixel.gif
As others have said though images are easily copied, even if you cant save them you cant still hit print screen and dump the contents in the clipboard.
Perhaps a watermarking system maybe of more use
keithwalton is offline   Reply With Quote
Old 24-12-2004, 08:52   #14
ikthius
Inactive
 
ikthius's Avatar
 
Join Date: Mar 2004
Location: Glasgow, Scotland
Services: anything for a new job
Posts: 4,165
ikthius is cast in bronzeikthius is cast in bronzeikthius is cast in bronzeikthius is cast in bronze
ikthius is cast in bronzeikthius is cast in bronzeikthius is cast in bronzeikthius is cast in bronzeikthius is cast in bronzeikthius is cast in bronzeikthius is cast in bronze
Re: Protect Images

why don't you just make your img src like this:

<img src="image.jpg" onContextMenu="return false">

I think you will have to have javascript enabled.

ik

EDIT: Give it a try, your right click function is disabled, and does not work.
ikthius is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 18:39.


Server: osmium.zmnt.uk
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
All Posts and Content are © Cable Forum