Created
March 11, 2015 01:57
-
-
Save jz5/d165b995884aaa781e3a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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