0.0
No commit activity in last 3 years
No release in over 3 years
Hides default Heroku (*.herokuapp.com) URLs from search engines in order to avoid duplicate content issues
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Development

~> 1.3
>= 0
 Project Readme

Hide Heroku

Hides default Heroku (*.herokuapp.com) URLs from search engines in order to avoid duplicate content issues.

Info

All Heroku apps are accessible via the *herokuapp.com, even after a custom domain is assigned. This introduces the potential for duplicate content issues if search engines index the same content under both custom and default domains.

HideHeroku blocks robots from all content served under the *.herokuapp.com domain, including assets, by issuing 'noindex, nofollow' X-Robots-Tag HTTP response headers on those requests.

More on X-Robots-Tags:

Installation

hide_heroku is Rack middleware that can be used with Rails or any other Rack application.

Add this line to your application's Gemfile:

gem 'hide_heroku'

And then execute:

$ bundle

Or install it yourself as:

$ gem install hide_heroku

For non-rails applications, add this line to the config.ru file:

use Rack::HideHeroku