Box 24

 Home   Infos   Tipps   Webmail   Humor   Polizei   Gästebuch   Downloads   Chat   Suchen   Feedback   Links 

 

 Anmelden/Login   Neuanmeldung/New User   Java Telnet Applet   Telnet   
 

wcBasic: HTTPLogCut

Disclaimer

This should be a working program, it runs on my own BBS and it works fine. No hangups, no lockups, and it does what its suppose to. On your system, I will guarantee nothing, but to take up very little space on your hard-drive.

What's this?

I don’t want to see my own hits for the website in the statistics. I searched a way to delete just this entries and nothing else - and then I wrote this little program.

It renames your wchttp.log file first to a temporary name. It reads this temporary file line by line and compares it with your defined entries that should be excluded. The excluded lines are stored in a separate file while the normally lines are stored in a new log file.

Files included in the archive

httplogcut.wcx

the main program

html-HTTPLogCutConfig.wcx

the configuration program

rkSoftware.css

the Stylesheet to easy customize the look

readme.txt

this file

Install

The installation is pretty simple:

  • Copy httplogcut.wcx and html-HTTPLogCutConfig.wcx to the wc5 program directory
    (If you use my html-rkSysop Utility you don’t need to copy the html-HTTPLogCutConfig.wcx, the configuration program for httplogcut is integrated in html-rkSysop)
  • Copy rkSoftware.css to your wc5 http directory
  • Type /code/html-HTTPLogCutConfig in your browser to start the configuration (or use html-rkSysop if you have it)

That's all!

Uninstall

Delete the installed files. The rkSoftware.css is used by my other programs. If you use one of them, don’t delete it if you wish to uninstall httplogcut only.

Configuration

You have to be in the “Sysop” security profile to use the configuration program. Type /code/html-HTTPLogCutConfig in your browser to start it.

Define the logfiles from the menu. Please don't use WUNC paths (wc:\), use the full drive, path and file name to the logfiles. The "New HTTP Logfile" is used to store the cleaned logfile. You should point your statistics program to this logfile. The deleted entries are stored in the "HTTP Logfile for excluded entries".

The program looks for Host Names/IP Addresses and user names. The check for Host Names is designed to delete a specific host (computer.domain.com) or all hosts from a domain if you use a wildcard (*.domain.com).
Wildcards can be used at the start or/and at the end of the host name.
User names must be exactly defined.

Using it

Type "wcrun -r httplogcut" in a DOS box or add it to a menu entry in the ANSI side.

I use it in a batch file that first runs httplogcut, then the daily statistics (BapStats, wcReports).

History

1.0

The first release, written in wcBasic and compiled with v5.6.450.7.