How can I modify the CGI hit-counter and where's its .dat file?

Status
Not open for further replies.

moongaze

New Member
Messages
9
Reaction score
0
Points
1
I wanted a visitor counter for my webpages hosted here and I got something from cPanel that does the job, but not quite as I intended. I'd like some help modifying the code to tweak it. The code comes from:

cPanel --> "Software/Services" pane --> CGI Center --> Counter

It takes you to a page headed "Counter/Clock/Date Box Generator" where you can fill in your preferences for a counter. You then click on an "HTML" button and it generates code for you similar to this:

<img src="/cgi-sys/Count.cgi?df=username.dat|display=Counter|ft=2|md=5|frgb=100;139;216|dd=E">

By default "username" will be your login name. From other posts here, I gather that your stats go into a .dat file of that name, but I haven't been able to find any such file anywhere in my subdomain area. Not with an FTP client nor with File Manager, even with the latter set to display hidden files.

Pasting the above code into a webpage will add a counter to the page. x10hosting calls it a visitor counter, but it's really just a hit counter. It counts multiple returns by the same visitor to the same page (even myself). From what I've read, a visitor counter (as opposed to a hit counter) should ignore multiple repeat hits and only count, say, 1 hit per day from each unique user. I think uniqueness is based on the visitor's IP address.)

What I would really like is an invisible counter, i.e. one not visible to visitors, and I would get my stats from the .dat file. Can anyone tell me how to modify the code to achieve that and how to find the .dat file?

I know hardly anything about CGI.
 

moongaze

New Member
Messages
9
Reaction score
0
Points
1
I have found the answer to this question myself. Here, for the benefit of others with similar questions is what I have discovered about how the CGI counter works and what you have to do here to set one (or more) up on X10 Hosting. I have documented the whole thing because the forum has many similar questions from others about this before me, many of which were not answered at all or not adequately answered. The information provided applies to users whose hosting accounts reside on server "level". Don't know if the same applies to other servers.
 

moongaze

New Member
Messages
9
Reaction score
0
Points
1
Note, the files posted at the link in my previous reply have just been updated with some minor corrections and additions.
 
Status
Not open for further replies.
Top