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 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

1 Answer 1

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

 
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.