<script language="JavaScript"> <!--
function click(e) {
if (document.all) {
if (event.button == 2) {
alert("please do not right-click");
return false;
}
}
if (document.layers) {
if (e.which == 3) {
alert("please do not right-click");
return false;
}
}
}
if (document.layers) {
document.captureEvents(Event.MOUSEDOWN);
}
document.onmousedown=click;
// --> </script>
nightwolf75 said:i suggest u guys and gals to password protect ur pics. i noticed that after the warning on sammyboy, the people there are threatening to replicate the pics here on another server to hotlink them.
mods, is there a way to prevent such things? :think:
r52lanc said:Why not disable 'right-click' for the CS Galleries? It is not perfect but helps a lot! There are ways around it, but most people won't bother.
Here is the code that I use in pbase. Just paste the code into the tech notes on the edit photo page. Also, you can use the tech notes batch update function.
Code:<script language="JavaScript"> <!-- function click(e) { if (document.all) { if (event.button == 2) { alert("please do not right-click"); return false; } } if (document.layers) { if (e.which == 3) { alert("please do not right-click"); return false; } } } if (document.layers) { document.captureEvents(Event.MOUSEDOWN); } document.onmousedown=click; // --> </script>
zorro18 said:Can this be done at the gallery level or every individual pics. The latter is quite tedious...
We will re-implement the Hotlinking Protection for the Gallery server sometime today.nightwolf75 said:i tried doing a test in the garbage area. dunno how to do it.
i second the suggestion to implement some form of protection at server level. can the mods pls consider?
Zplus said:Actually, you can make it hard for the leechers by chopping up your pics into small pieces and use code to rearrange them to display them.... example, divide your pics into 10 x 10 squares. Say your image is 600x400 pixels. You chop it into 100 pieces of 60x40 pixels and label them randomly! No way the leecher is gonna take the trouble to download 100 pieces and then link them together again. hahaha!
![]()
afiend said::thumbsup:
Brilliant method, feasible to implement with some coding.