57 users online (0 members and 57 guests)  


Page 1 of 2 1 2 Last
  Results 1 to 15 of 17

Related

  1. How to rollver image to change block of text?    Forum: Javascript Forum
    Replies: 5
  2. Replies: 32
  3. Block elements within inline elements    Forum: CSS Forum
    Replies: 6
  1. #1
    Hybrid Millita's Avatar
    New User

    Status
    Offline
    Join Date
    May 2006
    Location
    Australia
    Posts
    21

    How to Block Copying

    hi, just wondering how to make it so visitors on your site cannot copy the text and how to stop them copying images, thanks.

  2. #2
    vinyl-junkie's Avatar
    Moderator

    Status
    Offline
    Join Date
    Sep 2005
    Posts
    721

    Re: How to Block Copying

    The short answer is: You can't.

    The longer answer: You can obfuscate your code to prevent them from copy/pasting your source code, but you're shooting yourself in the foot when you do that, as it will probably adversely affect your search engine ranking. Remember, the search engines read your code, not your web pages. If they can't read your code, they won't index your page.

    As for copying images, ditto on the short answer from above. The longer answer is that you can prevent what's called hotlinking; i.e., linking directly to your images from their site. Here is a good page which explains hotlinking and how to prevent it.
    Music Around The World - Collecting tips, trade
    and want lists, album reviews, & more

  3. #3
    Hybrid Millita's Avatar
    New User

    Status
    Offline
    Join Date
    May 2006
    Location
    Australia
    Posts
    21

    Re: How to Block Copying

    well i figured it out:
    <SCRIPT LANGUAGE="JavaScript">
    function breakout_of_frame()
    {
    if (top.location != location) {
    top.location.href = document.location.href ;
    }
    }
    function emoticon(text) {
    var txtarea = document.frmComments.txtComment;
    text = ' ' + text + ' ';
    if (txtarea.createTextRange && txtarea.caretPos) {
    var caretPos = txtarea.caretPos;
    caretPos.text = caretPos.text.charAt(caretPos.text.length - 1) == ' ' ? caretPos.text + text + ' ' : caretPos.text + text;
    txtarea.focus();
    } else {
    txtarea.value += text;
    txtarea.focus();
    }
    }
    am = "Right Click is Disabled ";
    // do not edit below this line
    // ===========================
    bV = parseInt(navigator.appVersion)
    bNS = navigator.appName=="Netscape"
    bIE = navigator.appName=="Microsoft Internet Explorer"

    function nrc(e) {
    if (bNS && e.which > 1){
    alert(am)
    return false
    } else if (bIE && (event.button >1)) {
    alert(am)
    return false;
    }
    }

    document.onmousedown = nrc;
    if (document.layers) window.captureEvents(Event.MOUSEDOWN);
    if (bNS && bV<5) window.onmousedown = nrc;
    </SCRIPT>
    sorry for ressurrecting an old thread but I thought it might help someone out...

  4. #4
    vinyl-junkie's Avatar
    Moderator

    Status
    Offline
    Join Date
    Sep 2005
    Posts
    721

    Re: How to Block Copying

    Quote Originally Posted by Hybrid Millita
    well i figured it out:
    (snip)
    Really?! Does this keep them from clicking the View button at the top of their browser and then clicking Source from the drop-down? Does it prevent them from getting the source from their browser's cache? There are many no-right-click scripts floating around the internet, but they solve only half the problem.
    Music Around The World - Collecting tips, trade
    and want lists, album reviews, & more

  5. #5
    DeadMeatGF's Avatar
    Moderator

    Status
    Offline
    Join Date
    Sep 2005
    Posts
    381

    Re: How to Block Copying

    Also, you can easily drag over the page to highlight and use the keyboard shortcut to copy it anyway.

  6. #6
    krak_d's Avatar
    Senior Member

    Status
    Offline
    Join Date
    Mar 2004
    Location
    Liverpool
    Posts
    166

    Re: How to Block Copying

    ...not to mention simply disabling javascript on your browser!

  7. #7
    Hybrid Millita's Avatar
    New User

    Status
    Offline
    Join Date
    May 2006
    Location
    Australia
    Posts
    21

    Re: How to Block Copying

    90% of internet users wouln't be bothered/know how to do any of that stuff. Good to know these forums are full of nice, encouraging people ?

  8. #8
    vinyl-junkie's Avatar
    Moderator

    Status
    Offline
    Join Date
    Sep 2005
    Posts
    721

    Re: How to Block Copying

    Quote Originally Posted by Hybrid Millita
    90% of internet users wouln't be bothered/know how to do any of that stuff. Good to know these forums are full of nice, encouraging people ?
    What's that supposed to mean? If I read this correctly, it seems like you'd rather be told what you want to hear than to be told the truth - that there is no foolproof way to block copying. If there were a foolproof way, you'd find the solution posted on thousands of websites, and wouldn't be asking how to do it.
    Music Around The World - Collecting tips, trade
    and want lists, album reviews, & more

  9. #9
    DeadMeatGF's Avatar
    Moderator

    Status
    Offline
    Join Date
    Sep 2005
    Posts
    381

    Re: How to Block Copying

    Quote Originally Posted by Hybrid Millita
    90% of internet users wouln't be bothered/know how to do any of that stuff. Good to know these forums are full of nice, encouraging people ?
    If we weren't nice & encouraging, you'd have got either no answer, or the short answers only

  10. #10
    Jentz's Avatar
    New User

    Status
    Offline
    Join Date
    Sep 2006
    Posts
    2

    Re: How to Block Copying

    I've encountered this problem. Well, we can disable right clicking and viewing the source code BUT we cannot disable PrintScreen from the keyboard of the user who would want to copy anything from our site....

  11. #11
    Office Angel's Avatar
    New User

    Status
    Offline
    Join Date
    Oct 2006
    Location
    USA
    Posts
    4

    Re: How to Block Copying

    You can block viewing, copying and reading of images and files using htaccess and it is a much better solution than blocking right clicking because many people use right click to open a link in a new tab or window and this can be very frustrating and cause a visitor to leave your site with a negative attitude.

    I have tested and used this method and successfully prevented reading the file in any browsers including by right clicking, by using the View menu or by attempting to save the file and my sites were indexed fine with search engines.

  12. #12
    jesterx's Avatar
    New User

    Status
    Offline
    Join Date
    Nov 2006
    Posts
    9

    Re: How to Block Copying

    yes some good points, but the right click thing is still good to use because its only the advanced interet users that know about view > soure
    but you still make some good points
    Last edited by HTML; 11-11-2006 at 07:53 PM.

  13. #13
    berkshire's Avatar
    New User

    Status
    Offline
    Join Date
    Nov 2006
    Posts
    2

    Re: How to Block Copying

    I can certainly relate to your desire to block people from infringing upon your images. Unfortunately, there is not a good method to do this on the web.

    I don't know what your application is, but the most common situation where this request arises is for photographers who want to sell their images. Most litgitimate customer want to view the raw image to make sure that it will work for their application. This makes it very difficult.

    You basically have a number of different solutions:

    1. You can show just a thumbnail image. When they click on the thumbnail, it displays the larger image with a watermark on the image, which basically spoils the image.

    2. Write a lot of code so that the user has to login to view regular sized images, and must pay to download the raw images, or be limited to the number of images they can download. Sort of like what webshots does.

    If your competitors are lifting the images and then posting them on their site, put your competitors in your .htaccess file.

    You can also put a hidden and/or exposed copyright notice on the image. Photoshop allows you to put in a hidden copyright notice. If you find a lifted image, you can then contact the website owner and demand that they take it down. If they refuse, go to the isp. Most isp will take down the site, once you show that the images are infringing upon your intellectual work.

    One final note: While copyright laws do exist, they are vitually worthless to individuals and small companies. They only serve large corporations. To fight them in Federal Court you need about $250k or more, and a whole lot of proof. It is a very steep uphill battle, that you will most likely lose. If you have some substantial intellectual work, you can file a form with the US PTO (United States Patent and Trade Office) for about $30. You get back a certificate from them claiming ownership to your owrk. This might help you scare off some infringers. Large corporate infringers will just laugh at your certificate, and bait you into suing them. Savvy infringers will bascially tell you to drop dead.

  14. #14
    simarc's Avatar
    New User

    Status
    Offline
    Join Date
    Dec 2006
    Posts
    4

    Re: How to Block Copying

    How do you block them from linking to your .jpg's, so that they don't suck up your bandwidth ? I have no problem with them copying stuff and using it. I just don't want to be their server.

  15. #15
    vinyl-junkie's Avatar
    Moderator

    Status
    Offline
    Join Date
    Sep 2005
    Posts
    721

    Re: How to Block Copying

    What you're talking about is preventing hotlinking. Assuming you're on a Linux server, use .htaccess. Here is an example:

    Code:
    RewriteCond %{HTTP_REFERER} !^$
    RewriteCond %{HTTP_REFERER} !^http://(www\.)?example.com(/)?.*$     [NC]
    RewriteRule .*\.(gif|jpg|jpeg|bmp)$ - [F,NC]
    For more information about .htaccess, see this page.
    Music Around The World - Collecting tips, trade
    and want lists, album reviews, & more



Page 1 of 2 1 2 Last

Tags for this Thread