I have a website written in php. I have a lots of external links like:
<a href="http://example.com" target="_blank">
What i want is that if the user clicks on these kind of links it should log this somewhere. Preferred is the apache log. If not possible then log in a file.
How can I do this with (probably with js)?