Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
require 'rubygems'
require 'sinatra'
get '/anonymous' do
"<html><body><a href='data:text/html;charset=utf-8,<html><script>window.location=\"http://localhost:4567/request\";</script></html>'>Link</a></body></html>"
end
get '/request' do
request.referer.inspect
end
get '/normal' do
"<html><body><a href=\"http://localhost:4567/request\">Link</a></body></html>"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.