Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to block a linux program from being print screened? [closed]

I need to prevent my users from print screening the data that my program displays. Right now the idea I have is to make it a full screen program, where probably calling any other linux shortcuts or applications is blocked, and the print screen key is blocked. Is this approach correct? How would I go about getting this done?

Update: My users are confined to not running a virtual machine, and they do not have cameras. They are also using the GNOME desktop environment.

Update: The systems are mine. I have just granted them temporary access, So the systems, or their operating systems will not be tampered with. They cannot plug in any USB devices, and the users are mostly quite unknowledgeable about linux.

like image 493
Khushman Patel Avatar asked Jul 23 '11 06:07

Khushman Patel


People also ask

How do I restrict a screenshot?

But if you only want to block it for normal android devices, the SECURE FLAG is substantial. 1) The secure flag does block both normal screenshot and video capture. Window flag: treat the content of the window as secure, preventing it from appearing in screenshots or from being viewed on non-secure displays.

Is there a way to disable screenshots?

How to Disable Screenshots feature on Android. STEP 01: Open the Ever Accountable app and click the "Settings" icon. STEP 02: Click "Turn Screenshots Off" under the "Device Settings" section. STEP 03: Toggle the Screenshots setting to the "off" position.

How can a website prevent screenshots?

Disabling 'Right Click' on Images One common method to prevent image theft is simply to disable your website visitors' ability to right/alt-click on images to prevent them from directly saving your images.

Can websites detect Snipping Tool?

A website can also know if you take a screenshot using the print screen button on your keyboard. However, if you use a program like the Snipping Tool, the website cannot tell you took one.


2 Answers

My approach would be to not use GNOME or any other multitasking window manager, but simply have your application be the only client of the X server in question. (Maybe together with a special windowmanager which puts the window in full screen, and logs out when the program is closed.)

Setup your X server so it does not accept any other connections, and/or deny your users the ability to start any other programs on your computer (e.g. no shell login).

like image 125
Paŭlo Ebermann Avatar answered Oct 07 '22 17:10

Paŭlo Ebermann


This is impossible. You cannot block 'screenshotting' from every level.

For example, even if you somehow disabled the key binding, blocked the gnome-screenshot utility, and so on, the user could still pipe the contents of the framebuffer device file to a file.

like image 43
Delan Azabani Avatar answered Oct 07 '22 17:10

Delan Azabani