What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

No—not reliably. JavaScript running in an ordinary web page cannot command a user’s browser, operating system, or device to disable screenshots or screen recording. You can reduce the amount of sensitive material a page exposes, watermark what it displays, or react to some changes in visibility. Those measures can limit the damage or discourage copying, but they cannot guarantee that displayed pixels will not be captured.

Why a website cannot reliably block screenshots

A web page runs inside a browser with limited authority. It can change its own content and appearance, but it does not control every way a user can copy what appears on screen. The browser, operating system, extensions, developer tools, another application, or a camera pointed at the display may all provide ways to capture or reproduce visible content.

Hiding a right-click menu, intercepting a keyboard shortcut, or covering a page after a suspected capture does not remove those other routes. A shortcut handler only sees certain input events delivered to the page; it cannot establish that no capture happened. A user may also capture a screen without sending the page any event at all.

Gumlet’s DRM documentation states that without DRM content encryption, screen-capture prevention is not possible in browsers on desktop and laptop operating systems. That is vendor guidance, not a browser-standard guarantee, but it describes the practical boundary for ordinary web pages: if arbitrary page content is rendered for a user, a site cannot make it impossible to copy.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
#1 Best Overall
Ailun Privacy Screen Protector iPhone 17e/16e/14/13/13 Pro, 2 Pack
  • [2 Pack] This product includes 2 pack privacy screen protectors.WORKS FOR iPhone 17e/16e/14/iPhone 13/13 Pro 6.1 Inch tempered glass screen protector.Featuring maximum protection from scratches, scrapes, and bumps.[Not for iPhone 16 6.1 inch, iPhone 13 mini 5.4 inch, iPhone 13 Pro Max/iPhone 14 Pro Max/iPhone 14 Plus 6.7 inch, iPhone 14 Pro 6.1 inch]
  • Specialty: to enhance compatibility with most cases, the Tempered glass does not cover the entire screen. HD ultra-clear rounded glass for iPhone 17e/16e/14/iPhone 13/13 Pro is 99.99% touch-screen accurate.
  • 99.99% High-definition clear hydrophobic and oleophobic screen coating protects against sweat and oil residue from fingerprints.
  • High Privacy: Keeps your personal, private, and sensitive information hidden from strangers,screen is only visible to persons directly in front of screen.Good choose when you are in the bus,elevator,metro or other public occasions.(Note: Due to this privacy cover will darken the image to prevent the peeking eyes near you, you might need to turn your device display brightness up a bit when use it.)
  • Online video installation instruction: Easiest Installation - removing dust and aligning it properly before actual installation,enjoy your screen as if it wasn't there.

Prevention and detection are different problems

Approach What it can do What it cannot establish
Browser-page JavaScript Change or remove the page’s own content; respond to events the browser exposes. Disable the operating system’s capture functions or reliably learn that a screenshot was taken.
Native Android window controls Request screenshot and non-secure-display restrictions for a native app window. Guarantee protection from every overlay or recording scenario.
Native iOS capture-state observation Let an app respond when the system reports that screen content is being captured, mirrored, or otherwise cloned. Turn off the device’s screenshot capability through a web page.
DRM for supported media Protect certain video playback paths, where the player and device support the necessary protection. Protect every HTML element, image, text node, or physical display from copying.

A detection signal is not prevention. Even when a native app receives a relevant signal, it may be able to pause playback or cover content only after capture has begun or when capture state changes. The signal also does not prove that no copy was made by another route.

What ordinary JavaScript can do—and the limits

React to tab visibility changes

The Page Visibility API lets a page learn when the document becomes hidden, such as when a user switches tabs or minimizes the browser. It does not report screenshot events. You can use it to pause a video or obscure a sensitive view when the page is no longer visible, but this is a privacy measure for a particular state change, not a screenshot block. A user can capture content while the page remains visible.

This small example pauses a video when the document becomes hidden and resumes it when visible. It assumes a video element with id="private-video"; remove the resume behavior if playback should require an explicit user action.

