Project

donottrack

0.0
No commit activity in last 3 years
No release in over 3 years
Until the Do Not Track situation is completely flushed out...
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.6.0
>= 0
 Project Readme

donottrack

Simple rack middleware utility to make sure the upcoming standard DNT header is always available. This will normalize things like the X-Do-Not-Track header that may be floating around, allow for server override, and default to 0 (allow tracking, the proposed browser default) if there's no better option.

Installation

gem install donottrack

Usage

# Default behavior
use Rack::DoNotTrack

# Manual override (always enable do not track)
use Rack::DoNotTrack, 1

Both of these will ensure that, in Rails for instance, request.headers['HTTP_DNT'] will always be available.

Copyright

Copyright (c) 2011 Chris Kalafarski. See LICENSE.txt for further details.