Recent comments in /f/I2P
righttoprivacy OP wrote
Reply to I2P Under Attack By Zombie Routers by righttoprivacy
Take a look at latest post by IDK - at the moment suggesting turning off Sybil banning and latest dev release has this. Until updating, good idea to turn it off to help stabilize network: https://www.reddit.com/r/i2p/comments/1cdprxg/network_weather_update_still_stormy_suggested/
NotQball wrote
Reply to BitChan v1.3.0 has been released by sujoro35
http://waycuw2c27ruakfblkf5tcegwmt3ot445dlfoypil6bzmm4yxg7a.b32.i2p/ The idea is that it will work as specified on the above site. You have the info there and maybe it does work. A Wikipedia page would be ideal. I wonder what school did the poster attend... it is too late for me.
NotQball wrote
Reply to BitChan v1.3.0 has been released by sujoro35
https://groups.google.com/g/mail.cypherpunks/c/HrW4yzTICqU
Some explanations/screen-shots would be nice. If I somehow I spent days on it and I found it less desirable than expected, you would might bite your tongue. There is a great oportunity to create the Wikipedia page for BitChan if you have that much time on your hands. To many questions to ask...
righttoprivacy wrote
Reply to I2P+ 2.5.0+ released! by z3d
Always a good day seeing a new I2P+ update <3
Rambler wrote
Reply to I2P+ 2.5.0+ released! by z3d
Good work!
NotQball wrote (edited by a moderator )
Reply to I2P+ 2.5.0+ released! by z3d
Considering the goggles, I would say you were watching the eclipse or picked up welding. I'm going to look into the Snark thing next month. Until than it makes a great reseed along with the official (waiting for a brain transplant list) update. To understand that you cut your vacation short because the network is running great... don't worry is not your fault.
thesea OP wrote
Reply to comment by z3d in Question about identities in I2P by thesea
Thanks. I was wondering if I could use my i2p email as a burner address on clearnet or if the email is somehow connected to other i2p identities like torrenting. Like they all using the same public router address or something. Now I know that's not the case
z3d wrote
Reply to Question about identities in I2P by thesea
Your i2pmail address isn't directly linkable to your torrents unless you happen to post torrents to trackers with your i2pmail e-mail address embedded in the tracker information. If your i2pmail address uses the same name as your postman account, then people may be able to guess your e-mail address from your postman account name.
Generally, as long as you keep your I2P identity separate from your clearnet identities, you should be fine. If you don't want to be identifiable as the same person on various services, use a separate identity for each service that requires a login.
Regarding seeding torrents, if you're the only person seeding a torrent, then a restart of your router will give you a new I2PSnark destination but may still reveal to the observant that your old destination and new destination correlate. On the other hand, if you're one of many seeds, it's difficult to correlate your previous I2PSnark destination with your new destination.
For extra peace of mind, you can configure I2PSnark to delay starting torrents for a longer period post-startup to make correlation even more difficult.
lolz wrote
Reply to comment by not_bob in Hit count implementation on static eepsite by bottticelli
Ok where to put this
gmail wrote
I used to file complains... now I get even.
whyO OP wrote
Reply to comment by stormycloud in by whyO
No questions really besides why it was deleted, It's a cool page!
stormycloud wrote (edited )
Reply to by whyO
Yes what question do you have about the graphs?
PrivacyOsint wrote
Reply to comment by not_bob in notbob.i2p - stats for 2023 by not_bob
Trying to make a difference with one step at a time adds up over the years.
not_bob wrote (edited )
In the near future I plan to be writing more little toys like this. Then plan is to have a toys.notbob.i2p site with a list of useful things.
Here is code what what I have running. You can see an example of it running here http://5gn3ca4z4occksx2cnwbcrun2mum2eg2c7zgfi7k7fetruwzmdiq.b32.i2p/count.html
To use it, you need include code like the following.
<img src="http://5gn3ca4z4occksx2cnwbcrun2mum2eg2c7zgfi7k7fetruwzmdiq.b32.i2p/conter.cgi?page=123456789k&color=green" height=40>
Pick a number. That will be your site number. Or, you can use a new number for each html page. But, any page with the same number will increment that number's count.
As for the color. Use normal color names. They should work. No hex colors. If you do not specify a color then it will default to black text. The background will be transparent.
Anyone is welcome to use this freely. Enjoy!
#!/usr/bin/perl
# code by notbob.i2p
use warnings;
use Fcntl ':flock'; # Import LOCK_* constants
use Time::HiRes qw(usleep); # For sub-second sleeping
use CGI qw/:standard/;
$site = param("site");
$site =~ s/\D//g;
$color = param("color");
$color = lc($color);
$color =~ s/[^a-z]//g;
if ( $color eq "" ) { $color = "black"; }
print("Content-type: image/svg+xml\n\n");
# File to store the page counter
my $counterFile = "/comhtml/5gn3ca4z4occksx2cnwbcrun2mum2eg2c7zgfi7k7fetruwzmdiq.b32.i2p/counter/$site.txt";
# Function to read the current counter value
sub read_counter {
my ($filename) = @_;
open(my $fh, '<', $filename) or die "Cannot open file $filename: $!";
flock($fh, LOCK_SH); # Shared lock for reading
my $counter = <$fh>;
chomp($counter);
close($fh);
return $counter;
}
# Function to increment and save the counter
sub save_counter {
my ($filename, $counter) = @_;
open(my $fh, '>', $filename) or die "Cannot open file $filename: $!";
while (!flock($fh, LOCK_EX | LOCK_NB)) {
# If the file is locked, wait a short time and try again
usleep(100000); # 100 milliseconds
}
print $fh $counter;
close($fh);
}
# Read current counter value from file
my $counter = -e $counterFile ? read_counter($counterFile) : 0;
# Increment the counter
$counter++;
# Save updated counter value to file
save_counter($counterFile, $counter);
# Generate HTML page counter span
#print "Content-Type: text/html\n\n";
#print "<span id=\"counter\">$counter</span>\n";
print "<svg width=\"100\" height=\"50\" xmlns=\"http://www.w3.org/2000/svg\">
<text x=\"10\" y=\"40\" font-family=\"Arial\" font-size=\"40\" fill=\"$color\">$counter</text>
</svg>";
To use this, you will also need to create a counter directory on the webserver and give it read-write permission for whatever webserver you are running.
not_bob wrote
Reply to comment by bottticelli in Hit count implementation on static eepsite by bottticelli
I have added a way to change the color. just add &color=color to the end of the url and it will change the text color. The background will be transparent.
You can use any normal color name, red, green, blue, purple, orange, plum, and so on. If you don't like these colors, try others.
if you do not specify a color it will default to black. If you try an invalid color, it will default to black.
not_bob wrote
Reply to comment by bottticelli in Hit count implementation on static eepsite by bottticelli
It should show a transparent box with a black number in it. If your site is set to dark mode that will not work.
So long as your browser has access to I2P it should work.
bottticelli OP wrote
Reply to comment by not_bob in Hit count implementation on static eepsite by bottticelli
Thank you very much /u/not_bob/, I appreciate. However, as of now this feature is not working on my side. There is blank space in place of the counter rectangle. What can be the possible issue? How do you think?
not_bob wrote (edited )
I have written a counter you can use in a static site.
To use the counter just include the following code in your html.
<img src="http://5gn3ca4z4occksx2cnwbcrun2mum2eg2c7zgfi7k7fetruwzmdiq.b32.i2p/counter.cgi?site=123842384" height=30>Change the site number to a random number, and that will be your site number. Feel free to adjust the height to anything you want, the output is a svg file, so it will scale.
You could even use a different site number for each page on your site. Each site has it's own unique count.
As for logging. That server logs access just as any other normal webserver does. I do not share the data with anyone, and the only identifying information that is collected by the server is the b32 of the client who hits the site and the time/date.
not_bob OP wrote
Reply to comment by noptic in notbob.i2p - stats for 2023 by not_bob
We already have mirrors of quite a few useful sites and working outproxies.
Also, you are welcome. I work hard to be a useful member of the community.
not_bob wrote
Reply to comment by z3d in Hit count implementation on static eepsite by bottticelli
Very good, but it should really use flock for file locking to prevent possible race conditions.
But, so long as the site isn't getting a really large number of hits, this is unlikely to be a problem even if you don't use it.
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:
#!/usr/bin/perl
use strict;
use warnings;
# File to store the page counter
my $counterFile = "counter.txt";
# Read current counter value from file
my $counter = 0;
if (-e $counterFile) {
open(my $fh, '<', $counterFile);
$counter = <$fh>;
chomp($counter);
close($fh);
}
# Increment the counter
$counter++;
# Save updated counter value to file
open(my $fh, '>', $counterFile);
print $fh $counter;
close($fh);
# Generate HTML page counter span
print "Content-Type: text/html\n\n";
print "<span id=\"counter\">$counter</span>\n";
noptic wrote
Reply to notbob.i2p - stats for 2023 by not_bob
Looks like I2P usage and content is growing. I hope we will have most of the internet available on I2P in a few years.
Thanks for hosting your valuable service for all this time, you are a trooper.
NotQball wrote
Reply to I2P Under Attack By Zombie Routers by righttoprivacy
For his situation it is a wonderful idea. For me it is a terrible ideea. I doubt that you want to be in his shoes at the current time. Go see a Taylor Swift concert or watch House of Russia. Very few uninitiated on this network.