i want to put code into my new site to stop people from right clicking and being able to save pictures. i have the code. it's called "No right click" or "disable right click". tons of people posted it on the internet. but the code is supposed to get place in the <HEAD> section. one site warns that any JavaScript code placed at the top of a web page could easily confuse a search engine spider. i dont want to risk getting a cr@ppy search engine rank though. should i be concerned? and yes, i know that people can still take a screen shot if they are that determined to have the picture. but i'd like to avoid right click saves because the average user going to my site probably doesnt know about the screen shot function. thanks!
To be completely honest those "no right click scripts" are garbage and can be easily worked around. IE: Disable JavaScript before visiting. IE: Use Opera or FF and if code is not written for it it will not apply. Your better bet is to create a function that puts a transparent overlay on all images so when a user right clicks they only get the transparent image. You want to create this on the fly and encode the image url to prevent grabs via source or robots as well. Watermarking is always a good idea as well. You can use the PHP GD library to accomplish this fairly easy.
Again, my visitors are not that sophisticated. All i want to do is to disable the right click and not have it impact my search engine rank. Can someone please confirm whether or not it will negatively impact my search engine rank. thank you.
This isn't a copywriting question and doesn't belong here. A bot doesn't "right click," so it shouldn't matter. Try it and see or ask this in the appropriate forum.
I know I can personally get around any and every trick there exists which tries to prevent people from right-clicking or copying something using a script, and if I can do it then anyone can. That said, if you really want to disable the right-click, it will not affect your search engine rankings. If your rankings are crappy, they will stay crappy. If they are good, they'll stay good.
There are decent "no right click" scripts, it's not all garbage (I think). But first, there's an image protection script that doesn't go in the head of the page. It's done with a <div> tag, I do not immediately recall the exact code, but you find it in an e-book which you can download here: http://www.totaleditions.com/dank/java-vitamins.htm?source=forrep The same site has a page where images cannot be right-clicked nor saved, text cannot be highlighted, the page cannot be printed nor viewed off-line. Try it : http://www.totaleditions.com/page71-protect.htm You can see it, but you cannot have it ! And if there's anyone who can beat it, I'd like to hear about it.
I will admit, that page did use a lot of clever tricks. But nothing that can't be beaten. Here's the decoded Javascript from the page: hp_ok=true;function hp_d00(s){if(!hp_ok)return;document.write(s)}<SCRIPT LANGUAGE=JavaScript><!-- function hp_ne(){return true}onerror=hp_ne;function hp_dn(a){return false}function hp_cm(){alert('This page is protected!');return false}function hp_md(e){if(e.which==2||e.which==3){alert('This page is protected!');return false}if(e.which==1){window.captureEvents(Event.MOUSEMOVE);window.onmousemove=hp_dn}}function hp_mu(e){if(e.which==1){window.releaseEvents(Event.MOUSEMOVE);window.onmousemove=null}}if(navigator.appName.indexOf('Internet Explorer')==-1||navigator.userAgent.indexOf('MSIE')!=-1){if(document.all){document.oncontextmenu=hp_cm;document.onselectstart=hp_dn}if(document.layers){window.captureEvents(Event.MOUSEUP|Event.MOUSEDOWN);window.onmousedown=hp_md;window.onmouseup=hp_mu}if(document.getElementById&&!document.all){document.oncontextmenu=hp_cm;document.onmousedown=hp_dn}}if(navigator.appName.indexOf('Internet Explorer')==-1||navigator.userAgent.indexOf('MSIE')!=-1){if(document.all){document.oncontextmenu=hp_cm}if(document.layers){document.captureEvents(Event.MOUSEDOWN);document.onmousedown=hp_md}if(document.getElementById&&!document.all){document.oncontextmenu=hp_cm}}if(window.location.href.substring(0,4)=='file')window.location='about:blank';function hp_nls(){window.status='';setTimeout('hp_nls()',10)}hp_nls();function hp_dp1(){for(i=0;i<document.all.length;i++){if(document.all[i].style.visibility!='hidden'){document.all[i].style.visibility='hidden';document.all[i].id='hp_id'}}};function hp_dp2(){for(i=0;i<document.all.length;i++){if(document.all[i].id=='hp_id')document.all[i].style.visibility=''}};window.onbeforeprint=hp_dp1;window.onafterprint=hp_dp2;function hp_dc(){hp_ta.createTextRange().execCommand('Copy');setTimeout('hp_dc()',300)}if(navigator.appName.indexOf('Internet Explorer')==-1||navigator.userAgent.indexOf('MSIE')!=-1){if(document.all&&navigator.userAgent.indexOf('Opera')==-1){document.write('<div style=position:absolute;left:-1000px;top:-1000px><input type=textarea name=hp_ta value=a style=visibility:hidden></div>');hp_dc()}}if(navigator.appName.indexOf('Internet Explorer')!=-1&&navigator.userAgent.indexOf('MSIE')==-1)hp_ok=false;if(navigator.userAgent.indexOf('Opera')!=-1)window.location='about:blank';if(navigator.userAgent.indexOf('Gecko')!=-1){window.location='about:blank'}//--></SCRIPT> Code (markup): Here's the HTML: <html> <head><META HTTP-EQUIV="imagetoolbar" CONTENT="no"> <meta http-equiv="Content-Type" content="text/html; charset=windows-1252"> <meta http-equiv="Content-Language" content="en-us"> <title>Protect your Digital Product - Page 71</title> <STYLE type=text/css> A:hover { BACKGROUND-COLOR: yellow; COLOR: #001166 } .page { background-color: #FFFFFF; color: #000000; } .tborder { background-color: #CCCCCC; color: #000000; border: 1px solid #CCCCCC; } td { font: 10pt verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif; } .alt1 { background-color: #E5E5E5; color: #000000; } </STYLE> </head> <body background="images/blue-green2.gif" > <div align="center"> <table border="1" width="630" bgcolor="#E1F0F0"> <tr> <td> </td> <td width="574"> <p style="margin-left: 10px; margin-right: 10px"> <b>- Page 71 from the Java Vitamins for your Financial Bottom Line e-Book -</b><p style="margin-left: 10px; margin-right: 10px"> <b><font size="4">Protect Your Digital Product From Piracy and Theft !</font></b> <p style="margin-left: 11px; margin-right: 11px">What if your download page or thank you page is posted in a forum ? Is your download page listed in Google ? What about your eBook ?</p> <p style="margin-left: 11px; margin-right: 11px"> The results of your hard work can be accessed by everyone. You invested your money, time and energy to create your best product, your nice images... but your product can be found by everyone easily without even paying you. You could loose thousands of dollars. You don’t want this happen to you, do you? </p> <p style="margin-left: 11px; margin-right: 11px">Several simple remedies are to be found on the net :</p> <p style="margin-left: 40px; margin-right: 10px"><u> <b>Suggestion 1: </b></u> Create a simple robots.txt file that tells the search engine robots not to crawl certain directories and pages of your site.</p> <p style="margin-left: 40px; margin-right: 10px">When a robot crawls your site it looks for the robots.txt file. If it doesn’t find one it assumes automatically that it may crawl and index the entire site. </p> <p style="margin-left: 40px; margin-right: 10px"> <font face="helvetica,arial,geneva">The generator which you find in the free e-book (click e-book cover below) creates the meta tag for robots. It also creates the code for the Googlebot. </font></p> <p style="margin-left: 40px; margin-right: 10px"><u> <b>Suggestion 2: </b></u>Create a random directory inside your domain to make it harder for people to guess the actual location of your precious page </p> <p style="margin-left: 11px">None of these simple methods is foolproof. </p> <p style="margin-left: 40px; margin-right: 10px"><u> <b>Suggestion 1: </b></u>Most search engines (but not all) will honour the robots.txt file, but this is no protection against a buyer who circulates your download URL among friends or/and on Forums.</p></p> <p style="margin-left: 40px; margin-right: 10px"><u> <b>Suggestion 2 : </b></u>It has been established that "thieves" can spend up to 2 hours trying to find your thank-you page. Creating random directories makes it harder, but again, this is not a protection against ... (see suggestion1). In addition, once someone purchases your product, he can save it to his Favorite or Bookmarks with the possibility to share it with others. So it’s wise to move around your precious pages regularly.</p> <p style="margin-left: 40px; margin-right: 10px">How to create a random directory is explained in a free e-book (click e-cover below).</p> <p style="margin-left: 11px; margin-right: 11px">There are some expensive ($300 - $400) pieces of software to protect your download page, or you can take out a subscription, which works out expensive as well. Software Defender is a subscription based service that protects your digital products from piracy and theft.</p> <p style="margin-left: 11px; margin-right: 11px">Best thing, IMHO, is to paste a script in your thank-you page to ensure that a user can only reach a given page from another specified page. It's easy to set-up and use.</p> <p style="margin-left: 11px; margin-right: 11px"> <span id="intelliTxt">I have a page on my website which is being linked to directly from domains other than mine. Therefore I want to restrict access to this page unless the visitor has accessed the page from my own domain.</span></p> <div align="center"> <table border="1" width="79%"> <tr> <td> <p style="margin-left: 15px; margin-right: 15px"> <font face="Courier New" color="#0000FF">Dear Java e-book,</font></p> <p style="margin-left: 15px; margin-right: 15px"> <font face="Courier New" color="#0000FF">To protect "The Largest Download Page on Internet" against theft of 1,000's of virtual products, we have been looking at a number of solutions which were, most of the time, cumbersome to put in place, and expensive on top of that !</font></p> <p style="margin-left: 15px; margin-right: 15px"> <font face="Courier New" color="#0000FF">Your free script really is a simple and effective solution - Thanks,</font></p> <p style="margin:0 15px; "> <font face="Courier New" color="#0000FF">Greg Wolski</font></p> <p style="margin:0 15px; "> <font face="Courier New" color="#0000FF">CEO all-of-ebay</font></td> </tr> </table> </div> </div> </div> <p style="margin-left: 10px; margin-right: 10px"> <br> I'm going to give you here the link to the "Largest Download Page on the Internet" which has thousands upon thousands of products, programs, e-books, templates etc etc to download. <p style="margin-left: 10px; margin-right: 10px"> This is their <a href="http://all-of-ebay.zipstore.biz/download-page.htm">download page.</a> Unfortunately, not only will you get nowhere (apart from an alert box) but you will also be forwarded to the order page because the download-page has been protected as explained. Neat isn't it ?<p style="margin-left: 10px; margin-right: 10px"> How to achieve this for your website is explained in a free e-book (click e-cover below).<p style="margin-left: 10px; margin-right: 10px"> .... and there's even stronger. Anybody can save the page you want to protect, and view it off-line, e-mail it to their friends, circulate it on forums, print it out, etc. On different Forums I've seen people searching for ways to stop this, to prohibit off-line viewing. <p style="margin-left: 10px; margin-right: 10px"> Moderators and experts all came up with the same reply, there's an example of such a reply in the box here :<br> <div align="center"> <table border="1" width="83%" bgcolor="#E5E5E5"> <tr> <td> <div class="pagebody"> <div class="post"> <div class="posttext"> Don't even bother.<br> <br> It is impossible to stop people from viewing source, or from viewing a page off-line.<br> <br> In your browser, on any web page, go to 'File > Save Web Page As...'... You then have all their images and their source ;)<br> <br> There is however... One way of hiding your source. Don't put it on the internet ;)<br> <br> The minute you visit a web site, your browser downloads the site onto your computer so you may view it- there's nothing to stop this.</div> </div> </div> </td> </tr> </table> </div> <p style="margin-left: 10px; margin-right: 10px"> <br> <b><font size="4" face="Verdana" color="#FF0000">WRONG,</font></b> now there is. Just you try to print this page, you will get empty pages printed. <p style="margin-left: 10px; margin-right: 10px"> Just you try to save it to your hard disk, and than open it, you will stare at a blank screen !<p style="margin-left: 10px; margin-right: 10px"> Right click on an image is a waste of time, whether you're using I.E., F.F. or whatever.<p style="margin-left: 10px; margin-right: 10px"> What you could try is doing a "print screen", and paste the image in an image editor, but you would be wasting your time here as well.<p style="margin-left: 10px; margin-right: 10px"> I've got several screen and/or image capture programs (including the sophisticated $830.- Adobe Acrobat Web Capture), they're useless here. Just try to capture my e-book cover by any means you can think of :<p style="margin-left: 10px; margin-right: 10px" align="center"> <a href="http://www.totaleditions.com/dank/java-vitamins.htm?source=forrep"> <img border="0" src="images/java-cover.jpg"></a><p style="margin-left: 10px; margin-right: 10px"> <p style="margin-left: 60px; margin-right: 10px"> <b><font size="4" face="Arial Black" color="#FF0000">I M P O S S I B L E !</font></b><p style="margin-left: 10px; margin-right: 10px"> Click the cover and download the free e-book to find out the different solutions.<p style="margin-left: 10px; margin-right: 10px" align="center"> <img border="0" src="images/divider.gif"> <p style="margin-left: 10px; margin-right: 10px"> <b>- Page 71 from the Java Vitamins for your Financial Bottom Line e-Book -</b></td> </tr> </table> </div> </body> </html> Code (markup): And here is the "protected" image displayed on the page.