This topic is locked

Able To Disable Printing & Copying Of Data?

4/17/2013 9:14:41 PM
PHPRunner General questions
P
phpcmk author

Hi,
Can anyone kindly advise is it possible that phprunner can disable printing and copying of data?
Printing

Understand that phprunner itself can un-tick "Printer-friendly" under Pages. But is it possible, if user try to go to the browser > File > Print..., the data will not be printed?
Copying

Is it possible if user try Ctrl+C or right click copy, the data will not be copied?
Thanks in advance.

Sergey Kornilov admin 4/18/2013

Either is not possible. Once page is loaded in users browser they can do whatever they want with that page.

P
phpcmk author 5/21/2013

Hi,
I have created a simple php file and tested the following codes. I found out that if I tried to print, it will be a blank page. Also if I tried to select the content, I am not able to do so thus I am not able to do a copy.
Not sure would it be possible to implement in phprunner?
Printing:
Create a css file with the following code -

body { display: none; }


Then on the php file include the following code -

<head>

<link rel="stylesheet" type="text/css" href="print.css" media="print" />

</head>


Copying:
In the php file include the following code -

<body onselectstart="return false">
Sergey Kornilov admin 5/21/2013

You can apply your changes right in Visual Editor, switching to HTML mode.
Any experienced user will be able to work this around very easy.
An inexperienced ones will simply take a screenshot of the page and print it.