Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have website where i provide different services.When users log in i want to monitor all that they do and store them up in a log file of that particular user and send them an email weekly to the users of what they have done and what services they have used.I also want to monitor users who try to inject malcious code and rank them according to their activity and send a warning email to them.I use wamp server.How should i do all these things.

share|improve this question
add comment

1 Answer 1

This is a difficult question to answer because it's very general. Still, here are a few things to think about:

Most of what you are asking for seems to be at the application layer. If for example you have a website written in php you could use seomthing like this tutorial to do user logging.

The idea of user logging is also tied to the use of cookies - you create a session when a user logs in, and maintain user state via the browser cookie. Every time a user opens a new page, the client sends the session cookie to the server so the server can know which user is accessing the page. This sort of information can also be logged to a database and cataloged for later reference.

As for your idea of monitoring users who try to inject malicious code, you probably want instead to write a robust web application where that sort of thing is minimized (for example, by sanitizing input).

Beyond all of that you can use good system management practices to ensure your server is secure, by doing things like keeping current on security patches and properly configuring your firewall.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.