Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Quickily turn your Heroku app in and out of SOPA protest mode.
Ruby
tree: 8dccb2305f

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
README.md
init.rb

README.md

Heroku SOPA

Quickily turn your Heroku app in and out of SOPA protest mode.

Internally it uses the Custom Error Pages add-on to make your app render a 503 response containing a protest instead of your regular HTML.

Keep in mind it will override any existing MAINTENANCE_PAGE_URL on the app.

Usage

$ heroku plugins:install git@github.com:pedro/heroku-sopa.git
heroku-sopa installed

$ heroku sopa:on
SOPA protest is now enabled
Redirecting to: http://www.zachstronaut.com/lab/text-shadow-box/stop-sopa.html

$ heroku sopa:off
SOPA protest disabled

Available Protests

Change the protest page with a param. For instance:

$ heroku sopa:on eff
SOPA protest is now enabled
Redirecting to: http://blacklists.eff.org

You can pick any from the list below:

Or use any page you like:

$ heroku sopa:on http://my-custom-sopa-protest-page.com
SOPA protest is now enabled
Redirecting to: http://my-custom-sopa-protest-page.com

About

Written by Pedro Belo. Thanks Caley Woods for the idea!

Something went wrong with that request. Please try again.