antonkomarev/github-profile-views-counter

Opt-out of hit count

Closed this issue · 2 comments

As a normal visitor, I would like to be given the choice to opt-out from getting hits I made counted

Short answer, it is technically impossible.

Long answer:
This is counter of profile views (page hits), not a counter of unique visitors. There is no way to get the username, browser user agent or IP address of the visitor because GitHub proxies all image URLs through the GitHub Camo service. In other words, we can only increment the counter for each request from the GitHub proxy server, we don't know who initiated it.

Short answer, it is technically impossible.

Long answer:
This is counter of profile views (page hits), not a counter of unique visitors. There is no way to get the username, browser user agent or IP address of the visitor because GitHub proxies all image URLs through the GitHub Camo service. In other words, we can only increment the counter for each request from the GitHub proxy server, we don't know who initiated it.

Oh I see. Thanks for the reply though.
Closing the issue because like you said, it is technically impossible.