Hotline Webring
For more on what exactly this is and how to join the webring, please visit the homepage.
Getting Started
Set up the repo:
$ ./bin/setup
Run the app using Heroku Local:
$ heroku local
Run the specs:
$ bin/drake spec
Removing a site from the webring
Use Redirection#unlink
:
irb> redirection = Redirection.find_by(slug: "whatever")
irb> redirection.unlink
This will destroy the Redirection
and re-link its ring neighbors, sealing the
breach.
Blocking
When blocking a URL, specify the bare URL, without http
or www
subdomain.
To block everything from evil.com
but none of its subdomains:
BlockedReferrer.create!(host_with_path: "evil.com")
To block everything under the /one/
directory (evil.com/one/*
), but not the
root (for example, to block a user directory):
BlockedReferrer.create!(host_with_path: "good.com/~evil")
To block a subdomain:
BlockedReferrer.create!(host_with_path: "evil.good.com")
Guidelines
Use the following guides for getting things done, programming well, and programming in style.