How do I track hotlinking of images and iframe?
I give ou开发者_JAVA百科t an embed html code so others can post parts of my website as an iframe. I want to be able to track who has my embed code posted. Is there a way to do this?
Each time you generate the embed-able code, give each person a new GUID.
Embed the GUID inside the embed-able code so that the GUID is passed to your content. You can then log each hit from each GUID for tracking.
UPDATE
Since you're going to be spreading the embed code virally, I would suggest checking the HTTP_REFERER field in the HTTP header. It should (I believe) contain the URL of the page loading your content.
精彩评论