Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search

[REBOL] Re: Counting Clicks

From: arolls:idatam:au at: 24-Dec-2001 16:58

> > > Is there any way to record (count) the clicks on a link to a > > > third party > > > website? > >No, unless your rebol code is web serving. (That > >means you can run your rebol code to do whatever > >you like with the click). > > If I use my own computer as the server, can I do it? How?
To be the server, the computer ideally should be accessible to the net (ie. to people like me) 24 hours a day. You sure you really want to do that? :)
> Does this also mean that a rebol program is the server > software instead of > say Apache or IIS?
Umm.. yesss... But you can run them together easily. Just get Apache or IIS to run rebol for .r files. (I haven't done it yet, though).
> >But if your site is hosted by someone else, then > >bad luck. > > Seems like I am always wanting to do something that is > impossible or that > someone wants to restrict me from doing :>).
Yeah, the power of the internet is still tied up in big, expensive server racks that are owned by rich people. However, it used to be worse.
> >There used to be a way to record rebsite visits > >via an image's effect block. However, this was > >also a security hole and was removed :) > > > >But wait, there are third party websites around > >with a system that will munge your links for you, > >redirecting them through their machines and > >maintaining statistics for you. > > > >Maybe some rebolers around here who are rebserving > >would be prepared to do such a thing for other > >rebolers? That would be quite cool. Actually, as > >soon as I can convince my boss to let me run rebol > >on the server I think I would offer something like > >that to some people here, since I see now how easy > >it is to run a rebol proxy. :) > > > >Anton. > > I would like to know how to do this myself. > > Louis
Well, refer to my post on Friday "No-white-web-proxy.r" and you will see that the program is derived from webserver.r in the Rebol script library. (It's very simple, you should check it out.) Once you look at the code, you can see how easy it is to examine the url, (referred to in the code by 'file), and do any sort of statistics collecting you like here. But don't take my word for it, try it out on your local machine. Your ip number, if you are not sure, is (localhost), so make a few fake directories in the web-dir to serve up to interested browsers, (for example and direct your browser to it, (I think that's how I did it, anyway.) Anton.