Avoid copy paste Web content

Posted on 2006-06-05
Last Modified: 2013-11-19
Hi experts, how can I protect the content of my Web Site, avoiding the copy-paste action on my pictures and text like it happen with Flash content

Question by:mnateras
    LVL 49

    Expert Comment

    Don't put them on the web.

    Kind regards

    LVL 13

    Expert Comment

    Nice, to the point comment Roonan :-)

    >> mnateras, Flash is the only thing I know of where you can prevent download of content.  I use it on some of my sites, but I'm sure it might not be 100% hacker proof.
    LVL 6

    Expert Comment

    If visitors can see it or hear it, then somebody will find a way to copy it.  The best you can hope to do is slow them down.

    If you are looking to slow them down, here's an example of how to disable the right-click context menu:

    <head>Your page title</head>
    <body oncontextmenu="return false;">
        Your content goes here.

    Author Comment

    Ok, let me give an example

    the right click of the mouse, doesn't show the contextual menu.

    How can you program that?

    LVL 10

    Accepted Solution

    That can be easily defeated by putting a javascript call in the address bar on most browsers.  They're right that there's really no way to prevent this.  You may want to use a flash or java viewer for your content to limit the browser's capability of doing this.  And note that browsers like Opera will always be able to copy and paste any text that's directly rendered as html on a page because their context menu isn't confined to the page and works outside of it.  Look for an alternate means of display if it's something you really want to protect.  And if you have any doubts about what I'm saying, install Opera and view that page.  The context menu pops right up as it always will.  Other browsers will likely adapt the same concept in the future.  I've even seen better methods than what that page uses where people went to tremendous effort to try to avoid it and Opera was still able to do it without even slowing down.

    Author Comment

    Thanks, good answer

    Featured Post

    Why You Should Analyze Threat Actor TTPs

    After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

    Join & Write a Comment

    Author Note: Since this E-E article was originally written, years ago, formal testing has come into common use in the world of PHP.  PHPUnit ( and similar technologies have enjoyed wide adoption, making it possib…
    Why do we like using grid based layouts in website design? Let's look at the live examples of websites and compare them to grid based WordPress themes.
    This tutorial demonstrates how to identify and create boundary or building outlines in Google Maps. In this example, I outline the boundaries of an enclosed skatepark within a community park.  Login to your Google Account, then  Google for "Google M…
    The viewer will learn how to dynamically set the form action using jQuery.

    728 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    19 Experts available now in Live!

    Get 1:1 Help Now