Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

JavaScript Forum


You are currently viewing our JavaScript Forum as a guest. Please register to participate.
Login



Reply
Javascript to disable screenshots.
Old 03-03-2007, 08:54 AM Javascript to disable screenshots.
Hoosier_Buddy's Avatar
Extreme Talker

Posts: 204
Name: Justin Allen
Location: Corydon, IN
Trades: 0
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
Hoosier_Buddy is offline
Reply With Quote
View Public Profile Visit Hoosier_Buddy's homepage!
 
 
Register now for full access!
Old 03-03-2007, 09:01 AM Re: Javascript to disable screenshots.
Insensus's Avatar
Ultra Talker

Posts: 487
Name: Mark Stegeman
Location: Netherlands, Europe
Trades: 0
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++ : '';?>
Insensus is offline
Reply With Quote
View Public Profile
 
Old 03-03-2007, 11:57 AM Re: Javascript to disable screenshots.
ADAM Web Design's Avatar
Canadastaninianite

Posts: 5,935
Name: Adam for web page design, not program
Location: Toronto, Ontario, Canada
Trades: 0
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.)
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
(my blog)


Please login or register to view this content. Registration is FREE
(with proof)
ADAM Web Design is offline
Reply With Quote
View Public Profile Visit ADAM Web Design's homepage!
 
Old 03-03-2007, 02:46 PM Re: Javascript to disable screenshots.
Hoosier_Buddy's Avatar
Extreme Talker

Posts: 204
Name: Justin Allen
Location: Corydon, IN
Trades: 0
Quote:
Originally Posted by Insensus View Post
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..
Hoosier_Buddy is offline
Reply With Quote
View Public Profile Visit Hoosier_Buddy's homepage!
 
Old 03-03-2007, 02:47 PM Re: Javascript to disable screenshots.
Hoosier_Buddy's Avatar
Extreme Talker

Posts: 204
Name: Justin Allen
Location: Corydon, IN
Trades: 0
Quote:
Originally Posted by ADAM Web Design View Post
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
Hoosier_Buddy is offline
Reply With Quote
View Public Profile Visit Hoosier_Buddy's homepage!
 
Old 03-03-2007, 03:58 PM Re: Javascript to disable screenshots.
Skilled Talker

Posts: 96
Name: Tudor Barbu
Trades: 0
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?
__________________

Please login or register to view this content. Registration is FREE

Last edited by Tudor.b; 03-03-2007 at 04:00 PM..
Tudor.b is offline
Reply With Quote
View Public Profile Visit Tudor.b's homepage!
 
Old 03-03-2007, 04:23 PM Re: Javascript to disable screenshots.
ADAM Web Design's Avatar
Canadastaninianite

Posts: 5,935
Name: Adam for web page design, not program
Location: Toronto, Ontario, Canada
Trades: 0
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.
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
(my blog)


Please login or register to view this content. Registration is FREE
(with proof)
ADAM Web Design is offline
Reply With Quote
View Public Profile Visit ADAM Web Design's homepage!
 
Old 03-03-2007, 05:01 PM Re: Javascript to disable screenshots.
ForrestCroce's Avatar
Half Man, Half Amazing

Posts: 3,023
Name: Forrest Croce
Location: Seattle, WA
Trades: 0
Quote:
Originally Posted by Hoosier_Buddy View Post
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.
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
ForrestCroce is offline
Reply With Quote
View Public Profile Visit ForrestCroce's homepage!
 
Old 03-04-2007, 02:08 AM Re: Javascript to disable screenshots.
Skilled Talker

Posts: 96
Name: Tudor Barbu
Trades: 0
Quote:
Originally Posted by ForrestCroce View Post
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"
__________________

Please login or register to view this content. Registration is FREE
Tudor.b is offline
Reply With Quote
View Public Profile Visit Tudor.b's homepage!
 
Old 03-04-2007, 08:46 AM Re: Javascript to disable screenshots.
Hoosier_Buddy's Avatar
Extreme Talker

Posts: 204
Name: Justin Allen
Location: Corydon, IN
Trades: 0
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
Hoosier_Buddy is offline
Reply With Quote
View Public Profile Visit Hoosier_Buddy's homepage!
 
Old 03-04-2007, 09:16 AM Re: Javascript to disable screenshots.
Insensus's Avatar
Ultra Talker

Posts: 487
Name: Mark Stegeman
Location: Netherlands, Europe
Trades: 0
Nope.
__________________
<?php ($helpfull>0)?$talkupation++ : '';?>
Insensus is offline
Reply With Quote
View Public Profile
 
Old 03-04-2007, 10:08 AM Re: Javascript to disable screenshots.
willcode4beer's Avatar
Super Moderator

Posts: 1,533
Name: Paul Davis
Location: San Francisco
Trades: 1
Quote:
Originally Posted by Hoosier_Buddy View Post
__________________________________________________ ___________________________

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.
willcode4beer is offline
Reply With Quote
View Public Profile
 
Old 03-04-2007, 10:21 AM Re: Javascript to disable screenshots.
Hoosier_Buddy's Avatar
Extreme Talker

Posts: 204
Name: Justin Allen
Location: Corydon, IN
Trades: 0
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
Hoosier_Buddy is offline
Reply With Quote
View Public Profile Visit Hoosier_Buddy's homepage!
 
Old 03-04-2007, 03:54 PM Re: Javascript to disable screenshots.
ForrestCroce's Avatar
Half Man, Half Amazing

Posts: 3,023
Name: Forrest Croce
Location: Seattle, WA
Trades: 0
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. )
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
ForrestCroce is offline
Reply With Quote
View Public Profile Visit ForrestCroce's homepage!
 
Reply     « Reply to Javascript to disable screenshots.
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.61185 seconds with 12 queries