Let's say I send an email, containing a link to my website, to someone that I really hope he'll visit it (fingers-crossed style):
http://www.example.com/?utm_source=email392
or
http://www.example.com/somefile.pdf?utm_source=email392
How to make Linux trigger an action (such as sending an automated email to myself) when this URL is visited, by regularly examining /var/log/apache2/other_vhosts_access.log
?
I can't do it at PHP level because I need to do it for various sources/websites (some of them use PHP, some don't and are just link to files to be downloaded, etc.; even for the websites using PHP, I don't want to modify every index.php
to do it from there, that's why I prefer an Apache log parsing method)
/?utm_source=onlycommunicated_tooneperson_viaemail
– Basj Sep 15 '17 at 11:57