Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to log IP Address of clients which tried to access my site , but unable due to blocking in .htaccess using DENY FROM syntax .
Please guide me

share|improve this question
up vote 2 down vote accepted

I think they'll come up in error.log as entries where the HTTP Status code is 403 Forbidden.

share|improve this answer
Can i maintain it in separate log file – vnix27 May 25 '11 at 12:44
Probably not, but it shouldn't be too difficult to parse out with a Perl script. – Tom O'Connor May 25 '11 at 13:16
Thanks Tom for your suggestion – vnix27 May 26 '11 at 3:07

Your Answer


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.