Rank #2
Sale
SMARTDEVIL 2 Pack Privacy Screen Protector for iPhone 17 Pro Max, Anti-Spy
  • Perfect Fit for iPhone 17 Pro Max:Engineered exclusively for iPhone 17 Pro Max with seamless edge-to-edge coverage, ensuring precise alignment and reliable full-screen protection.
  • Advanced Privacy Protection:Features a 28° privacy filter with smooth 2.5D curved edges, preventing side glances in public. Your screen remains visible only to you—ideal for commuting, traveling, and crowded environments.
  • Effortless Installation:Equipped with an auto dust-elimination tool that delivers a fast, accurate, and bubble-free application, keeping your screen perfectly clear with minimal effort.
  • Military-Grade Protection:Made of nano-reinforced 9H tempered glass, SGS certified. Provides 5X stronger scratch resistance and proven durability, withstanding thousands of pressure and impact tests.
  • Smudge & Fingerprint Resistant:Hydrophobic and oleophobic coating repels fingerprints, sweat, and oil—ensuring your screen stays clean, clear, and smooth to the touch.
<video id="private-video" controls src="/media/private-video.mp4"></video>
<script>
  const video = document.getElementById('private-video');

  document.addEventListener('visibilitychange', () => {
    if (document.hidden) {
      video.pause();
    } else {
      video.play().catch(() => {
        // Playback may require a user gesture or be blocked by browser policy.
      });
    }
  });
</script>

Test this behavior across the browsers and devices you support. Autoplay and playback policies vary, and the example does not remove previously rendered frames, prevent a separate capture process, or protect content already delivered to the browser.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Do not treat key handling as a security control

A page can listen for keyboard events, but blocking a key combination does not reliably detect or stop screenshots. The browser or operating system may handle a key before the page sees it; capture may use a different shortcut, a system control, an extension, or another device. Preventing selection, context menus, or printing also does not prevent a screenshot. These techniques can inconvenience users and assistive technologies without creating a dependable security boundary.

What Android and Apple platforms expose to native apps

Android: FLAG_SECURE and screenshot-event detection

Android Developers describe FLAG_SECURE as a window flag that tells Android not to allow screenshots or display the window view on a non-secure display, such as casting; a resulting screenshot is blank. This is a native activity/window control, not a JavaScript API available to an ordinary website in a browser tab.

Rank #3
Ailun Privacy Screen Protector for iPhone 16 / iPhone 15 / iPhone 15 Pro
  • [3 Pack] This product includes 3 pack privacy screen protectors.WORKS FOR iPhone 16/iPhone 15/iPhone 15 Pro 6.1 Inch tempered glass screen protector. Due to the rounded edge design of the iPhone 16/iPhone 15/iPhone 15 Pro and to enhance compatibility with most cases,the tempered glass screen protectors will be slightly smaller than the phone screen.[Not for iPhone 16e 6.1 inch, iPhone 15 Plus/iPhone 15 Pro Max/iPhone 16 Plus 6.7 inch,iPhone 16 Pro 6.3 inch,iPhone 16 Pro Max 6.9 inch]
  • Specialty: HD rounded glass for iPhone 16/iPhone 15/iPhone 15 Pro 6.1 Inch is 99.99% touch-screen accurate.
  • 99.99% High-definition hydrophobic and oleophobic screen coating protects against sweat and oil residue from fingerprints. Featuring maximum protection from scratches, scrapes, and bumps.
  • High Privacy: Keeps your personal, private, and sensitive information hidden from strangers,screen is only visible to persons directly in front of screen.Good choose when you are in the bus,elevator,metro or other public occasions.(Note: Due to this privacy cover will darken the image to prevent the peeking eyes near you, you might need to turn your device display brightness up a bit when use it.)
  • Online video installation instruction: Easiest Installation - removing dust and aligning it properly before actual installation,enjoy your screen as if it wasn't there.

Android’s guidance also cautions that this approach is not reliable against overlay attacks and may not correctly predict screen recording in some cases. Android 14 separately documents the DETECT_SCREEN_CAPTURE permission and callbacks that allow an app to learn that a screenshot occurred. That is detection, not a mechanism that prevents the capture. Developers should consult the Android documentation for the applicable platform and implementation requirements rather than assuming a website can set a window flag.

iOS and iPadOS: observe capture state and respond

Apple documents screen-capture state for recording, mirroring, AirPlay, and other forms of screen cloning. Its guidance says an app can observe the property and optionally take action to prevent capture of its content; its documentation also describes notification when capture state changes. These are native app behaviors. An app might pause media or mask sensitive material in response, but the documented mechanism is reactive and does not give page JavaScript a switch to disable screenshots on the device.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

