HUB
Sign inSign up

techbolt/spy-pixel

By techbolt

•Updated about 2 years ago

Dockerized version of a basic tracking pixel to track email and website opens.

Image
Developer tools
Monitoring & observability
Web analytics
0

801

techbolt/spy-pixel repository overview

Build Status

⁠🔍 Email Spy Pixel

A basic tracking pixel to track email and website opens. -- Dockerized version of collinsmc23's spy-pixel⁠

⁠Overview

Spy pixels, also commonly referred to as web beacons, are small artifacts implemented in applications to gather user information, which could include the User-Agent string, IP address, and if an email is opened etc. A basic method to collect this information is through the use of a 1x1 pixel with an embedded URL through a transparent PNG, GIF, JPG.

This project uses Python Flask to serve a static web page with a pixel.png included in the app/images/ directory. When a user opens an email or website with the embedded spy pixel, some information is (example below) logged to the spy_pixel_logs_all.log (all logs) and sources/{source}/spy_pixel_log.log (logs per source) files.

There are two variables, which are set through the url path of the pixel:

  • source (like website, mail, ...)
  • identifier (like website_a, mail_body_version_b, ...)
{
  "event": "Accessed",
  "source": "website",
  "identifier": "<some_identifier>",
  "timestamp": "<some_timestamp>",
  "user_agent": "<user_agent_string>",
  "referrer": "<referrer>",
  "accept_language": "de-DE,de;q=0.7",
  "cookies": {},
  "secure_connection": false,
  "hostname": "<your_hostname>",
  "ip_raw": "<ip_of_requestor>",
  "ip_info": "<information_about_ip_address>"
}

⁠Deploy

To deploy this application, use either the Dockerfile to build a docker image on your own or use the image from docker hub⁠. You can then bring the container up using the compose.yml file

If you want to use it in production mode, you should have a server, which is remotely available (such as a VPS). To use it a with domain, you can use the example compose file with traefik configuration.

Spy Away (For Learning Purposes only)

Spy Dwight

Tag summary
Recent tags
Content type
Image
Digest
sha256:15bb7cca1…
Size
69.5 MB
Last updated
about 2 years ago
docker pull techbolt/spy-pixel:latest