Giter VIP home page Giter VIP logo

cookielesscookies's Introduction

Cookieless cookies

This repository is a demonstration of tracking users by using etags instead of cookies (or localstorage or anything else).

http://lucb1e.com/rp/cookielesscookies

License

Copyright © 2013 lucb1e.

This work is free. You can redistribute it and/or modify it under the terms of the Do What The Fuck You Want To Public License, Version 2, as published by Sam Hocevar. See the LICENSE file for more details.

cookielesscookies's People

Contributors

lucb1e avatar spatil47 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cookielesscookies's Issues

well, you actually use user-agent and ip here

see this line:

$etag = substr(sha1($secret . sha1($_SERVER["REMOTE_ADDR"]) . sha1($_SERVER["HTTP_USER_AGENT"])), 0, 18);

As we must track the user for the first document page( eg: http://lucb1e.com/rp/cookielesscookies/ in the example), bus this document request doesn't contain a ETAG header. Which means if you use a random string instead of user-agent and ip here, the user can't not be tracked here.
how to fix this?

Chrome Weirdness

Nothing really wrong with your code, just an FYI. A developer and I are both using Chrome on the same network. The changes I make are visible on his Chrome and the changes he makes are visible on my Chrome. This doesn't happen on Firefox nor Safari. Just thought this might be worth the mention. I'd be interested in knowing why this happens.

It‘s no bussiness of Etag,"cookie" can work just because of IP and UA,am I right?

When we visit the tracker.jpg we can get it's Etag.But when we visit the website we can't get Etag,and everytime it will generate a new Etag. The “cookie” can work just because $etag = substr(sha1($secret . sha1($_SERVER["REMOTE_ADDR"]) . sha1($_SERVER["HTTP_USER_AGENT"])), 0, 18); It depend on IP and UA,everytime it genrate the same Etag.When IP or UA changed it will not work,and if the method of generate Etag is random it also can't work.

I have a issue here

  • I visited your page: http://lucb1e.com/rp/cookielesscookies/
  • Now after your post... i refresh the page
  • Page Visit Count increases to two
  • and now i keep refreshing the page for a number of times...
    • the Page Visit Count increases with every refresh BUT
    • sometimes the count is reset to 2
    • on further refresh actions, the count again starts with two... goes up until some point and then again drops to 2
      • this keeps on happening, but there's no pattern when the count is reset to 2.

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.