how do i view .htaccess logs - Printable Version +- Linux-Noob Forums (https://www.linux-noob.com/forums) +-- Forum: Linux Server Administration (https://www.linux-noob.com/forums/forum-8.html) +--- Forum: LAMP (https://www.linux-noob.com/forums/forum-83.html) +--- Thread: how do i view .htaccess logs (/thread-2180.html) |
how do i view .htaccess logs - anyweb - 2006-02-04 hi all how can I see what ip's are accessing the .htaccess protected pages ? let me know cheers anyweb how do i view .htaccess logs - z0ny - 2006-02-04 Hum, quick'n'dirty: Code: grep -v "\- \-" access.log|cut -d' ' -f1|uniq Short explanation: grep -v "\- \-" access.log: shows only access lines that are authenticated cut -d' ' -f1: prints the first field of the space separated line (which is the IP address in the logs) uniq: removes all duplicate IP addresses how do i view .htaccess logs - znx - 2006-02-04 they will turn up in the normal logs, 200 = successful login, 401 = failed login |