github
Advanced Search
  • Home
  • Pricing and Signup
  • Explore GitHub
  • Blog
  • Login

kellan / revcanonical

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
  • Pull Request
  • Download Source
    • 8
    • 3
  • Source
  • Commits
  • Network (3)
  • Issues (0)
  • Downloads (0)
  • Wiki (1)
  • Graphs
  • Branch: master

click here to add a description

click here to add a homepage

  • Branches (1)
    • master ✓
  • Tags (0)
Sending Request…
Enable Donations

Pledgie Donations

Once activated, we'll place the following badge in your repository's detail box:
Pledgie_example
This service is courtesy of Pledgie.

a rev="canonical" based URL shortener (as a gae app) — Read more

  cancel

http://revcanonical.appspot.com/

  cancel
  • Private
  • Read-Only
  • HTTP Read-Only

This URL has Read+Write access

you can paint the bike shed any color you want 
kellan (author)
Wed Apr 15 09:40:49 -0700 2009
commit  95179884d5d61ba73830f76f1d88ab780f7312ea
tree    f0ba28e20eda12a3c893e707eb0101342cc8161c
parent  ad5f0a5bca6acbcdfd8addbf5db9f418d96af377
revcanonical /
name age
history
message
file README Loading commit data...
file app.yaml
file index.html
file index.yaml
file main.py
README
Huh?

RevCanonical is url shortening with a twist. Instead of creating its own super short versions of links, it checks to see 
if the link owner has published a shortened version of the given page using HTML link element. If not, we just return 
the original URL. And you should bug the link owner about providing a better alternative.

Why?

URL shorteners are as problematic as they are useful. They create SPOFs, that over any meaningful timeframe are 
guaranteed to create data loss, eroding the historical record. And then there are the privacy concerns. And the 
usability ones. See also on url shorteners and Solving the TinyUrl centralization problem.

Details?

RevCanonical searches the referenced resource for:

    * <link rev="canonical" href="..."> (i.e. "I am the canonical URL of that page over there")
    * <link rel="alternate shorter" href="..."> (or truth be told any link rel including the string "alternate short*")

There is also an API version, which returns just the resulting URL.

See also the blog: http://revcanonical.wordpress.com/

!! This code is on github, so it's implicitly somewhat open. Unfortunately it's rediculously unclear what terms you can 
use/modify this under.  An explicit license and COPYING file should be applied.
Blog | Support | Training | Contact | API | Status | Twitter | Help | Security
© 2010 GitHub Inc. All rights reserved. | Terms of Service | Privacy Policy
Powered by the Dedicated Servers and
Cloud Computing of Rackspace Hosting®
Dedicated Server