Jump to content

Prevention Help


canadabeeau

Recommended Posts

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

Link to comment
https://forums.phpfreaks.com/topic/185857-prevention-help/
Share on other sites

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.

Link to comment
https://forums.phpfreaks.com/topic/185857-prevention-help/#findComment-981378
Share on other sites

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.

Link to comment
https://forums.phpfreaks.com/topic/185857-prevention-help/#findComment-981380
Share on other sites

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..

Link to comment
https://forums.phpfreaks.com/topic/185857-prevention-help/#findComment-981383
Share on other sites

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.

Link to comment
https://forums.phpfreaks.com/topic/185857-prevention-help/#findComment-981384
Share on other sites

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.

Link to comment
https://forums.phpfreaks.com/topic/185857-prevention-help/#findComment-981391
Share on other sites

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.

Link to comment
https://forums.phpfreaks.com/topic/185857-prevention-help/#findComment-981443
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.