For both mobile platforms, distinguish a native app’s ability to request or react to platform behavior from the capabilities of a website loaded inside a browser. Wrapping a site in a native app does not automatically protect every web view or every way of copying the displayed information; the implementation and platform behavior matter.

Rank #4
Ailun Privacy Screen Protector+Camera Lens Protector for iPhone 16, 3+3Pack
  • [3+3 Pack] This product includes 3 pack privacy screen protectors and 3 pack camera lens protectors with Installation Frame. Works For iPhone 16 [6.1 inch] tempered glass screen protector and camera lens protector. Featuring maximum protection from scratches, scrapes, and bumps. [Not for iPhone 16e 6.1 inch, iPhone 16 Pro 6.3 inch, iPhone 16 Pro Max 6.9 inch, iPhone 16 Plus 6.7 inch]
  • Night shooting function: specially designed iPhone 16 6.1 Inch camera lens protective film. The camera lens protector adopts the new technology of "seamless" integration of augmented reality, with light transmittance and night shooting function, without the need to design the flash hole position, when the flash is turned on at night, the original quality of photos and videos can be restored.
  • High Privacy: Keeps your personal, private, and sensitive information hidden from strangers, screen is only visible to persons directly in front of screen. Good choose when you are in the bus,elevator,metro or other public occasions. (Note: Due to this privacy cover will darken the image to prevent the peeking eyes near you, you might need to turn your device display brightness up a bit when use it.)
  • Easiest Installation - Please watch our installation video tutorial before installation. Removing dust and aligning it properly with the help of the included installation frame before actual installation, enjoy your screen as if it wasn't there.
  • 99.99% High-definition clear hydrophobic and oleophobic screen coating protects against sweat and oil residue from fingerprints, and enhance the visibility of the screen.

What DRM protects—and what it does not

Digital rights management can protect a supported video pipeline. Depending on the service, player, browser, operating system, and hardware-secure playback path, a captured video may be omitted or rendered black. That protection is aimed at licensed media playback, not at arbitrary pixels on a page.

DRM does not make ordinary text, HTML, canvas content, or images impossible to photograph. It can also add implementation, licensing, and compatibility constraints. If the requirement concerns licensed video, evaluate a DRM-capable player and the required playback path for the platforms you actually support. Do not present DRM as universal screenshot prevention for a whole website.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Practical ways to reduce the value of a capture

Because a screenshot cannot be ruled out, design around the possibility that displayed information will be copied. The best measure depends on whether the concern is casual redistribution, account abuse, exposure of personal data, or piracy.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Best Value
Sale
UltraGlass TOP 9H+ Armor for iPhone 17 Pro Max Privacy Screen Protector 6.9
  • 【Industry-Leading 100% Anti-Spy Privacy Protection】Designed for iPhone 17 Pro Max. Larger iPhone screens are easier for others to glance at, so UltraGlass uses patented, SEGI-certified 25° Blackout-3 optical technology to help block side views and keep emails, banking apps, and private content visible only to you—while keeping the front view HD-clear and comfortable through hours of scrolling and streaming.
  • 【Unbreakable TOP 9H+ Glass, the Excellent 2nd Screen for Your iPhone】Boasting unparalleled shatter resistance and durability. And the core excellence is the top 9H+ tempered glass material, which is widely applied in aerospace and military fields for its ① Shatter-proof ② Scratch & Wear Resistance ③ Durability that is 7-8 times higher than other materials. Thus, UltraGlass builds a second tough screen for your iPhone 17 Pro Max.
  • 【Industry NO.1 Military-Grade Shatterproof】Authorized by the International Military Standard with 50+ rigorous engineering tests of 220 lbs impact, 8,000+ drop tests, 25,000+ scratch tests, etc., its strength, toughness and durability perform NO.1 among all glass. By especially breaking the industry's record with a 12ft drop, the iPhone 17 Pro Max screen protector is ensured to be unbreakable from its surface to every edge and corner.
  • 【Invisible Armor, 1:1 Full Covers the iPhone's Screen】Mimicking the iPhone's original screen design, it uses a 1:1 3D curved reinforced black edge that wraps around every curve — case friendly — while securing even the most vulnerable edges. Seamlessly blending with the iPhone 17 ProMax screen, it's virtually invisible and feels like the original screen while offering enhanced full-screen protection.
  • 【0 Bubbles + 0 Dust + 0 Misaligned =100% Successful Installation】Includes everything you need with pioneering automatic positioning, dust removal, and absorption technology, making the installation just effortlessly easy in seconds. No bubbles, no troubles—transforming beginners into experts!
  1. Show only what the current authorization requires. Minimize sensitive data in the DOM and avoid sending unnecessary fields to the browser. Hiding a field with CSS is not enough if the value is still present in page source, scripts, or network responses.
  2. Keep authorization on the server. Check permissions for each sensitive request, rather than trusting a client-side state or a previously loaded page. If a screenshot circulates, access control cannot retract the image, but server-side checks can prevent an unauthorized person from simply requesting the underlying data.
  3. Use short-lived access for sensitive material. Short-lived tokens and time-limited content can reduce the useful life of a copied link or credential. They do not erase a saved screenshot; design their lifetime around the real exposure risk and user workflow.
  4. Watermark important views. A visible watermark tied to an account, session, or time can discourage sharing and help identify the source of a redistributed image. A forensic watermark may be less visible, but neither kind prevents capture, and account-linked marks should be designed with privacy and false-attribution risks in mind.
  5. Pause or obscure media where it helps. A visibility-based response can reduce exposure when a user leaves a page, but make clear in product behavior that it is a deterrent, not a guarantee. Avoid unexpectedly hiding content in ways that interrupt legitimate use.
  6. Use DRM only for the media problem it solves. For licensed video, assess supported devices, playback quality, accessibility, and operational costs alongside capture protection.

