rack-robots

Rack middleware that denies all robots for staging and development environments.

Usage

Flag your staging and development environments:

export DISABLE_ROBOTS=true

# or on Heroku
heroku config:add DISABLE_ROBOTS=true

In a config.ru or equivalent:

use Rack::Robots
run Sinatra::Application

Testing

rake test