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

Honor Do Not Track requests #93

Merged
merged 6 commits into from
Jun 24, 2018
Merged

Honor Do Not Track requests #93

merged 6 commits into from
Jun 24, 2018

Conversation

danirod
Copy link
Member

@danirod danirod commented Jun 24, 2018

This PR adds support for Do Not Track.

Do Not Track is a Candidate Recommendation for browsers and websites willing to implement a signal sent by web browsers to web servers to indicate server operators the user behind the web browser does not want to be tracked online.

makigas.es will not respect the user decision by disabling third party components that cannot respect DNT in a faithfully way whenever the user has enabled DNT. This removes Google Analytics whenever the user has DNT enabled.

Neither YouTube embeds nor Disqus have been removed because YouTube embeds are served through youtube-nocookie.com anyway, so there is no risk for information leaks unless the user play those videos. Disqus seems to be respecting DNT according to the docs, so the ban has been lifted as well.

danirod added 5 commits June 24, 2018 15:09
This commit will display a banner on top of the page whenever the user
browses the page using the DNT header on their browser. To display the
banner, the DNT header must have a value of '1'. It won't be triggered
if the DNT header has a value of '0' or if the DNT header has no value
because the browser does not support it.

If the user closes the banner, the browser will set a cookie to
acknowledge the user has read the banner, in order not to display the
banner anymore on further requests.
To be done: force display Disqus even when
DNT is off.
@danirod danirod self-assigned this Jun 24, 2018
@danirod danirod mentioned this pull request Jun 24, 2018
This commit replaces the check for the DNT header. Instead of looking if
the DNT header has a value of "1", it will test if the DNT header has a
value starting with the literal '1'.

This is done because, according to the DNT standard proposal, there may
be DNT extensions in the future after the literal 0 or literal 1.
Therefore, it makes sense to only look for the first character of the
DNT header, respecting future extensions that add extra data to this
header.
@danirod danirod merged commit cc8342e into master Jun 24, 2018
danirod added a commit that referenced this pull request Jun 24, 2018
This PR adds support for Do Not Track.

Do Not Track is a Candidate Recommendation for browsers and websites
willing to implement a signal sent by web browsers to web servers to
indicate server operators the user behind the web browser does not want
to be tracked online.

makigas.es will not respect the user decision by disabling third party
components that cannot respect DNT in a faithfully way whenever the user
has enabled DNT. This removes Google Analytics whenever the user has DNT
enabled.

Neither YouTube embeds nor Disqus have been removed because YouTube
embeds are served through youtube-nocookie.com anyway, so there is no
risk for information leaks unless the user play those videos. Disqus
seems to be respecting DNT according to the docs, so the ban has been
lifted as well.

Fixes: #21
@danirod danirod deleted the dnt branch November 15, 2018 22:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant