No Right Click Function

Discussion in 'JavaScript' started by newdude, Feb 26, 2008.

  1. #1
    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!
     
    newdude, Feb 26, 2008 IP
  2. LittleJonSupportSite

    LittleJonSupportSite Peon

    Messages:
    386
    Likes Received:
    20
    Best Answers:
    0
    Trophy Points:
    0
    #2
    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.
     
    LittleJonSupportSite, Feb 26, 2008 IP
  3. newdude

    newdude Guest

    Messages:
    7
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    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.
     
    newdude, Feb 26, 2008 IP
  4. marketjunction

    marketjunction Well-Known Member

    Messages:
    3,779
    Likes Received:
    187
    Best Answers:
    0
    Trophy Points:
    183
    #4
    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.
     
    marketjunction, Feb 26, 2008 IP
  5. Fean0r

    Fean0r Peon

    Messages:
    15
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Yea can also just download sites using various programs, if a user can see it they can have it!
     
    Fean0r, Feb 26, 2008 IP
  6. vpguy

    vpguy Guest

    Messages:
    275
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #6
    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.
     
    vpguy, Feb 29, 2008 IP
  7. rvdc

    rvdc Peon

    Messages:
    1
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    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.
     
    rvdc, Feb 29, 2008 IP
  8. vpguy

    vpguy Guest

    Messages:
    275
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #8
    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>
       &nbsp;</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 ?&nbsp; Is your download page 
           listed in Google ?&nbsp; What about your eBook ?</p>
           <p style="margin-left: 11px; margin-right: 11px">
           The results of your hard work can be accessed by 
           everyone.&nbsp; You invested your 
           money, time and energy to create your best product, 
           your nice images...&nbsp; 
           but your product can be found by everyone easily 
           without even paying you.&nbsp; You could loose 
           thousands of dollars.&nbsp; 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>&nbsp; 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.&nbsp; If it doesn’t find one it assumes 
           automatically that it may crawl and index the entire 
           site.&nbsp; </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:&nbsp;&nbsp;&nbsp; </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.&nbsp;
           </p>
           <p style="margin-left: 40px; margin-right: 10px"><u>
           <b>Suggestion 1:&nbsp;&nbsp; </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 :&nbsp;&nbsp; </b></u>It has been established that 
           &quot;thieves&quot; can spend up to 2 hours trying to find 
           your thank-you page.&nbsp; Creating random 
           directories makes it harder,&nbsp; but again, this 
           is not a protection against ... (see suggestion1).&nbsp;&nbsp;&nbsp; In 
           addition, once someone purchases your product, he 
           can save it to his Favorite or Bookmarks with the 
           possibility to share it with others.&nbsp; 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.&nbsp;
       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,&nbsp; 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.&nbsp; 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.&nbsp; 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 &quot;The 
              Largest Download Page on Internet&quot; 
              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&nbsp; &quot;Largest 
       Download Page on the Internet&quot; which has thousands upon 
       thousands of products, programs, e-books, templates etc etc to 
       download.&nbsp; 
       <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>&nbsp; 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.&nbsp; 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.&nbsp; 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.&nbsp; On different Forums I've seen people searching for ways 
       to stop this, to prohibit off-line viewing.&nbsp; 
       <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>
       &nbsp;<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 &gt; Save Web Page As...'...&nbsp; 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>&nbsp; now there is.&nbsp; 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 &quot;print screen&quot;, 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.&nbsp; 
       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">
       &nbsp;<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&nbsp; !</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.

    java-cover.jpg
     
    vpguy, Feb 29, 2008 IP