GithubHelp home page GithubHelp logo

door's Introduction

door ๐Ÿšช

through door to numbers

about

Count your views on your website without JavaScript and privacy focused. No tracking just counting.

# Clone repository.
$ git clone https://github.com/oltdaniel/door.git
# Enter repository.
$ cd door
# Install dependencies.
$ ./deps.sh
# Start server.
$ go run main.go
# Run to store stats as txt
$ ./store.sh

To call this server to count the views, you can simply add a new css file to your existing website. The average size this request will consume is under 200 bytes.

<link rel="styelsheet" href="http://localhost:8080/style.css">

To view your stats call localhost:8080/stats.

how

We remove the data that allows us to track down the user from the IP in order to make it more private. In order to gain some unqiness we add the user agent of the browser and the path that has been called. All values will be then hashed with the blake2b hash function.

The result: We can distinguish wether this call already has been made, or if the same 'user' called a path twice, but not if a certain user called another path.

license

just do what you want

MIT License

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.