News for hackers. Stuff that matters.
Re:How to track and display profile views on GitHub by andrew_ on Thursday July 09, 2020 @10:43AM (#23780810)
Everything old is new again. I used this same technique on MySpace 15 years ago. I wonder if Github will try to filter that out the same way MySpace did back in the day.
Re:How to track and display profile views on GitHub by alibarber on Thursday July 09, 2020 @11:08AM (#23781080)
Memories! I hid my top 6 and made a 'random friend' thing. It was an image i.e. http://whatever/random-friend.jpg that linked to http://whatever/forward-to-friend. The server served up a random profile picture - and crucially a cookie header that set the friend-id as a cookie that forward-to-friend would use to send you to the corresponding profile. I was _so_ proud of it at the time...
Re:How to track and display profile views on GitHub by rushter on Thursday July 09, 2020 @10:56AM (#23780962)
I did some research before writing an article. GitHub started proxying images in 2014, and there are a lot of repositories that use this technique to keep their stats. I think GitHub is OK with that.
Re:How to track and display profile views on GitHub by jrrrr on Thursday July 09, 2020 @12:00PM (#23781645)
Re: proxy security concerns:

>Unlike GitHub, most of them don't even bother proxying the image to hide IP, referrer, and browser agent. If you want to allow external images on your site, you must proxy them and hide everything about a person who requested it. > A person with bad intentions can trick a victim into opening your profile that looks completely legit and detect his IP and a browser.

Can you explain this in more detail? Given a profile host that doesn't proxy, how does that attack work?

Re:How to track and display profile views on GitHub by nso on Thursday July 09, 2020 @12:18PM (#23781808)
Attack?

1. your browser opens image from external server (in this step the server gets your IP and potentially user agent as that's how browsers communicate with servers)

2. there is no step 2

Re:How to track and display profile views on GitHub by cutemonster on Thursday July 09, 2020 @03:55PM (#23784371)
What? My step 2: Go to ip addr and ask your favorite celebrity (whose ip you got) for an autograph and selfie together
Re:How to track and display profile views on GitHub by f311a on Thursday July 09, 2020 @01:19PM (#23782533)
The IP itself can be a very valuable information if you target famous people, politicians, criminals and so on.

Such people usually know, that clicking on random links is not safe.

Re:How to track and display profile views on GitHub by vmception on Thursday July 09, 2020 @11:10AM (#23781105)
I think I did this for emails sometime between 15 years ago and today
Re:How to track and display profile views on GitHub by input_sh on Thursday July 09, 2020 @11:10AM (#23781103)
> the same way MySpace did back in the day.

For us that weren't around in MySpace era, how did they do that?

Re:How to track and display profile views on GitHub by alibarber on Thursday July 09, 2020 @11:18AM (#23781184)
I can't remember much about images - but basically filtering out question-marks and equals symbols (i.e. ...thing.php?some=value) in a lot of places. I remember getting Facebook and when they first started their API it was a bit better thought out, so they loaded images on the user's behalf. Some great reading about 'hacking' myspace at the time: https://samy.pl/myspace/
Re:How to track and display profile views on GitHub by oalders on Thursday July 09, 2020 @12:14PM (#23781774)
Right. So you just had to serve a counter up via http://example.com/path/to/my/counter.gif and embed whatever info you needed in the path to get around this.