this post was submitted on 11 Aug 2023
499 points (96.8% liked)

Privacy

31958 readers
990 users here now

A place to discuss privacy and freedom in the digital world.

Privacy has become a very important issue in modern society, with companies and governments constantly abusing their power, more and more people are waking up to the importance of digital privacy.

In this community everyone is welcome to post links and discuss topics related to privacy.

Some Rules

Related communities

Chat rooms

much thanks to @gary_host_laptop for the logo design :)

founded 5 years ago
MODERATORS
 

Note: This post now archived and as such no longer works

An external image showing your user-agent and the total "hit count"

you are viewing a single comment's thread
view the rest of the comments
[–] skullgiver@popplesburger.hilciferous.nl 131 points 1 year ago (19 children)

Made a meme one that took 3 minutes to program, 5 minutes to find a good offline GeoIP location source for, 10 minutes to come up with a design for, and half an hour to make sure nothing got logged by the web server.

An image that tells you where you live based on your GeoIP location

[–] max@nano.garden 24 points 1 year ago

Finally. Someone noticed πŸ₯Ή

[–] vithigar@lemmy.ca 21 points 1 year ago (1 children)

Joke's on you. IP geolocation where I am is an unreliable mess and your image got it wrong by about 1000km!

[–] skullgiver@popplesburger.hilciferous.nl 10 points 1 year ago* (last edited 11 months ago)

[This comment has been deleted by an automated system]

[–] TwinTusks@outpost.zeuslink.net 19 points 1 year ago (2 children)

Location is right, but I highly doubt anyone near me is using Lemmy (dictatorship here).

If you live in a dictatorship and this thing can get your location right, you should probably be using some kind of VPN. Wouldn't want you to run into trouble with the regime!

[–] lFenix@lemmy.ml 8 points 1 year ago (1 children)

I’m not using a VPN or anything and it got my location wrong by 700 kilometers πŸ€”

[–] RickyRigatoni@lemmy.ml 20 points 1 year ago (1 children)

Are you sure you are where you think you are? When's the last time you looked outside?

[–] TechieDamien@lemmy.ml 10 points 1 year ago

Oh no! I've been kidnapped!

Great, hot milfs near my location

[–] mojo@lemm.ee 7 points 1 year ago (1 children)

Woah this is really cool. Though I was way off for me and I'm not on a VPN right now.

[–] Anticorp@lemmy.ml 5 points 1 year ago (2 children)

You can run Geolocation with images now? What the heck? How?

[–] skullgiver@popplesburger.hilciferous.nl 23 points 1 year ago* (last edited 1 year ago)

The image is generated on demand by a PHP script. It's not a static image file. Every time the web browser sends a GET /poc.png, a new image is generated based on the information your browser or app sends the server.

It's actually how a lot of tracking code works. The image data returned may be the same, but the data collection through cookies and maybe even some passive fingerprinting all happen every time you send a request.

[–] lightstream@lemmy.ml 10 points 1 year ago (1 children)

It's not the image, it's a normal image. The server does the hard work when you make the request, and then it just builds the image accordingly.

[–] Anticorp@lemmy.ml 4 points 1 year ago

Yeah I saw OPs explanation in the comments. That is fucking cool! And scary! I've never needed to generate images with code before, so Ive never even considered something like this before.

[–] kabobglance@infosec.pub 4 points 1 year ago (1 children)

You have the code for this? Very interested in how you implemented it

[–] skullgiver@popplesburger.hilciferous.nl 14 points 1 year ago* (last edited 11 months ago) (1 children)

[This comment has been deleted by an automated system]

[–] kabobglance@infosec.pub 7 points 1 year ago (2 children)

Damn, PHP is such a sleeper of a language, I always forget how useful it can be.Thanks for sharing!

[–] skullgiver@popplesburger.hilciferous.nl 7 points 1 year ago (2 children)

PHP is underappreciated, especially recent PHP. Null coalescing operators! Actually typed variables that produce an error if you pass the wrong type! It's superior to Python despite it's mid-2000s-spaghetti-college-kid-developer reputation.

Hell, I may get downvoted for this, but I honestly believe PHP's Doctrine is superior to Java/Kotlin's Hibernate. Symfony and Spring are almost equally good in terms of functionality, though PHP is quite a lot slower, sadly.

[–] kabobglance@infosec.pub 1 points 1 year ago

Nice, sounds like it's getting modernized. I'll have to give it another round, thanks!

[–] salient_one@lemmy.villa-straylight.social 0 points 1 year ago* (last edited 1 year ago) (1 children)

Genuinely curious, how is it superior to Python in your opinion?

Edit: Apart from the things you listed πŸ˜…

[–] Anticorp@lemmy.ml 3 points 1 year ago

It can run natively on an Apache server without any frameworks required to render user website markup and serve pages. That's a pretty awesome advantage.

[–] Anticorp@lemmy.ml 3 points 1 year ago

PHP is the OG bad-ass for getting shit done. No setup, no compile, no deployment pipelines. Hell, you can create and write the files right there on the server with nothing more than an SSH terminal if you want.

[–] Rinnarrae@beehaw.org 4 points 1 year ago* (last edited 1 year ago)

I was wondering for a second why my town of all places was posted lmao. Also made me realize I forgot to turn my vpn back on.

[–] TriLinder@lemmy.ml 4 points 1 year ago* (last edited 1 year ago)

Thought about adding the user's location, but was worried PythonAnywhere could somehow cache the image between multiple people. A great demo though!

[–] remotedev@lemmy.ca 4 points 1 year ago (1 children)

My location is accurate, to give some good feedback on your program too lol

Haha it's just an IP lookup in a free database I've downloaded, I did 0% of the hard work. Thanks for the reply anyway!

[–] altima_neo@lemmy.zip 3 points 1 year ago

Hah, not my town, but close. That's where my ISP is located though.

[–] LucyLastic@beehaw.org 3 points 1 year ago

This is great, because it located me about a full day's drive from where I live, so I'm still pretty anonymous :-)

[–] mim@lemmy.sdf.org 3 points 1 year ago

Thanks for the heads-up.

Routing my Lemmy mobile app through orbot from now on. Seems to have fixed the issue.

[–] moitoi@feddit.de 1 points 1 year ago

I'm not using a VPN and the location isn't accurate.

[–] June@lemm.ee 1 points 1 year ago

It’s got me about an hour from where I actually am

[–] skankhunt42@lemmy.ca 1 points 1 year ago (1 children)

I hate this so much. Its super cool but MAN what the hell. I don't think I'm going to ever turn off my VPN anymore. I'm in a super small town and that image is correct.

It's cached somewhere because I can't get it to update. Maybe time for a new account too. Hmmmm

[–] WndyLady@lemm.ee 1 points 1 year ago

I wonder why the Baltimore community is so dead, then.

[–] newIdentity@sh.itjust.works 0 points 1 year ago (1 children)

Hey. I wanted to do this tomorrow.

Well I have a new idea which is pretty similar

[–] skullgiver@popplesburger.hilciferous.nl 2 points 1 year ago* (last edited 11 months ago) (1 children)

[This comment has been deleted by an automated system]

[–] newIdentity@sh.itjust.works 3 points 1 year ago (1 children)

I'm plannig to make one of these "dox'd memes" where someone says something controversial and another one answers with the ip address.

Ah, I see! I was also thinking of maybe using something like Google Earth to make a GIF that zooms into your local area but that was waaaaaaay to computationally expensive to render on the server.