These controls reduce exposure, limit how long access remains useful, or make redistribution less attractive. None promises that a person cannot photograph or copy content displayed to them.

Or skip the browser setup

If you are testing how your site looks in a screenshot, ScreenshotNeo can return a website capture through one API request. It is a capture tool for authorized testing and workflows, not a way to prevent visitors from taking screenshots. See the ScreenshotNeo API documentation for request options.

curl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://stripe.com -o shot.webp

ScreenshotNeo can accept cookie or consent banners and remove more than 60 known consent platforms, newsletter popups, and chat widgets before capture; each of those steps can be turned off. Bot checks, blank pages, timeouts, failed loads, and cache hits are not billed, and responses identify the page verdict and billing status in headers. Its MCP server provides take_screenshot, get_page_info, and capture_pdf tools for Claude, Cursor, and other MCP clients. The free plan includes 1,000 screenshots per month with no card; paid plans start at $5 for 3,000 shots. Sign up for 1,000 free screenshots a month with no card.

Common mistakes and troubleshooting

  • “My screenshot key blocker works on my laptop.” It blocks only a particular input path in the tested setup. Test other browsers, operating systems, extensions, system capture tools, and external-camera scenarios; do not treat success in one test as proof of prevention.
  • “The page became hidden, so a screenshot must have happened.” Visibility changes indicate document visibility, not a capture. Use them for pause/obscure behavior only, and do not log them as confirmed screenshot attempts.
  • “The native screenshot is blank, so the web page is protected.” A blank result may reflect Android’s native secure-window behavior in that app context. It does not mean ordinary browser JavaScript can set that flag, nor does it establish protection from all recording or external capture.
  • “We detected capture, so we can stop it.” Android 14’s documented screenshot callback reports an event; Apple’s capture-state mechanisms let an app respond to capture state. Neither turns an ordinary website into a universal capture blocker.
  • “The protected video is black, so the whole page is protected.” DRM applies to supported media paths. Test page text, images, controls, and other content separately; do not infer that DRM protects unrelated elements.
  • “We hid the sensitive field with CSS.” If the data was sent to the client, a user may be able to inspect it even if it is not visible. Stop unnecessary data at the server response and enforce authorization there.

Choosing an approach

Use browser-level privacy behavior, such as pausing media when hidden, when you want a user-friendly response to a state change. Use minimization, server-side authorization, and short-lived content when the risk is exposure of sensitive data. Consider visible or forensic watermarks when discouraging redistribution matters. Evaluate native platform controls for native apps, and DRM for licensed video—not as interchangeable solutions, but as scoped measures with different coverage and trade-offs.

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Frequently Asked Questions

Can a website know for certain that a visitor took a screenshot?

No universal screenshot event is exposed to ordinary web-page JavaScript. A page may receive other events, such as a visibility change, but that does not prove a screenshot occurred.

Does disabling copy-and-paste stop screenshots?

No. Copy-and-paste controls affect selected text or clipboard actions, not capture of pixels displayed on screen.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.