Forum Moderators: coopster & phranque

Message Too Old, No Replies

script code top 10 referer urls in my site

top 10 referer urls in my site

         

StopSpam

9:30 am on Mar 19, 2003 (gmt 0)

10+ Year Member



Hi all...

i want to display a small top 10 referer list on my website. that shows only the domain name

i tryed this script but i cant get it to work
igues some filkes are missing or theread me sucks:
www.mycgiscripts.com/top-referers.html

this script do what i need ...

can any one recommanded a different script doing the same. or has any one success full installed the script?

[edited by: jatar_k at 7:23 pm (utc) on Mar. 19, 2003]
[edit reason] once is enough [/edit]

nosanity

5:48 pm on Mar 19, 2003 (gmt 0)

10+ Year Member



The first thing that would be interesting to know, is what kind of web server is it, and do you have full access to the configuration files?

For example,

If it is Apache, you can set up a log file for just referers, then write a small parser that will take all the data and place it in some sort of database. Then you would just take the top 10 directly from the database and display it.

noSanity

StopSpam

6:36 pm on Mar 19, 2003 (gmt 0)

10+ Year Member



Hi ... nosanity

thx for reply ...

yes it a unix apache web server

i have ftp / cgi access and i can chmod ...

please tell me what to do ... i really wnat to get this script to work.

the code opens few files. but thoose files are not includded. and i dont think the script will make them there selff

;-(

nosanity

6:45 pm on Mar 19, 2003 (gmt 0)

10+ Year Member



I have never actually used that script, but it shouldn't be too difficult to write a simple perl script to read 1 log file, and output some data based on what's in the log.

You may also want to ask your hosting provider to set up a referer log (which can be done easily in apache) and to have that log placed in your web directory so you can read just the referers, not the entire log file.

noSanity

PS: A little bit of perl help here? :-P

StopSpam

7:21 pm on Mar 19, 2003 (gmt 0)

10+ Year Member



its more easy to get this script working as it those ecactly what i want ...

i can call a top 10 using SSI on any spot in my website etc. its good script but simply dont work. i gues the owner try to force you this way to pay the $ 20 for installation. sothe script aint really free as the readme is ****ed up hehehehe

<snip>

can some one get it to work?

[edited by: jatar_k at 7:23 pm (utc) on Mar. 19, 2003]
[edit reason] script already mentioned in first post [/edit]

mavherick

8:06 pm on Mar 19, 2003 (gmt 0)

10+ Year Member



That script make use of the referer log file just like nosanity mentionned. So to get it to work you must have that file somewhere on your server.

It might also just be a path problem, try and look at where the script is looking for the file and see if it's on your server.

mavherick

StopSpam

9:35 pm on Mar 26, 2003 (gmt 0)

10+ Year Member



my hosting company smarthosting.com refuse to turnon option create referer.log as it will slow down server preformance ;-(

damn now i cant use this script

mavherick

5:02 am on Mar 27, 2003 (gmt 0)

10+ Year Member



You might not be able to use it as is, but I'm sure you could customize it in a way to make it work for your setup. Although it sure won't be as easy as just uploading the original. The key is simply to find an alternative to the referer log, like having a piece of code on your home page that reads the referer and write it to a file (well if you go that way you might not even have to change anything but the referer log path in the original script, but you would have to make sure your little script write in the same format as apache would)

Just as a starter, what is it written in? I would guess perl.

mavherick

StopSpam

7:19 am on Mar 27, 2003 (gmt 0)

10+ Year Member



yeh your right ..

use a different script togenarate its own ref log and let the script read that log file ...

to be treu i dont like doing that ...
i allready gave up onthis script ...

if its this complex thenno top 10 refers for me on my site ;-)