Giter Club home page Giter Club logo

Hotline Webring

This can only mean one thing!

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")

Prevent new redirections from being created

This helps when we're experiencing a flood of spam.

To prevent creation, set DISALLOW_CREATING_NEW_REDIRECTIONS to anything on Heroku:

production config:set DISALLOW_CREATING_NEW_REDIRECTIONS=1

To allow creating new redirections again, unset the variable:

production config:unset DISALLOW_CREATING_NEW_REDIRECTIONS

API

We have an API, oddly enough. It's used by our Slack bot, and we don't expect (or allow) anyone else to use it.

Guidelines

Use the following guides for getting things done, programming well, and programming in style.

Hotline Webring 's Projects

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.