Is there a way to disable print/copy on a browser?

Juniper

Platinum Member
Nov 7, 2001
2,025
1
0
I am working on a web based application. I don't want people to print or copy. Can I achieve this in Javascript?
 

Barnaby W. Füi

Elite Member
Aug 14, 2001
12,343
0
0
You are sending the data directly to the person's computer, how could you ever hope to restrict them from it?
 

rainypickles

Senior member
Dec 7, 2001
724
0
0
Originally posted by: BingBongWongFooey
You are sending the data directly to the person's computer, how could you ever hope to restrict them from it?

with javascript, too.
 

Juniper

Platinum Member
Nov 7, 2001
2,025
1
0
Ok, is there any other way?

There must be some way to make the data viewable but unable to print/copy. Put print screen as an exception.


 

Barnaby W. Füi

Elite Member
Aug 14, 2001
12,343
0
0
Originally posted by: Juniper
Ok, is there any other way?

There must be some way to make the data viewable but unable to print/copy. Put print screen as an exception.

The data is RIGHT THERE. You can't let the person see it _and_ make them unable to use it for other than just looking at. Find a way to do it and I'll show you how to get around it in a few seconds.
 

MrChad

Lifer
Aug 22, 2001
13,507
3
81
You would need to have some sort of control over the way user's view data. You cannot add new restrictions on the way standard HTML is viewed over a standard web browser. You would need to develop your own proprietary data format along with a special browser plug-in (perhaps an applet) that allows the user to view (but not print or copy) that format. Of course, there's still the issue of print screen, but there's no way around that.

Incidentally, Microsoft is introducing digital rights management in Office 11, which will allow businesses to set up these types of restrictions.
 

chemos

Senior member
Sep 21, 2000
482
0
0
there are a few ways to do this, Juniper.

1) Use an existing secure browser application
2) Create your own secure browser app with MS' browser dev tools.
3) Open the browser in kiosk mode (I believe the flag for IE is -k for Kiosk mode)
4) Use a new window as the target for a link (it should open without menus)

Note that you would also want to disable right-clicking to keep them from doing it that way. You can do this using javascript. Good luck!
 

TheCorm

Diamond Member
Nov 5, 2000
4,326
0
0
I have seen sites that stop you from being able to right click so you cannot save and what not but I am not sure whether it stops you from printing as well.

BUT...if there is something on that page that a fairly computer savvy person wants, they are gonna get it...I simply use screen capture in MGI Photosuite...and voila....it's a very difficult thing to prevent.

Jamie
 

ugh

Platinum Member
Feb 6, 2000
2,563
0
0
Perhaps you can write a Java applet and put whatever you need to display in it. By doing so, you *may* have more control on how you can manipulate the data inside. I believe my friend did something like this a while ago. He wrote an applet which somehow disallowed any printing of the images displayed on the applet.
 

Juniper

Platinum Member
Nov 7, 2001
2,025
1
0
thanks guys.

i understand that there are always work arounds to copy data. I just needed to know if it was possible to only disable the copy function and the print function of a browser. I guess i was not clear in my plea. hehe..



 

DurocShark

Lifer
Apr 18, 2001
15,708
5
56
Originally posted by: ugh
Perhaps you can write a Java applet and put whatever you need to display in it. By doing so, you *may* have more control on how you can manipulate the data inside. I believe my friend did something like this a while ago. He wrote an applet which somehow disallowed any printing of the images displayed on the applet.

 

Juniper

Platinum Member
Nov 7, 2001
2,025
1
0
Originally posted by: Mavrick007
What don't you want them to copy/print? The template, the code or both?

info on the webpage. basically i want to restrict people from printing or selecting and copying information onto their clipboard.

so i am looking for a way to disable the print/copy function of a browser.
 

stndn

Golden Member
Mar 10, 2001
1,886
0
0
if it's only text you're worried about, you can do this:
thisxlineqisanothcopy-able

then, you can put the bold texts as regular text
and use <font> tag to blend the gibberish (non-bold text in above example) with the background color
this way, they can still read it when they look at browser
yet if they try to copy/paste or print it, the gibberish (x q a h) will be included making the text not-so-readable

may be too much work, but who knows?

otherwise, you can use flash for the contents and go a bit further...
 

DaveSimmons

Elite Member
Aug 12, 2001
40,730
670
126
Originally posted by: Juniper
Originally posted by: Mavrick007
What don't you want them to copy/print? The template, the code or both?

info on the webpage. basically i want to restrict people from printing or selecting and copying information onto their clipboard.

so i am looking for a way to disable the print/copy function of a browser.
Is there any point to restricting printing as long as the print-screen button works? All they have to do is paste into Paint and print from that, though it will be at screen resolution (< 100 dpi) instead of 300+ dpi printer resolution.

Javascript should let you define a replacement for right-click and you can spawn a menuless window, though even then I think they can still use the mouse to highlight and control-C to copy.

 

joinT

Lifer
Jan 19, 2001
11,172
0
0
you can do this in a PDF document. My boss downloaded one & asked for my help because he couldn't print. Turned out I couldn't copy the text either. Had to take a screenie to print it.

edit. nm - didn't read close enough. not possible for an app
 
sale-70-410-exam    | Exam-200-125-pdf    | we-sale-70-410-exam    | hot-sale-70-410-exam    | Latest-exam-700-603-Dumps    | Dumps-98-363-exams-date    | Certs-200-125-date    | Dumps-300-075-exams-date    | hot-sale-book-C8010-726-book    | Hot-Sale-200-310-Exam    | Exam-Description-200-310-dumps?    | hot-sale-book-200-125-book    | Latest-Updated-300-209-Exam    | Dumps-210-260-exams-date    | Download-200-125-Exam-PDF    | Exam-Description-300-101-dumps    | Certs-300-101-date    | Hot-Sale-300-075-Exam    | Latest-exam-200-125-Dumps    | Exam-Description-200-125-dumps    | Latest-Updated-300-075-Exam    | hot-sale-book-210-260-book    | Dumps-200-901-exams-date    | Certs-200-901-date    | Latest-exam-1Z0-062-Dumps    | Hot-Sale-1Z0-062-Exam    | Certs-CSSLP-date    | 100%-Pass-70-383-Exams    | Latest-JN0-360-real-exam-questions    | 100%-Pass-4A0-100-Real-Exam-Questions    | Dumps-300-135-exams-date    | Passed-200-105-Tech-Exams    | Latest-Updated-200-310-Exam    | Download-300-070-Exam-PDF    | Hot-Sale-JN0-360-Exam    | 100%-Pass-JN0-360-Exams    | 100%-Pass-JN0-360-Real-Exam-Questions    | Dumps-JN0-360-exams-date    | Exam-Description-1Z0-876-dumps    | Latest-exam-1Z0-876-Dumps    | Dumps-HPE0-Y53-exams-date    | 2017-Latest-HPE0-Y53-Exam    | 100%-Pass-HPE0-Y53-Real-Exam-Questions    | Pass-4A0-100-Exam    | Latest-4A0-100-Questions    | Dumps-98-365-exams-date    | 2017-Latest-98-365-Exam    | 100%-Pass-VCS-254-Exams    | 2017-Latest-VCS-273-Exam    | Dumps-200-355-exams-date    | 2017-Latest-300-320-Exam    | Pass-300-101-Exam    | 100%-Pass-300-115-Exams    |
http://www.portvapes.co.uk/    | http://www.portvapes.co.uk/    |