Hello,
I've been searching for a way to log whoever print screens my website by IP address. So for a quick example, if someone pressed the print screen while on my website their IP address would written a separate .txt file along with the time etc.

Is this possible at all? If so, can someone show/tell me how? If it can't be done with JS, what language can it be done with?

Member Avatar for stbuchok

I feel kind of dirty for helping you with this as the only reason I can think of for doing this is that you are paranoid that people are copying stuff from you and you want to sue them.

http://www.cambiaresearch.com/articles/15/javascript-char-codes-key-codes

However it looks like it doesn't always work.

Also, there is no other language that could do this (with out having the user download a plugin or some other application).

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.