Hi
eveyone can just a few Q
(1 can someone tale me if u can stop screen shot been taken of my web pages as this is a problem for me i need to stop that from happen.


(2 how can i stop the print srceen from working on my web pages

(3 can you ecripted a file for downloading but can"t print it off or share it a round for free this is my main goal.

open to any surrgustens thaks everone that helps
thanks dave


.

Dani AI

Generated

Short answer for : you cannot reliably stop visitors from taking screenshots or using Print Screen on a regular web page. Screenshot capture is controlled by the user’s device or external tools, not by the browser. So ’s “no” is essentially correct. ’s idea to hide content with JavaScript can confuse casual users, but it is easily bypassed (disable JS, use an external camera, different OS/browser behavior).

Practical mitigations (make copying harder, not impossible):

  • Strong access control and expiring URLs: require login, use short-lived tokens and no-cache headers so files are not permanently exposed.
  • Dynamic watermarking: render images or PDFs server-side with the viewer’s email/ID and timestamp baked in. It deters sharing and helps trace leaks (tools like ImageMagick can automate this).
  • Viewer-based delivery: show content through a controlled viewer (canvas tiles, image tiles, or a JavaScript viewer) instead of raw files. This increases friction but does not stop screenshots.
  • Document DRM / rights management: PDF flags and simple password protection are weak. For enforceable print/view restrictions use enterprise DRM/rights-management services (for example, Microsoft Azure Information Protection) rather than plain encryption.
  • Native-app options: if you control a native app, Android can block screenshots with FLAG_SECURE; browsers and iOS do not offer an equivalent reliable block.

For the Print Screen key and ordinary web pages there is no dependable browser API to block or intercept it (see the browser KeyboardEvent docs for limits). If the material is high value, combine technical measures (watermarks, auth, DRM) with legal protections and monitoring. References: KeyboardEvent on MDN, ImageMagick, Azure Information Protection, Android FLAG_SECURE.

Recommended Answers

All 2 Replies

no
no
sort of

um,
here's an untried theory:
I am not sure if print screen is one of those buttons that can be accessed via DOM or not, but, if it is, you can force a white screen on key down, which would make their snapshot just be a blank white.

But, of course they can turn off their javascripts.

What is with all of these questions that people have about protecting their stuff? It's simple... get a copyright, sue anyone who uses your stuff for financial gain.
Sage

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.