One possible approach is implementing your own algorithm based on the referrer , but there are some cases these you have to take in account. On a first thought ...
Lee mas