how to log access to my html page

R

rok

Hi,
I have intranet (not internet) page(s), to which has access only five
people, I would like
them to log into file when and who accessed to view my page(s).
Can this be done simpliest as possible with javascript.

Please point me to some internet pages where, could be some examples.

Thanks a lot
Bye
 
D

David Dorward

rok said:
I have intranet (not internet) page(s), to which has access only five
people, I would like them to log into file when and who accessed to view
my page(s).

The vast majority of webservers do record logs by default.
Can this be done simpliest as possible with javascript.

In theory you could write some server side JavaScript, but its not a common
choice of language there and would be rather redundant given that
webservers can to it already.

If you are talking about client side JavaScript, then no. The only place
that client side JavaScript can record data is in a cookie, and that is
only accessible from that browser (although the browser could send it to a
server). So you could only keep a log on a browser by browser basis - which
would be fairly pointless (and is pretty much handled by the browser
history function already).
 
J

Joachim Zobel

Can this
be done simpliest as possible with javascript.

No.

If your server is Apache you may (depends on server config.) be able to
configure a login by uploading an .htaccess file.

Sincerely,
Joachim
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,434
Messages
2,571,690
Members
48,796
Latest member
Greg L.

Latest Threads

Top