This question already has an answer here:

I'm a developer of self hosted web application. which creates the error log but others can access it rather than only admin of that application. is there any way to protect it from page other people like hackers?

marked as duplicate by MrWhite, John Conde Aug 27 '15 at 13:58

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.


Place that log outside of your webroot. That way the only way to access it is through a script which can contain authentication (i.e. a password).

  • can i change any extensions ? or like that? – Thamaraiselvam Aug 27 '15 at 13:26
  • I'm not exactly sure what you mean. Can you elaborate on this? – John Conde Aug 27 '15 at 13:27

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