Created
May 14, 2015 04:03
-
-
Save pmachapman/4f7dbdf04650a2fa47f8 to your computer and use it in GitHub Desktop.
Determine if the request is local
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
<% | |
' Returns whether or not the request is local | |
Function IsLocal | |
' If the local address is the remote address, we are running locally | |
IsLocal = Request.ServerVariables("remote_addr") = Request.ServerVariables("local_addr") | |
End Function | |
' Show that this is a local request | |
Response.Write IsLocal | |
Response.End | |
%> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment