Screenshot blocker for site user's

Elliot Alderson Posted in General Discussion 2 weeks ago

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

Replies
us Bansh33 - Replied 7 days ago
German ~Z~ Man Replied 2 weeks 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 2 weeks 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 2 weeks ago

Yes, it was more like a minimal way to help

German ~Z~ Man Replied 2 weeks 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 2 weeks 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 ~Z~ Man Replied 2 weeks ago

No.