|
Javascript to disable screenshots.
03-03-2007, 08:54 AM
|
Javascript to disable screenshots.
|
Posts: 204
Name: Justin Allen
Location: Corydon, IN
|
Hey is there a javascript that can prevent you from taking screenshots of a website, if there is, I'm having trouble finding the code for it. Could you guys help me out here, thanks.
__________________
Justin Allen
WebTeam
Please login or register to view this content. Registration is FREE
|
|
|
|
03-03-2007, 09:01 AM
|
Re: Javascript to disable screenshots.
|
Posts: 487
Name: Mark Stegeman
Location: Netherlands, Europe
|
I'm almost 100% certain there isn't.
If you even could get the code to popup a window or something when the button is pressed, I think it's already to late.
Besides that, there are of course also lots of programs that don't need you to press a button to take a screenshot or give you the opportunity of taking a screenshot with each and every button.
It seems to me that this is impossible.
Regards,
Insensus
P.S. Why do you want this, actually?
__________________
<?php ($helpfull>0)?$talkupation++ : '';?>
|
|
|
|
03-03-2007, 11:57 AM
|
Re: Javascript to disable screenshots.
|
Posts: 5,935
Name: Adam for web page design, not program
Location: Toronto, Ontario, Canada
|
You'd have to capture the keystroke and then figure out which value is assigned to it.
http://www.htmlgoodies.com/beyond/ja...le.php/3471141
This isn't the answer, but it contains code that could at least get you started (once you deconstruct, hack, slash, and destroy the code that is.)
|
|
|
|
03-03-2007, 02:46 PM
|
Re: Javascript to disable screenshots.
|
Posts: 204
Name: Justin Allen
Location: Corydon, IN
|
Quote:
Originally Posted by Insensus
I'm almost 100% certain there isn't.
If you even could get the code to popup a window or something when the button is pressed, I think it's already to late.
Besides that, there are of course also lots of programs that don't need you to press a button to take a screenshot or give you the opportunity of taking a screenshot with each and every button.
It seems to me that this is impossible.
Regards,
Insensus
P.S. Why do you want this, actually?
|
__________________________________________________ ___________________________
In case I want to protect my site for some reason. And if I do I want to make sure i would go to the extreme when it comes to protecting my site's valuable information.
__________________
Justin Allen
WebTeam
Please login or register to view this content. Registration is FREE
Last edited by Hoosier_Buddy; 03-03-2007 at 02:47 PM..
|
|
|
|
03-03-2007, 02:47 PM
|
Re: Javascript to disable screenshots.
|
Posts: 204
Name: Justin Allen
Location: Corydon, IN
|
Quote:
Originally Posted by ADAM Web Design
You'd have to capture the keystroke and then figure out which value is assigned to it.
http://www.htmlgoodies.com/beyond/ja...le.php/3471141
This isn't the answer, but it contains code that could at least get you started (once you deconstruct, hack, slash, and destroy the code that is.)
|
Thx for the help bud, I'll try starting there.
__________________
Justin Allen
WebTeam
Please login or register to view this content. Registration is FREE
|
|
|
|
03-03-2007, 03:58 PM
|
Re: Javascript to disable screenshots.
|
Posts: 96
Name: Tudor Barbu
|
You can`t! And it would be lame. Just like disabling the right click. If you don`t want others to see your "valuable information", don`t build the website! How`s that for a solution?
Last edited by Tudor.b; 03-03-2007 at 04:00 PM..
|
|
|
|
03-03-2007, 04:23 PM
|
Re: Javascript to disable screenshots.
|
Posts: 5,935
Name: Adam for web page design, not program
Location: Toronto, Ontario, Canada
|
I don't necessarily think it would be lame. Alarms don't always stop thieves, but they do act as deterrents, and that may be all our buddy's going for here.
|
|
|
|
03-03-2007, 05:01 PM
|
Re: Javascript to disable screenshots.
|
Posts: 3,023
Name: Forrest Croce
Location: Seattle, WA
|
Quote:
Originally Posted by Hoosier_Buddy
In case I want to protect my site for some reason. And if I do I want to make sure i would go to the extreme when it comes to protecting my site's valuable information.
|
Now you're making that valuable information available when people browse to it, so as someone else already mentioned, by this point it's too late; the info is already on the client's computer. At this point there are a number of ways to grab it.
Even if you make some js work to trap the print screen key, that would only work if the browser has the focus. If a person doesn't run theirs maximized, they can click another window, hit print screen, and get the entire screen, so just crop it down. Or view the html source. Or use their digital camera and take a photo of the screen.
The one and only sure-fire way to protect your information is to never show it to anyone. Honestly, I think the next runner up is to show it to everyone and make sure they know it's yours ... a lot like branding. You can also take steps to make it harder to grab your content, but don't think they make it impossible. ( Trust me, after I found some of my photos on someone else's myspace, claiming to have shot them, I put some time and research into this. ) All of the photos on my site are background images; the img tag points at a mostly transparent frame - head to my site, right click, save as, and look at what you get. Someone who doesn't know html is going to stumble on this, although if they're smart they could grab the images from their browser cache.
I'm guessing you want to protect images, given the print screen question. If so, and they're that valuable, look into DigiMarc.
|
|
|
|
03-04-2007, 02:08 AM
|
Re: Javascript to disable screenshots.
|
Posts: 96
Name: Tudor Barbu
|
Quote:
Originally Posted by ForrestCroce
Even if you make some js work to trap the print screen key, that would only work if the browser has the focus. If a person doesn't run theirs maximized, they can click another window, hit print screen, and get the entire screen, so just crop it down. Or view the html source. Or use their digital camera and take a photo of the screen.
|
...or push that little button that says "Disable javascript" 
|
|
|
|
03-04-2007, 08:46 AM
|
Re: Javascript to disable screenshots.
|
Posts: 204
Name: Justin Allen
Location: Corydon, IN
|
Is it possible if someone takes a screenshot of one of my pages and they get a blank page. Would I be able to do something like that?
__________________
Justin Allen
WebTeam
Please login or register to view this content. Registration is FREE
|
|
|
|
03-04-2007, 09:16 AM
|
Re: Javascript to disable screenshots.
|
Posts: 487
Name: Mark Stegeman
Location: Netherlands, Europe
|
Nope.
__________________
<?php ($helpfull>0)?$talkupation++ : '';?>
|
|
|
|
03-04-2007, 10:08 AM
|
Re: Javascript to disable screenshots.
|
Posts: 1,533
Name: Paul Davis
Location: San Francisco
|
Quote:
Originally Posted by Hoosier_Buddy
__________________________________________________ ___________________________
In case I want to protect my site for some reason. And if I do I want to make sure i would go to the extreme when it comes to protecting my site's valuable information.
|
Think about that statement for a little. You want to 'protect' the site while sending the data to the client. You have to send all of the data to the client in order for them to see it. Once you've sent the data, you've lost control of it.
|
|
|
|
03-04-2007, 10:21 AM
|
Re: Javascript to disable screenshots.
|
Posts: 204
Name: Justin Allen
Location: Corydon, IN
|
Alright, I give up on this subject, thanks guys, been a big help and saved me a lot of time.

__________________
Justin Allen
WebTeam
Please login or register to view this content. Registration is FREE
|
|
|
|
03-04-2007, 03:54 PM
|
Re: Javascript to disable screenshots.
|
Posts: 3,023
Name: Forrest Croce
Location: Seattle, WA
|
Before you give up, you might seriously want to take a look at DigiMarc, although it's not cheap. And it works through enforcement and (hopefully) deterrent, not by prevention.
But their system superimposes a pattern into your image, sort of like a watermark, but it modifies the values by an invisible amount, stamping a pattern into the image that can survive quite a bit of Photoshop editing. It'll also be there in what you get out of a screen print. I think DigiMarc runs a spider looking for infringement around the web, but I could be wrong on that. Have a look at the commercial side of their web site ( they also do gov't work, like driver's licenses ):
http://www.digimarc.com/comm/images.asp
Unfortunately, cross-browser viewing isn't the only thing webmaster's have to give up some control over.
Still, I think more people try to use the save as command than taking screen shots, and you can at least make that more difficult. Use a single-pixel transparent gif and lay it over your content. It's far from perfect, but might stop half the people who want to grab your stuff. Or use Flash; again, that will at least make it more difficult.
This is laid over all my thumbnails, for the borders ( like a photo scrap book ), but it has the side effect that you would need to do a view source and parse the html yourself to get the path to the real image, or go diving through your browser's cache. Most web users won't know how to do either. ( DigiMarc is too rich for my blood. )
|
|
|
|
|
« Reply to Javascript to disable screenshots.
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|