door

command module
v0.0.0-...-ec2138f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 16, 2019 License: MIT Imports: 7 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

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

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
⌂ 换网址