Forum Moderators: open

Message Too Old, No Replies

Recording Visitor Activity

... is this possible?

         

austtr

3:16 pm on Aug 31, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



This was part of a post in another thread.... I thought it may reach a more qualified audience here.

-------------------
Is it possible to collect the IP address of viewers who "view source".... and if so,

Is it possible to record if they perform a CTRL C?

MonkeeSage

3:41 pm on Aug 31, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Not directly possible to check if they view source, though you can do some indirect tricks. The best I've heard is to drop a clue in the source in a comment, something like

"<!-- I need to get around to password protecting /foo directory, I really don't want just anyone to see the contents since they are so important to me -->"

Then count the views to /foo (needs to be an otherwise unused directory for this to work obviously).

As for CTRL-C, just do something like this

<script type="text/javascript">
<!--
document.onkeyup = function(e) {
if (!e) e = window.event;
if ((e.keyCode == 67) && (e.ctrlKey == true)) {
// do something to track here
// for example, call a CGI that
// writes count to a file on
// the server...
void(window.open('copy-counter.pl', '', ''));
}
}
//-->
</script>

Jordan