Dynadot โ€” .com Registration $8.99

Display top-five referral urls

Spaceship Spaceship
Watch
Impact
11
Hi,
I would like to display top-five referral URLs on the main page of my site dynamically,
so that I can automatically provide reciprocal links for those sites that bring us the most traffic.

Can anyone help me create a code snippet that does this?
Any help will be greatly appreciated.
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
.US domains.US domains
do you want to get them directly from log file or a database can be used?
btw, you may have problems with referral spammers
 
0
•••
hi,
I myself wrote a simple snippet doing this.. I store the referral stats in mysql and display the top five (in terms of unique ip addresses that each site brings to us). I filter out SE referrals, and those referrals from my own sites and my own forum signatures. Also, I periodically flush the database so as to prevent any cheating...

rehash said:
do you want to get them directly from log file or a database can be used?
btw, you may have problems with referral spammers
 
0
•••
rehash said:
...btw, you may have problems with referral spammers
I agree with rehash. It is too easy for referral fraudsters to manipulate the results in your list. I would not recommend that kind of a solution.
 
0
•••
Dynadot โ€” .com Registration $8.99Dynadot โ€” .com Registration $8.99
Unstoppable Domains
Domain Recover
DomainEasy โ€” Payment Flexibility
  • The sidebar remains visible by scrolling at a speed relative to the pageโ€™s height.
Back