class Rack::Protection::RemoteReferrer

def accepts?(env)

def accepts?(env)
  safe?(env) or referrer(env) == Request.new(env).host
end