Click here to Skip to main content
14,978,898 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
My client wants the website to be copy protected. I have already disabled copy and paste, and print using javascript.

Now my client wants to disable the Save as menu in FILE. I know that the page will get cached in the user's Temporary Internet Files.

But want to make then "ordinary" users hard to get data.

Is there any way to track the "Save As" menu event?

Is there any way to encrypt the page, so that when the user download the page he can only view encrypted content?

I'm waiting for the reply !!!!!!!!!!!!
Updated 29-Nov-18 6:54am
bluesathish 19-Apr-14 0:37am
Is my solution 3 meets your requirements?

A Web site content cannot be copy protected in principle. If some content is viewed on client site, it means it already have been downloaded, period.

"Save As…" functionality and its availability is not the functionality controlled by a Web site, this is an action of a sole discretion of each particular browser; moreover, if any particular browser would even permitted disabling of this function, no one would use it; such limitation would violate some most basic user rights.

Even of some browser limits downloading, the content can be downloaded by software any average qualified developer can create.

From the other hand, you can perfectly protect any detail of implementation (algorithms, data, data structures) if you implement it all on the server side. No one can access server-side implementation. More exactly, this become a matter of security of the host running an HTTP server.

bluesathish 17-Apr-14 6:41am
Hi SA, there is a solution for this questioner! we can use the javascript to disable the menus. Check my solution.
Sergey Alexandrovich Kryukov 17-Apr-14 13:01pm
No, not at all. Please see my comment to your answer.
Kornfeld Eliyahu Peter 17-Apr-14 13:43pm
Can't agree tempering with the container of the web page you violate basic user rights...
Kornfeld Eliyahu Peter 17-Apr-14 13:43pm
A +5 of course...
Sergey Alexandrovich Kryukov 17-Apr-14 13:49pm
Thank you, Peter.
(Excuse me, did I called you by name correctly, or should I address you as "Kornfeld", or in some other appropriate way?)
Kornfeld Eliyahu Peter 17-Apr-14 13:54pm
Peter is just perfect! Everyone calls me that way, except my mum :-)
Sergey Alexandrovich Kryukov 17-Apr-14 13:57pm
Aha. Great, thank you. :-)
Load the content you don't want to be saved via AJAX.
If you want to prevent saving all page,
simply load all the content inside via an ajax call after the DOM is loaded.
When the user save the page, all the content loaded via ajax will be not saved.
I hope the concept is clear.
From website you cant disable Browser's basic funtionality.
If you required the same funtionality I would suggest to display your content in a new window and disable everything there.

Sergey Alexandrovich Kryukov 17-Apr-14 13:02pm
Not a solution, by the reasons I explained in Solution 1 and my comments to Solution 3.
Dear Pugal,

Use the following scripts in your page and pass the neccessary url in this script

<script type="text/javascript">
    // Popup window code
    function newPopup(url) {
        popupWindow =, 'popUpWindow', 'height=300,width=500,left=200,top=200,resizable=yes,scrollbars=yes,toolbar=no,menubar=no,location=no,directories=no,status=yes')
bluesathish 17-Apr-14 6:51am
Its working well in IE, you need to check for the rest of the browsers.
Sergey Alexandrovich Kryukov 17-Apr-14 13:01pm
It's possible, but it won't solve the problem. It won't protect the site content from copying. Actually, your trick won't even make it much harder. This is a false solution.
Kornfeld Eliyahu Peter 17-Apr-14 13:44pm
Did you ever tried Ctrl+S or other hot-keys in such a pop-up?
bluesathish 19-Apr-14 0:40am
Yes, its restricts Ctrl+S in IE 7.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900