Skip to content

Instantly share code, notes, and snippets.

@jz5
Created March 11, 2015 01:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jz5/d165b995884aaa781e3a to your computer and use it in GitHub Desktop.
Save jz5/d165b995884aaa781e3a to your computer and use it in GitHub Desktop.
If Request.UrlReferrer Is Nothing OrElse Request.UrlReferrer.Host <> Request.Url.Host Then
Response.StatusCode = HttpStatusCode.BadRequest
Return New EmptyResult
End If
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment