Skip to content

mysticaltech/CSS-Tracking

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CSS-Tracking

This project combines CSS, Javascript and PHP to track users. I made this because I was researching in to tracking cookies, however if you clear your cookies you don't clear your cached files so I thought it'd be neat if you could make (sort-of) malicious css.

It could also be used in combination with tracking cookies!

How it works

  • style.php has a content-type of text/css so it can output dynamically generated css

  • style.php inserts a psuedo-element that is not visible in to index.html and its value is a uniquely generated ID

  • style.php automatically caches the css

  • track.js fetches the unique identifier from the css file with a query selector

  • may be used to send the uid to a database with ajax

  • .htaccess redirects all .php extensions to their .css counter-part so you may reference style.css instead of style.php

About

This project combines CSS, Javascript and PHP to track users.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • PHP 56.5%
  • HTML 25.2%
  • JavaScript 13.5%
  • ApacheConf 4.8%