Rack middleware that denies all robots for staging and development environments.
Rack middleware that denies all robots for staging and development environments.
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
rake test