![]() Knowledge Is Power |
Bestdam Website Visitor Logger
|
| Sections: |
|
|
Home How Do I CGI ? BDL Features BDL Download BDL Setup Quick Setup BDL Windows BDL Help BDL How To BDL Log Tips Hit History BDL Duo BDL Upgrade _____________ Country Codes About htaccess Web Hosts CGI on NT/2K CGI Resources Linux Guide Solaris Guide Cisco Monitor Anti-Spam More Software |
Setup & InstallationNote: You may get an empty e-mailed report shortly after installing the script. This is due to the "trigger" file resetting to the current day. |
IMPORTANT NOTES:
The graphics files must have the single character name for the number they represent. For example, if they are .gif files, they must be named:
1.gif 2.gif 3.gif etc. Use the "Rename" function of your FTP program to rename them if necessary.
Do NOT create the digits sub-directory under the cgi-bin sub-directory or people may not be able to access the digit files.
Make sure that you enter a 1 for the count_hits, display_count, and graphics_count option variables near the top of the script. More information on these variables is given in the Optional Variables Reference below.
The Resources page has a link to a site with loads of digit graphics you can download.
| $count_hits |
Count page hits ? Values are 1 = Yes 0 = No 1 is the default value. |
| $display_count |
Display the counter on the page ? Values are 1 = Yes 0 = No 1 is the default value. You must have $count_hits = 1 |
|
$reset_counts Deluxe Edition |
You have the option of resetting the hit counters to zero after the report is e-mailed. Values are 1 = Yes 0 = No 0 is the default value. You must have $count_hits = 1 |
| $reporting_period |
The period between the updating of the logs and the mailing of the report. Values are:
"Updating of the logs" means the "period log" is cleared and if the $keep_history variable (see below) is set to "Yes", the contents of the period log are appended to the history log before the period log is cleared. 1 is the default value. 1 ("Daily") is the only valid value for this setting with the Lite Edition. CAUTION: Choosing 3 (Monthly) could result in very big period log files by the last week of the month which could slow the execution of the script. It should only be used if you get less than several hundred hits a week or have a very fast server. |
|
$day_of_week Deluxe Edition |
If you chose "Weekly" (2) for the above variable, this variable sets which day of the week the logs will be updated and the report will be e-mailed. Values are:
0 is the default value. |
| $mail_report |
E-mail the "period" log report & stats ? Values are 1 = Yes 0 = No 1 is the default value. |
|
$log_in_mail Deluxe Edition |
Include the contents of the period log in e-mailed reports ? Values are 1 = Yes 0 = No 1 is the default value. |
|
$double_space Deluxe Edition |
The log lines can be very long. The log data that is e-mailed is best viewed with the "wrap" feature turned off in your e-mail program. If you can't turn off "wrap", or just don't want to, this option will double-space the log lines in the e-mailed report. Values are 1 = Yes 0 = No You must have $mail_report = 1 0 is the default value. |
|
$keep_history Deluxe Edition |
Keep a cumulative "history log" ? Values are 1 = Yes 0 = No 1 is the default value. |
|
$hit_count_history Deluxe Edition |
Keep a history of hit counts for a recurring period to tab-delimited text file for viewing and optional import into into a spreadsheet program for analysis and graphing ? Values are:
Due the varying number of days in months, montly logging for the previous month will be done when the first hit of the new month is received (probably very early a.m. on the 1st). |
|
$hit_count_history_dow Deluxe Edition |
If you chose "Weekly" (2) for the above variable, this variable sets which day of the week the current count will be recorded to the "hit history" file. Values are:
0 is the default value. |
|
$hit_count_history_page Deluxe Edition |
Enter the name of the page you want to you want to keep a history on (ONE PAGE ONLY). In most cases you want to keep this history for your entire site in general so enter the name of the home page. (Ex: index.html, default.asp, etc.) |
|
$hit_count_history_in_mail Deluxe Edition |
Include the contents of the hit history file in the e-mailed reports ? Values are 1 = Yes 0 = No 0 is the default value. You must have $hit_count_history set to 1. |
|
$check_ip Deluxe Edition |
Check IP address so multiple hits from the same address aren't counted ? Values are 1=Yes 0=No 1 is the default value DON'T set to '1' if you are monitoring multiple pages The default level of "back tracking" is 5 addresses. To lower this, open the 'iptrack.num' file in a text editor and delete the appropriate number # of '0.0.0.0' IP addresses. To increase it, add the appropriate number of '0.0.0.0' IP addresses with each being on their own line. |
|
$graphics_count Deluxe Edition |
Use graphics digits for counter ? Values are 1 = Yes 0 = No 0 is the default value. You must have $display_count = 1 NOTE: If you set $graphics_count = 1 you MUST verify/set the two additional variables below and follow the "Special Notes" below. |
|
The following two variables have example values which are the default values. |
|
| $digits_path = '/digits/'; |
Specify the path to the digits files relative to the root URL. This value MUST begin AND end with a slash (/). Example: Your root URL could be something like: http://www.yourdomain.com or http://www.isp.com/~mydomain |
| $digits_type = '.gif'; |
File extension of digit graphics files. The period MUST be included. |
SPECIAL NOTE:
With the above 2 values set correctly you should be able to view the digits on your browser. Using the above default values as an example, you'd be able to see the '1' digit by going to
www.yourdomain.com/digits/1.gifIf you can't see the digits this way, no one will be able to see them on your Web page.
|
$web_count Deluxe Edition |
Create the hits.htm Web page to view current hit counts using a browser ? Values are 1 = Yes 0 = No 0 is the default value. You must have $count_hits = 1 View the page at http://www.mydomain.com/hits.htm NOTE: If you set this value to '1' you MUST enter the value for the next variable. |
|
$count_path Deluxe Edition |
If you entered '1' to create a hits.htm page you MUST enter the SYSTEM path to your Web root for the hits.htm file (typically where your home page is located).
The value here is just an example of what's needed. Be sure to leave the '/ at the beginning and the /hits.htm'; on the end. If you wish, you can use a name other than 'hits' for the page. |
|
$web_report Deluxe Edition |
Create a Web-page version of the period report (which also contains the hit count data) to view using a browser ? (preport.htm) Values are 1 = Yes 0 = No 0 is the default value. View the page at http://www.mydomain.com/preport.htm NOTE: If you set this value to '1' you MUST enter the value for the next variable. |
|
$report_path Deluxe Edition |
If you entered '1' to create a preport.htm page you MUST enter the SYSTEM path to your Web root for the preport.htm file (typically where your home page is located).
The value here is just an example of what's needed. Be sure to leave the '/ at the beginning and the /preport.htm'; on the end. If you wish, you can use a name other than 'preport' for the page. |
|
$web_history Deluxe Edition |
Create the hithistory.htm Web page to view the hit history table using a browser ? Values are 1 = Yes 0 = No 0 is the default value. You must have $hit_count_history = 1 View the page at http://www.mydomain.com/hithistory.htm NOTE: If you set this value to '1' you MUST enter the value for the next variable. |
|
$web_history_path Deluxe Edition |
If you entered '1' to create a hithistory.htm page you MUST enter the SYSTEM path to your Web root for the hithistory.htm file (typically where your home page is located).
The value here is just an example of what's needed. Be sure to leave the '/ at the beginning and the /hithistory.htm'; on the end. If you wish, you can use a name other than 'hithistory' for the page. |
Using IP Blocking - Deluxe edition
If you want to use IP blocking, you must create a text file with the name ipblock (no extension) and transfer it with the other files and CHMOD it 666 also.
In the file, enter one IP address (or partial IP address for entire sub-net blocking) per line to be blocked from the counting and logging. You can enter as many IP addresses or partial addresses as you like.
Examples:
Entering 123.45.678.9 will block this one IP addressSample file:
Entering 123.45 will block all IP addresses that start with '123.45'.
123.45.678.9
123.45.678.20
174.22
90.
218.43.21