Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move anonymous user cookie test to client-side JS #321

Closed
jace opened this issue Apr 11, 2016 · 2 comments
Closed

Move anonymous user cookie test to client-side JS #321

jace opened this issue Apr 11, 2016 · 2 comments

Comments

@jace
Copy link
Member

jace commented Apr 11, 2016

We currently set a test cookie and expect to read it back to determine if the user is a real cookie-accepting browser, at which point they are issued an anon_user record.

Unfortunately, bots also play back cookies and get registered as real browser-using humans.

To fix this, we'll need to move some of the code into JS: set a test cookie on the first request, then have JS play it back to confirm it's a real browser.

This will still be fooled by bots that use headless browsers, but our current problem appears to be an aggressive Python script.

@iambibhas
Copy link
Contributor

iambibhas commented Aug 17, 2016

@jace Headless browsers don't seem to have window objects. Can we use that instead of/along with scroll/ events?

Edit: ok, there seems to be more headless browsers now that support window objects. nvm.

@jace
Copy link
Member Author

jace commented Nov 16, 2017

Deprecated by #409.

@jace jace closed this as completed Nov 16, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants