Screenshot blocker for site user's

Elliot Alderson Posted in General Discussion 4 years ago

Is there any way to stop users to take screenshots of our website?

Replies
gb Rishi B Replied 4 years ago
German Michael Zülsdorff Replied 4 years ago

Hmm ... I'm not sure regarding iPhones and I don't wanna be the Great Frustrator,
but on Android it simply needs pressing speaker volume and on/off buttons simultaneously to take a shot.

us Elliot Alderson Replied 4 years ago

@Filipe medeiros
thanks for your code 👍

@~Z~ Man
yes your right .. but it's working on mobile.. and most users using mobile not pc.. so pretty much helpful..

Breton Filipe medeiros Replied 4 years ago

Yes, it was more like a minimal way to help

German Michael Zülsdorff Replied 4 years ago

Yeah, so far for some browser screenshot utilities.
But I don't believe that the MS Snipping Tool or similar apps would care so much about your Javascript, do they?

Breton Filipe medeiros Replied 4 years ago

I was able to disable in some browsers with the following function within the top bar code

function copyToClipboard() {

var aux = document.createElement("input");
aux.setAttribute("value", "print screen disabled!");
document.body.appendChild(aux);
aux.select();
document.execCommand("copy");
// Remove it from the body
document.body.removeChild(aux);
alert("Print screen disabled!");
}

$(window).keyup(function(e){
if(e.keyCode == 44){
copyToClipboard();
}
});

German Michael Zülsdorff Replied 4 years ago

No.