Good evening,
Is it possible to protect the images on my site?
Thanks in advance
Katie
![]()
Good evening,
Is it possible to protect the images on my site?
Thanks in advance
Katie
![]()
Have a look at this thread:
http://www.bluepark.co.uk/forums/showthread.php?t=112
Developer :: Bluepark Solutions Ltd
Thank you,
Can i remove the warning sign?
Regards
Katie
The warning sign is what protects the images, disabling the right-click function.
Developer :: Bluepark Solutions Ltd
Hi,
Below is a scrip that will disable left and right buttons on the mouse for copying and disable the browser facility as well. This will stop people nicking your hard earned time writing up T&C's, copyright images, etc.
<SCRIPT language=JavaScript>
<!--
var message="Copyright ©2008 Green Bear UK. All Rights Reserved.";
function clickIE() {if (document.all) {(message);return false;}}
function clickNS(e) {if
(document.layers||(document.getElementById&&!docum ent.all)){
if (e.which==2||e.which==3) {(message);return false;}}}
if (document.layers)
{document.captureEvents(Event.MOUSEDOWN);document. onmousedown=clickNS;}
else{document.onmouseup=clickNS;document.oncontext menu=clickIE;}
document.oncontextmenu=new Function("return false")
function noclic(clic) {
var msg="Copyright ©2008 Green Bear UK. All Rights Reserved.";
if (navigator.appName == 'Netscape' && clic.which==3) {
alert(msg);
return false;}
else
if (navigator.appName == 'Microsoft Internet Explorer' && event.button==2) {
alert(msg);
return false;
}
return true;
}
if (document.layers) {
document.captureEvents(Event.MOUSEDOWN);
}
document.onmousedown = noclic;
// -->
</SCRIPT>
<script>function disableselect(e){
return false
}
function reEnable(){
return true
}
//if IE4+
document.onselectstart=new Function ("return false")
//if NS6
if (window.sidebar){
document.onmousedown=disableselect
document.onclick=reEnable
}
</script>
Hope this helps you and other members of the Bluepark community. If you want to see it working my site is still under development until Dec aprox but you can go to http://bp43.betapark.co.uk for the time being. It is within the front page.
Mikeyreds script is an improvement over the one we are currently using and it does make it more difficult for people to steal your hard work but its not impossible. For example using Safari I can still drag images onto my desktop.
If the person is determined enough they can view the source and copy text or follow paths to images and save them. For example
http://bp43.betapark.co.uk/user/adv_clean_apple3g.gif
If images are your own you could always considering watermarking them with copyright xyz
That script doesn't seem to work for us, I've inserted it in the header css additional code of the template same as I did with the other script but it doesn't work. Does it need to go in a different location?![]()
hiya,
Place the script in the head section of your template/site - not your additional css section. That may solve your problem. Alternatively, re-paste as it may have inadvertently broken going in. I had only placed it on individual pages but I have just placed in the Template editor header and is working across the whole site.... so should work on yours okay.
As Dave has said and Richard will confirm, there is no way of stopping the determined but this will put the majority off, regarding the Safari browser, we will work on that part of the code but you will find this script will cover about 95% aprox of your visitors.
I tried the script on it's own and it did not work on the pictures but did on the text so I then added it to Richard's old script and it seems to work OK.
Just hope I haven't corrupted anything by adding both scripts together.
Mike
Purse Angels
Hi,
Strange... I have just loaded it up into my header in template editor to check and it all works fine (http://bp43.betapark.co.uk) I did discover with Rich, that if you enter a java script then work with it in format HTML mode, rather than plain source code, some scripts will be broken by the HTML formating. I would suggest you delete the script and re-paste it in source code format only and see if that works. At the moment, you do not have the copyright popup when over text, only over images on your site and all I can see for the moment in your code that it has all bunched up with no breaks between some of the commands. Hope it sorts out for you.
Really sorry but it still doesn't work for me,
Richard's original code with the pop up warning message works but this one doesn't.
I've tired inserting as source and also creating it as a file and adding in a shorter linked code to the file as explained on http://www.bluepark.co.uk/forums/showthread.php?t=112
Really cant see why it's not working
EDIT:
used;
<SCRIPT language=JavaScript>
<!--
var message="Copyright ©2008 Green Bear UK Ltd. All Rights Reserved.";
function clickIE() {if (document.all) {(message);return false;}}
function clickNS(e) {if
(document.layers||(document.getElementById&&!docum ent.all)){
if (e.which==2||e.which==3) {(message);return false;}}}
if (document.layers)
{document.captureEvents(Event.MOUSEDOWN);document. onmousedown=clickNS;}
else{document.onmouseup=clickNS;document.oncontext menu=clickIE;}
document.oncontextmenu=new Function("return false")
function noclic(clic) {
var msg="Copyright ©2008 Green Bear UK Ltd. All Rights Reserved.";
if (navigator.appName == 'Netscape' && clic.which==3) {
alert(msg);
return false;}
else
if (navigator.appName == 'Microsoft Internet Explorer' && event.button==2) {
alert(msg);
return false;
}
return true;
}
if (document.layers) {
document.captureEvents(Event.MOUSEDOWN);
}
document.onmousedown = noclic;
// -->
</SCRIPT>
<script>function disableselect(e){
return false
}
function reEnable(){
return true
}
//if IE4+
document.onselectstart=new Function ("return false")
//if NS6
if (window.sidebar){
document.onmousedown=disableselect
document.onclick=reEnable
}
</script>
Lifted from your site and it now works, will compare the code and see what the difference was...... hummm odd!
Thanks mikeyred. This is an improvement on our previous script, though I can't get it to work on the images either, and have used Mike's idea of both scripts until I have time to work out why it won't work.
Petad,
If you use the script in the last post, that I lifted from Green Bear's website, it should work, I think in the original posted script at the start of this thread there is a character or something missing.
The following code works, edit the copyright notices to your company name;
<SCRIPT language=JavaScript>
<!--
var message="Copyright ©2008 Green Bear UK Ltd. All Rights Reserved.";
function clickIE() {if (document.all) {(message);return false;}}
function clickNS(e) {if
(document.layers||(document.getElementById&&!docum ent.all)){
if (e.which==2||e.which==3) {(message);return false;}}}
if (document.layers)
{document.captureEvents(Event.MOUSEDOWN);document. onmousedown=clickNS;}
else{document.onmouseup=clickNS;document.oncontext menu=clickIE;}
document.oncontextmenu=new Function("return false")
function noclic(clic) {
var msg="Copyright ©2008 Green Bear UK Ltd. All Rights Reserved.";
if (navigator.appName == 'Netscape' && clic.which==3) {
alert(msg);
return false;}
else
if (navigator.appName == 'Microsoft Internet Explorer' && event.button==2) {
alert(msg);
return false;
}
return true;
}
if (document.layers) {
document.captureEvents(Event.MOUSEDOWN);
}
document.onmousedown = noclic;
// -->
</SCRIPT>
<script>function disableselect(e){
return false
}
function reEnable(){
return true
}
//if IE4+
document.onselectstart=new Function ("return false")
//if NS6
if (window.sidebar){
document.onmousedown=disableselect
document.onclick=reEnable
}
</script>
Thanks LeonardsGifts. I saw you post and did try that, but it still doesn't work...
That's right.
Using both scripts does give the best of both worlds, so I'm not worried about it at the moment.
Anyway, what's to stop someone taking a screen dump, then cropping out the image they want using Photshop or similar? Not that I've ever done it myself...
Where are you putting the code, it should go in;
site - template manager - [your current template]
site - Head Section (Developers)
Are you putting it in the "Header" section instead?
There are currently 1 users browsing this thread. (0 members and 1 guests)