Sometime on Jun 11, ranjeet walunj assembled some asciibets to say:
I want to write a program on client end which will trap all the urls accessed by the surfer. Requirement is something like that the program will run in background and logs all urls in text file.
Get junkbuster. It's written in C, runs as a proxy on your machine. Is GPL'ed. Currently used to block advertisements and in fact anything you don't want to waste bandwidth on, but easily enough modified to do what you want.
Remember the unix philosophy - keep it simple. If it's already been done, don't redo it, just make it better.
Philip