Security and privacy

How to block printing of my html pages

This discussion has been locked because a year has elapsed since the last post. Please start a new discussion topic.
Picture of jason steer
How to block printing of my html pages

Hi All,

I would like to know how i can go about stopping people from printing the html pages i have constrcuted within moodle.

I know people can still take screen shots etc, but all i want to do is make it more difficult.

i get the impression that i need to creat a one line stylesheet named print.css that says:

body { display:none; }

then load that style sheet as a print stylesheet:

and then by adding some code in the body of my html page i can make the body of my page blank to printing.

but i dont know how to do this.

can anyone help?


Average of ratings: -