Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

please help :(


hellbound

Recommended Posts

Someone is copying ALL my shop contents (images and text) and is using it to make another shop, identicall to mine. This is very frustrating so I am looking for how can I block the mouse right button, to block downloads of images; yes they could paste text and I know there are more ways to take the images...but I hope this will make they 'work' harder :(

 

thanks.

Link to comment
Share on other sites

Someone is copying ALL my shop contents (images and text) and is using it to make another shop, identicall to mine. This is very frustrating...

 

This is also copyright infringement. Screw disabling the right mouse button and instead get yourself a lawyer.

"It's a damn poor mind that can only think of one way to spell a word."

-- Andrew Jackson

Link to comment
Share on other sites

but if they still want then all they have to do is just look in the source. I saw on web site that was completly unique. The person wrote a php script that showed no code in the source area other then specified information about the owner and copy right information. There was no rightl click and beleive it or no none of this was placed into frames. When i get home i will have to find this site to show....that is if i do get home today......

 

pm me if you are interested

 

honestly im not sure how it is completly done or how he did it but it is web proof of any copy right infringing

Link to comment
Share on other sites

<script language=JavaScript>

<!--

var message="";

function clickIE() {if (document.all) {(message);return false;}}

function clickNS(e) {if 

(document.layers||(document.getElementById&&!document.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.oncontextmenu=clickIE;}

// --> 

</script>

 

 

this is a code that you can use for no right click

 

 

to prevent image bar: (place in header of course)

 

<meta http-equiv="imagetoolbar" content="no">

Link to comment
Share on other sites

the image bar is for the use of Microsoft Internet Explorer (IE) 6.0. In IE it has a built in image bar which when you place your cursor over a image it will show a save, download and what ever else selections on it. This will disable people to have a image bar appear. With a disable right click script you can still grab images thanks to IE but with this code it will disable this and make it so that both are working together and make it so they cant grab the pictures with ease.

Link to comment
Share on other sites

the image bar is for the use of Microsoft Internet Explorer (IE) 6.0. In IE it has a built in image bar which when you place your cursor over a image it will show a save, download and what ever else selections on it. This will disable people to have a image bar appear. With a disable right click script you can still grab images thanks to IE but with this code it will disable this and make it so that both are working together and make it so they cant grab the pictures with ease.

 

ok!! now I understand it, cool. I am using both now. I have spend lots of hours and full nights doing images and putting object descriptions with text, and now...seeing that all my work was stolen... :( I cannot believe it. Hope now I can stay more 'secure'. The perfect thing would be to have the text protected too....but i cannot figure nothing to do it.

 

Really lots of thanks for all your help; if you want to see my web you got the link here: http://www.sportlander.com

 

Ops! Sorry for my bad english, spanish guy here :)

Link to comment
Share on other sites

here is your code:

 

<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">

<html dir="LTR" lang="en">

<head>

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> 

<title>Sportlander Nutrition S.L.</title>

<base href="http://www.sportlander.com/catalog/">

<link rel="stylesheet" type="text/css" href="stylesheet.css">

</head>

<body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0">

<!-- header //-->



<meta http-equiv="imagetoolbar" content="no">

 

 

 

here is what the code should look like:

 

<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">

<html dir="LTR" lang="en">

<head>

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> 

<meta http-equiv="imagetoolbar" content="no"> 

<title>Sportlander Nutrition S.L.</title>

<base href="http://www.sportlander.com/catalog/">

<link rel="stylesheet" type="text/css" href="stylesheet.css">

</head>

<body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0">

<!-- header //-->

 

just move your image tool bar script into the header area....this will prevent the tool bar to show up....but it has to be placed within the header area....i will go through my archive of protecting web sites and see if i can find one for high lighting text.

 

Steve

Link to comment
Share on other sites

Here is another script that you can use so that when people do right click they get a message:

 

<script language=JavaScript>

<!--



//Script supplied by Steven Pignataro...author unknown



var message="Replace me with copy right info!";



///////////////////////////////////

function clickIE4(){

if (event.button==2){

alert(message);

return false;

}

}



function clickNS4(e){

if (document.layers||document.getElementById&&!document.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>

 

 

 

 

or along with the main no right click you can perform a redirect to a modless window...meaning there are no toolbars or what so ever....although this is by chose and it is not recommended but feel free to play with the code:

 

<script>



//Supplied by Steven Pignataro...author unknown



function modelesswin(url,mwidth,mheight){

if (document.all&&window.print) //if ie5

eval('window.showModelessDialog(url,"","help:0;resizable:1;dialogWidth:'+mwidth+'px;dialogHeight:'+mheight+'px")')

else

eval('window.open(url,"","width='+mwidth+'px,height='+mheight+'px,resizable=1,scrollbars=1")')

}



//configure URL and window dimensions (width/height)

modelesswin("http://yahoo.com",600,600)



//To load via link, use something like below:

//<a href="javascript:modelesswin('http://yahoo.com',600,400)">Click here</a>

</script>

 

 

 

 

here is a no text select Script...works with IE4 on up and NetScrap 6 on up script:

 

<script language="JavaScript1.2">



//Provided by Steven Pignataro...author unknown



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>

 

 

 

And here is a code to encrypt your site information:

 

<html>

<head>

<title>Source Code Encrypter</title>

</head>

<script language=JavaScript>

<!--

//////////////////////////////////////////////////////////////////

// Source Code Encrypter v1.0 //

//////////////////////////////////////////////////////////////////

// //

// This JavaScript can be freely used as long as this message //

// stays here in the header of the script. Any modifications //

// and bugs found (and fixed) are appreciated. //

// Script submitted/featured on Dynamicdrive.com //

// Visit http://www.dynamicdrive.com for source code //

// Svetlin Staev, [email protected] //

// Provided by Steven Pignataro //

//////////////////////////////////////////////////////////////////



var i=0;

var ie=(document.all)?1:0;

var ns=(document.layers)?1:0;



function initStyleElements() /* Styles for Buttons Init */

{

var c = document.pad;

if (ie)

{

//c.text.style.backgroundColor="#DDDDDD";

c.compileIt.style.backgroundColor="#C0C0A8";

c.compileIt.style.cursor="hand";

c.select.style.backgroundColor="#C0C0A8";

c.select.style.cursor="hand";

c.view.style.backgroundColor="#C0C0A8";

c.view.style.cursor="hand";

c.retur.style.backgroundColor="#C0C0A8";

c.retur.style.cursor="hand";

c.clear.style.backgroundColor="#C0C0A8";

c.clear.style.cursor="hand";

}

else return;

}



/* Buttons Enlightment of "Compilation" panel */

function LightOn(what)

{

if (ie) what.style.backgroundColor = '#E0E0D0';

else return;

}

function FocusOn(what)

{

if (ie) what.style.backgroundColor = '#EBEBEB';

else return;

}

function LightOut(what)

{

if (ie) what.style.backgroundColor = '#C0C0A8';

else return;

}

function FocusOff(what)

{

if (ie) what.style.backgroundColor = '#DDDDDD';

else return;

}

/* Buttons Enlightment of "Compilation" panel */



function generate() /* Generation of "Compilation" */

{

code = document.pad.text.value;

if (code)

{

document.pad.text.value='Compiling...Please wait!';

setTimeout("compile()",1000);

}

else alert('First enter something to compile and then press CompileIt')

}

function compile() /* The "Compilation" */

{

document.pad.text.value='';

compilation=escape(code);

document.pad.text.value="<script>n<!--ndocument.write(unescape(""+compilation+""));n//-->n</script>";

i++;

if (i=1) alert("Page compiled 1 time!");

else alert("Page compiled "+i+" times!");

}

function selectCode() /* Selecting "Compilation" for Copying */

{

if(document.pad.text.value.length>0)

{

document.pad.text.focus();

document.pad.text.select();

}

else alert('Nothing for be selected!')

}

function preview() /* Preview for the "Compilation" */

{

if(document.pad.text.value.length>0)

{

pr=window.open("","Preview","scrollbars=1,menubar=1,status=1,width=700,height=320,left=50,top=110");

pr.document.write(document.pad.text.value);

}

else alert('Nothing for be previewed!')

}

function uncompile() /* Decompiling a "Compilation" */

{

if (document.pad.text.value.length>0)

{

source=unescape(document.pad.text.value);

document.pad.text.value=""+source+"";

}

else alert('You need compiled code to uncompile it!')

}

// -->

</script>

<body bgcolor=white topmargin=0 leftmargin=0 marginheight=0 marginwidth=0 onload=initStyleElements()>

<table border=0 width=100% cellspacing=0 cellpadding=0>

<tr>

<td width=100% height="23"></td>

</tr>

<tr>

<td width=100% height=23></td>

</tr>

<tr>

<td width=100%>



<!-- Compilation Panel -->

<form method=post name=pad align=center>

<textarea rows=11 name=text cols=58 style="background-color:#EBEBEB;width:95%"></textarea><br>

<input type=button value=Encrypt name=compileIt onClick=generate() onMouseOver=LightOn(this) onMouseOut=LightOut(this)>

<input type=button value=Select name=select onClick=selectCode() onMouseOver=LightOn(this) onMouseOut=LightOut(this)>

<input type=button value=Preview name=view onClick=preview() onMouseOver=LightOn(this) onMouseOut=LightOut(this)>

<input type=button value=Source name=retur onClick=uncompile() onMouseOver=LightOn(this) onMouseOut=LightOut(this)>

<input type=reset value=Clear name=clear onMouseOver=LightOn(this) onMouseOut=LightOut(this)>

</form>

<!-- Compilation Panel -->



</td>

</tr>

</table>

</body>

</html>

 

 

enjoy....anyquestion just contact me

Link to comment
Share on other sites

Here is another script that you can use so that when people do right click they get a message:

 

<script language=JavaScript>

<!--



//Script supplied by Steven Pignataro...author unknown



var message="Replace me with copy right info!";



///////////////////////////////////

function clickIE4(){

if (event.button==2){

alert(message);

return false;

}

}



function clickNS4(e){

if (document.layers||document.getElementById&&!document.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>

 

 

 

 

or along with the main no right click you can perform a redirect to a modless window...meaning there are no toolbars or what so ever....although this is by chose and it is not recommended but feel free to play with the code:

 

<script>



//Supplied by Steven Pignataro...author unknown



function modelesswin(url,mwidth,mheight){

if (document.all&&window.print) //if ie5

eval('window.showModelessDialog(url,"","help:0;resizable:1;dialogWidth:'+mwidth+'px;dialogHeight:'+mheight+'px")')

else

eval('window.open(url,"","width='+mwidth+'px,height='+mheight+'px,resizable=1,scrollbars=1")')

}



//configure URL and window dimensions (width/height)

modelesswin("http://yahoo.com",600,600)



//To load via link, use something like below:

//<a href="javascript:modelesswin('http://yahoo.com',600,400)">Click here</a>

</script>

 

 

 

 

here is a no text select Script...works with IE4 on up and NetScrap 6 on up script:

 

<script language="JavaScript1.2">



//Provided by Steven Pignataro...author unknown



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>

 

 

 

And here is a code to encrypt your site information:

 

<html>

<head>

<title>Source Code Encrypter</title>

</head>

<script language=JavaScript>

<!--

//////////////////////////////////////////////////////////////////

// Source Code Encrypter v1.0 //

//////////////////////////////////////////////////////////////////

// //

// This JavaScript can be freely used as long as this message //

// stays here in the header of the script. Any modifications //

// and bugs found (and fixed) are appreciated. //

// Script submitted/featured on Dynamicdrive.com //

// Visit http://www.dynamicdrive.com for source code //

// Svetlin Staev, [email protected] //

// Provided by Steven Pignataro //

//////////////////////////////////////////////////////////////////



var i=0;

var ie=(document.all)?1:0;

var ns=(document.layers)?1:0;



function initStyleElements() /* Styles for Buttons Init */

{

var c = document.pad;

if (ie)

{

//c.text.style.backgroundColor="#DDDDDD";

c.compileIt.style.backgroundColor="#C0C0A8";

c.compileIt.style.cursor="hand";

c.select.style.backgroundColor="#C0C0A8";

c.select.style.cursor="hand";

c.view.style.backgroundColor="#C0C0A8";

c.view.style.cursor="hand";

c.retur.style.backgroundColor="#C0C0A8";

c.retur.style.cursor="hand";

c.clear.style.backgroundColor="#C0C0A8";

c.clear.style.cursor="hand";

}

else return;

}



/* Buttons Enlightment of "Compilation" panel */

function LightOn(what)

{

if (ie) what.style.backgroundColor = '#E0E0D0';

else return;

}

function FocusOn(what)

{

if (ie) what.style.backgroundColor = '#EBEBEB';

else return;

}

function LightOut(what)

{

if (ie) what.style.backgroundColor = '#C0C0A8';

else return;

}

function FocusOff(what)

{

if (ie) what.style.backgroundColor = '#DDDDDD';

else return;

}

/* Buttons Enlightment of "Compilation" panel */



function generate() /* Generation of "Compilation" */

{

code = document.pad.text.value;

if (code)

{

document.pad.text.value='Compiling...Please wait!';

setTimeout("compile()",1000);

}

else alert('First enter something to compile and then press CompileIt')

}

function compile() /* The "Compilation" */

{

document.pad.text.value='';

compilation=escape(code);

document.pad.text.value="<script>n<!--ndocument.write(unescape(""+compilation+""));n//-->n</script>";

i++;

if (i=1) alert("Page compiled 1 time!");

else alert("Page compiled "+i+" times!");

}

function selectCode() /* Selecting "Compilation" for Copying */

{

if(document.pad.text.value.length>0)

{

document.pad.text.focus();

document.pad.text.select();

}

else alert('Nothing for be selected!')

}

function preview() /* Preview for the "Compilation" */

{

if(document.pad.text.value.length>0)

{

pr=window.open("","Preview","scrollbars=1,menubar=1,status=1,width=700,height=320,left=50,top=110");

pr.document.write(document.pad.text.value);

}

else alert('Nothing for be previewed!')

}

function uncompile() /* Decompiling a "Compilation" */

{

if (document.pad.text.value.length>0)

{

source=unescape(document.pad.text.value);

document.pad.text.value=""+source+"";

}

else alert('You need compiled code to uncompile it!')

}

// -->

</script>

<body bgcolor=white topmargin=0 leftmargin=0 marginheight=0 marginwidth=0 onload=initStyleElements()>

<table border=0 width=100% cellspacing=0 cellpadding=0>

<tr>

<td width=100% height="23"></td>

</tr>

<tr>

<td width=100% height=23></td>

</tr>

<tr>

<td width=100%>



<!-- Compilation Panel -->

<form method=post name=pad align=center>

<textarea rows=11 name=text cols=58 style="background-color:#EBEBEB;width:95%"></textarea><br>

<input type=button value=Encrypt name=compileIt onClick=generate() onMouseOver=LightOn(this) onMouseOut=LightOut(this)>

<input type=button value=Select name=select onClick=selectCode() onMouseOver=LightOn(this) onMouseOut=LightOut(this)>

<input type=button value=Preview name=view onClick=preview() onMouseOver=LightOn(this) onMouseOut=LightOut(this)>

<input type=button value=Source name=retur onClick=uncompile() onMouseOver=LightOn(this) onMouseOut=LightOut(this)>

<input type=reset value=Clear name=clear onMouseOver=LightOn(this) onMouseOut=LightOut(this)>

</form>

<!-- Compilation Panel -->



</td>

</tr>

</table>

</body>

</html>

 

 

enjoy....anyquestion just contact me

 

WOW! cool!

 

Now I've applyed it on my shop and its working perfect! I will play with that script for encrytion :)

 

one thing...it was possible to download images made by popup_image.php (when you seee a larger image of a product)..now its solved just entered the lines there too, and all was protected. :D

Link to comment
Share on other sites

Just remember not to rely on Javascript!!

 

All it takes is for someone to disable javascript on the browser end and all your hard work is thrown out the window :(

Mark Evans

osCommerce Monkey & Lead Guitarist for "Sparky + the Monkeys" (Album on sale in all good record shops)

 

---------------------------------------

Software is like sex: It's better when it's free. (Linus Torvalds)

Link to comment
Share on other sites

Just remember not to rely on Javascript!!

 

All it takes is for someone to disable javascript on the browser end and all your hard work is thrown out the window  :(

 

ops..thats true...but I am not sure if its possible do the same with php. :shock:

Link to comment
Share on other sites

Mark is right, disabling javascript will circumvent these hacks, there are some apache mod rewrite scripts to make image theft harder, but even these are no use if the hacker has a screen capture utility.

 

In the end as paul_c said , if some one is ripping off your copyrighted image, then sue them.

Trust me, I'm an Accountant.

Link to comment
Share on other sites

I must admit, I don't like sites that use the Right Click script. Plus, nothing can stop someone going to FILE and SAVE AS on Internet Explorer..

 

If someone has copied your graphics/design for a shop you will probably have a better chance of stopping it as it will probably have some business behind it and they are more accountable than some spud trying to make a quick buck....

Link to comment
Share on other sites

In the end as paul_c said , if some one is ripping off your copyrighted image, then sue them.

 

Product descriptions are copyrighted too ;)

"It's a damn poor mind that can only think of one way to spell a word."

-- Andrew Jackson

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...