canadabeeau Posted December 21, 2009 Share Posted December 21, 2009 How can I use PHP or any other language (feel free to move this thread) to prevent users doing screenshots of the website (maybe Java??) so if anyone knows how I can achieve this please post. Or how can I code so that if they do screen shot it make the image (for example) blanked out. Season greetings and thanks in advance for any help Quote Link to comment Share on other sites More sharing options...
oni-kun Posted December 21, 2009 Share Posted December 21, 2009 This is basically impossible. Simply using PRT SCR doesn't even query the browser, so it'd happen no matter what. The ONLY way you can accomplish this is physically placing the layer onto a Direct X buffer, which will not allow bufferside sccreenshots to show anything but the blank backbuffer. EDIT: What is your need for this? If you don't want someone to steal an image, watermark it. Quote Link to comment Share on other sites More sharing options...
canadabeeau Posted December 21, 2009 Author Share Posted December 21, 2009 oni-kun how would I do your option (coding wise)?? Quote Link to comment Share on other sites More sharing options...
oni-kun Posted December 21, 2009 Share Posted December 21, 2009 oni-kun how would I do your option (coding wise)?? You really think PHP can be binded with Direct X? It wouldn't even run on Mac/*Nix. I was just listing the ONLY possible method of preventing a screenshot. Further, what stops them from using a good camera on the screen? You're asking of the impossible. Quote Link to comment Share on other sites More sharing options...
canadabeeau Posted December 21, 2009 Author Share Posted December 21, 2009 No I didnt think PHP could go with DirectX but I want to know how I can do this? so can you tell me? Quote Link to comment Share on other sites More sharing options...
greatstar00 Posted December 21, 2009 Share Posted December 21, 2009 if you are seling picture either put watermark or, make the image lower quality, so, they dont steal the actual image It is impossible to prevent people to steal your image. and newbie, not that noob though can steal your image Quote Link to comment Share on other sites More sharing options...
Deoctor Posted December 21, 2009 Share Posted December 21, 2009 hi u can do it out using the javascript. PHP will not work as it is not a client side programming and u need to capture the keystrokes and then use them up.. just check this javascript that i have found out. might be it will help u out.. http://www.htmlgoodies.com/beyond/javascript/article.php/3471141 Quote Link to comment Share on other sites More sharing options...
oni-kun Posted December 21, 2009 Share Posted December 21, 2009 You've got two options: 1) Create an offline program that can be un-screenshottable 2) Nothing. The above user's post. Does not work on Firefox, as JS has rules. And what if they're on a browser other than Windows? What if they turned JS off? Many users have NoScript. It takes seconds to be able to screenshot your page. Quote Link to comment Share on other sites More sharing options...
Deoctor Posted December 21, 2009 Share Posted December 21, 2009 yes as oni-kun said the example will not work in the firefox. it wil only do in the ie Quote Link to comment Share on other sites More sharing options...
greatstar00 Posted December 21, 2009 Share Posted December 21, 2009 You've got two options: 1) Create an offline program that can be un-screenshottable what if they disable active x control? if you create the program, browser will pop up a yellow bar to ask u, to run this active x control? wat if they choose no? Quote Link to comment Share on other sites More sharing options...
oni-kun Posted December 21, 2009 Share Posted December 21, 2009 You've got two options: 1) Create an offline program that can be un-screenshottable what if they disable active x control? if you create the program, browser will pop up a yellow bar to ask u, to run this active x control? wat if they choose no? No, this has nothing to do with the browser. If it were an AX extension it still could not prevent a screenshot. I meant a CPP/DX .exe not a web browser. Quote Link to comment Share on other sites More sharing options...
canadabeeau Posted December 21, 2009 Author Share Posted December 21, 2009 so make a desktop application instead?? Quote Link to comment Share on other sites More sharing options...
oni-kun Posted December 21, 2009 Share Posted December 21, 2009 so make a desktop application instead?? Yes, but without 5+ years knowledge of CPP and Direct X interfacing, you're out of luck. I'm just giving you the point, There's no possible way to prevent the user to screenshot your site, if a website had such control, Viruses would be able to take control of keys by just browsing the site! If you could tell my why you need this function, I can give an alternative. But you won't find one with just that in mind. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.