Tracking direct link to a file


my name is Federico, I’m a new Piwik user.

My question is related to tracking of a direct link to a file (.jpg).
My sistes host ski webcam images (usually .jpg).
Normally webcam images are listed in many websites of third parties with direct links to the files.
I would like to monitor these links. I woul like to know how many times my files have been directly downloaded (without passing trough a link on my webpage).
I cannot put the Piwik code anywhere because the access from a remote site is a direct link to the file name (es: hxxp://my…site/image1.jpg).
Is there any workaround to solve this problem?

Thank you in advance,


Use mod rewrite to call a PHP script that has the tracking code and then redirect to the actual file for download.