Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

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

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 README.md
Octocat-spinner-32 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.