https://github.com/rvflash/beacon
Beacon (poc)
https://github.com/rvflash/beacon
Last synced: about 1 month ago
JSON representation
Beacon (poc)
- Host: GitHub
- URL: https://github.com/rvflash/beacon
- Owner: rvflash
- License: mit
- Created: 2018-07-22T21:02:50.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-07-22T21:08:08.000Z (about 8 years ago)
- Last Synced: 2025-03-23T09:35:12.794Z (over 1 year ago)
- Language: Go
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Beacon (poc)
Very simple and naive Proof Of Concept to verify the behavior of the method `navigator.sendBeacon()` to track visits.
Checks the both sides, server and client by trying to call JavaScript stuff on the page called by this method.
As expected, on the page called by this method, only the code on server side works.
## Installation
```
$ go get -u github.com/rvflash/beacon
```
## Quick start
```
$ cd $GOPATH/src/github.com/rvflash/beacon
$ go build && BEACON_PORT=8080 ./beacon
```
As you can see, you can change the port on the server by using the environment variable named BEACON_PORT.
By default, the server is launched on localhost:8080.