Code Monkey home page Code Monkey logo

Comments (9)

antonkomarev avatar antonkomarev commented on August 16, 2024 1

There is no way to determine who is doing request. All requests comes from GitHub proxy server with the same IP and User Agent.

from github-profile-views-counter.

antonkomarev avatar antonkomarev commented on August 16, 2024 1

If there will be the way to determine who is doing request, I'd better create unique visitors count instead of views count. And wouldn't increment counter on self visiting.

from github-profile-views-counter.

antonkomarev avatar antonkomarev commented on August 16, 2024

@JellyBellyDev good idea! And pretty easy to implement 😉

from github-profile-views-counter.

antonkomarev avatar antonkomarev commented on August 16, 2024

Number format was added.

from github-profile-views-counter.

MuhaddiMu avatar MuhaddiMu commented on August 16, 2024

Hey @antonkomarev What if we make 1000 to 1K, 10000 to 10K and so on this will be more readable.

Thinking ahead of time; instead of displaying 7329587, we should display 7.3 Million

This thread might be helpful https://stackoverflow.com/questions/9461621/format-a-number-as-2-5k-if-a-thousand-or-more-otherwise-900

from github-profile-views-counter.

antonkomarev avatar antonkomarev commented on August 16, 2024

@MuhaddiMu I've thought about it, but after counter will reach 1K you will stop seeing it's updates for a long time. And there is no way to insert detailed numbers in popup on hover.

from github-profile-views-counter.

MuhaddiMu avatar MuhaddiMu commented on August 16, 2024

That makes sense!

from github-profile-views-counter.

antonkomarev avatar antonkomarev commented on August 16, 2024

@MuhaddiMu but every day after seeing spam hammering my server I'm thinking about hiding detailed numbers. Maybe it will decrease amount of abuse.

from github-profile-views-counter.

MuhaddiMu avatar MuhaddiMu commented on August 16, 2024

Yes, this is a good point or maybe you can set some sort of throttling. A specific number of request in a minute for a specific user

from github-profile-views-counter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.