rack-robots

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

Downloads
11.2K
Stars
3
Committers
2

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:set DISABLE_ROBOTS=true

In a config.ru or equivalent:

use Rack::Robots
run Sinatra::Application

Testing

rake test