using .htaccess to log visitors refereer & ip
I've tired searching on the web so i posted this question here
i have an file called extra.jpg and i want to log visitors ip with referrer using .htaccess
it's possible on Apache ? or should i use something other ?
Currently I'm using Apache with CentOs Operating system 6 and c-panel
thanks for help
-
You can't do this with .htaccess. All hits to a site would already be logged in the Apache access log, and if you have log archiving enabled you'd already have what you need. 0 -
Thanks for replay, can i configure Apache to create an custom log file that logs only extra.jpg logs ? 0 -
[quote="Moka, post: 1690681">Thanks for replay, can i configure Apache to create an custom log file that logs only extra.jpg logs ?
Not really. However, again, with this data already being in your access logs, why can't you simply create a script to parse out lines containing 'extra,jpg'?0 -
Re: using .htaccess to log visitors refereer & ip i like geek girls like you :v [COLOR="silver">- - - Updated - - - what if i have a big log files ? 0 -
Re: using .htaccess to log visitors refereer & ip [QUOTE] what if i have a big log files ?
Don't worry, it's probably not as big as you think it is.0 -
Hello :) You may also want to consult with your web hosting provider to see if they can provide you with the output that you seek. Thank you. 0
Please sign in to leave a comment.
Comments
6 comments