Skip to content

Instantly share code, notes, and snippets.

@pmachapman
Created May 14, 2015 04:03
Show Gist options
  • Save pmachapman/4f7dbdf04650a2fa47f8 to your computer and use it in GitHub Desktop.
Save pmachapman/4f7dbdf04650a2fa47f8 to your computer and use it in GitHub Desktop.
Determine if the request is local
<%
' 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