Skip to content

Instantly share code, notes, and snippets.

@3en
Created December 30, 2010 01:55
Show Gist options
  • Save 3en/759353 to your computer and use it in GitHub Desktop.
Save 3en/759353 to your computer and use it in GitHub Desktop.
referer = request.referer
host = request.env["HTTP_HOST"]
referer_uri = referer.split(host).last
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment