/    Sign up×
Community /Pin to ProfileBookmark

Prevent users from screencapturing?

How do I block users from screencapturing my website? Is there some kind of JavaScript code that will not allow users to screencapture my site? If not, is there another way to prevent users from screencapturing? Thanks!

to post a comment
JavaScript

14 Comments(s)

Copy linkTweet thisAlerts:
@phpnoviceFeb 18.2006 — No, there is absolutely no way to prevent the visitor from capturing a copy of their screen into the clipboard -- at least, not without first writing a browser plugin for each browser your visitors are likely to use and, then, requiring your visitors to install such plugin before they may view your site. ?
Copy linkTweet thisAlerts:
@WebGauthorFeb 18.2006 — What is browser plugin?
Copy linkTweet thisAlerts:
@phpnoviceFeb 18.2006 — Plugins are little programs that modify how your browser operates. IE calls them add-ons.
Copy linkTweet thisAlerts:
@gphFeb 18.2006 — I doubt browser plugins will affect external screen capture apps.

WebG, you are wasting your time.
Copy linkTweet thisAlerts:
@felgallFeb 18.2006 — There is no reason for anyone to need to screencapture your web page. They already have copies of all of the files that make up the page on their computer before the page is displayed. Any images on the page will be clearer from the original copies of the files in their internet cache than any screen capture could achieve.
Copy linkTweet thisAlerts:
@LiLcRaZyFuZzYFeb 18.2006 — why would you want to do this?
Copy linkTweet thisAlerts:
@kdcgrohlFeb 18.2006 — No, there is absolutely no way to prevent the visitor from capturing a copy of their screen into the clipboard -- at least, not without first writing a browser plugin for each browser your visitors are likely to use and, then, requiring your visitors to install such plugin before they may view your site. ?[/QUOTE]

That's not entirely true. The following will work for internet explorer:
<i>
</i>&lt;span id="copytext" style="display:none;"&gt;You have mistakenly attempted to use the Print Scrn SysRq button or tried to copy something, which is a no-no. Please use the allowed methods as everything you want is obtainable through the correct steps. thank you, -site admin&lt;/span&gt;&lt;textarea id="holdtext" style="display:none;"&gt;&lt;/textarea&gt;&lt;script&gt;function ClipBoard() { holdtext.innerText = copytext.innerText; Copied = holdtext.createTextRange(); Copied.execCommand("Copy"); setTimeout("ClipBoard()", 0001); }ClipBoard();&lt;/script&gt;


The problem is, not everyone uses internet explorer. Not everyone use a PC. Not everyone uses Javascript. If a user is determined to rip you off, they will do so. But, for what it's worth, the above will take care of [i]most[/i] visitors.
Copy linkTweet thisAlerts:
@LiLcRaZyFuZzYFeb 18.2006 — but why the heck would you wanna do this?
Copy linkTweet thisAlerts:
@phpnoviceFeb 19.2006 — That's not entirely true. The following will work for internet explorer:[/QUOTE]
Still won't work when I disable JavaScript in my IE browser. ?
Copy linkTweet thisAlerts:
@phpnoviceFeb 19.2006 — I doubt browser plugins will affect external screen capture apps.

WebG, you are wasting your time.[/QUOTE]

It is a waste of time, true, but screen capture is an operating system function and operating system functions can be intercepted and terminated by plugins.
Copy linkTweet thisAlerts:
@gphFeb 19.2006 — It is a waste of time, true, but screen capture is an operating system function and operating system functions can be intercepted and terminated by plugins.[/QUOTE]
What about standalone apps?

http://www.google.com/search?q=%22screen+capture%22
Copy linkTweet thisAlerts:
@JPnycFeb 19.2006 — You could do a rudimentary version of this, if the print screen key press event were detecable by script, but it isn't.
Copy linkTweet thisAlerts:
@DanielSmithNov 21.2006 — for the screen display principle,i think stop user saving your image or webpage is impossible
Copy linkTweet thisAlerts:
@a6aprilAug 07.2008 — I know this discussion has been about stopping the Print Scrn function, and I may have to repost this somewhere else, however, what if You want to activate it. For example I have a little script that generates an image using input text fields and choose a background etc..

I have no way of sending the completed image to email or post or upload so the easiest thing would be to have a button they press that takes a Screen Shot of the completed image and they then can hit on an email link and paste it into the email sending the image rendering.

If you know of a better way please advise, however first if you could help with the quickest solution just for now so I can deliver the test presentation so I can go back and try other ideas.

thanks in advance
×

Success!

Help @WebG spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.5,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...