lucb1e / cookielesscookies Goto Github PK
View Code? Open in Web Editor NEWDemo of tracking using etags instead of cookies (or localstorage or anything else)
License: Do What The F*ck You Want To Public License
Demo of tracking using etags instead of cookies (or localstorage or anything else)
License: Do What The F*ck You Want To Public License
我看etag的生成方式,有可能同一局域网的多台电脑,session公用的情况,这个怎么解决呢
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?
ETag support is not available in the old IE-browsers.
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.
Hi,I have a question about the code here:https://github.com/lucb1e/cookielesscookies/blob/master/index.php#L55-L59.
I want to know why you need to read picture file when the eTag was matched (index.php line 59)?in my opinion,the data of picture will be send to client again.
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.