Posted by bottticelli in I2P
Greetings, fellow ramblers.
I would like to ask you about the implementation of a simple user count for my eepsite (now being just a static HTML page). As far as I researched this question, for clearnet the situation is roughly as follows:
-
There is relatively easy way of doing this with JavaScript, which does not satisfy me since I do not want my eepsite working with JavaScript, it's nasty and collects too much data about the users. I personally hate JavaScript-demanding sites, even more do I dislike them in darkweb.
-
There are lots of free user counters available in clearnet, they say 'just sign up for free, even without email, and choose any design you want, then paste your URL here and we will do the rest'. Such solutions are obviously obnoxious since I have no control over the amount of information they would have been possessing, and certainly i2p link won't work with that (if I'm wrong here, please correct me). Maybe there are some good and transparent services for user count across the i2p network?
-
There is another way of creating a PHP script dealing with it, still relatively easy. Seems to be perfect, but I wonder if there are any simpler ways. To my knowledge, there is no way of performing this in HTML alone, since it has to be server-side (however, if I misunderstood something, again please do point me to my ignorance).
Apart from technicalities, I see one more interesting and subtle question here concerning the philosophy (let me take the liberty of using that term) of Invisible Internet. I am going to raise this question in a distinct submission soon, and I heartily encourage all of you to join the discussion. Meanwhile, please give me a hint about the forum where it could be the most relevant. AskRamble? I2P? Anonymity? Privacy? Whatever?
z3d wrote (edited )
With the default I2P webserver (Jetty), assuming you have perl installed, you can run perl scripts from eepsite/cgi-bin. Something like the following will provide a basic pagecounter when embedded in a iframe: