Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > How to detect when request from local computer (server)

Thread Tools

How to detect when request from local computer (server)

Rafael Leonhardt
Posts: n/a
How I can to detect when a user access a site from the server?
I need to control someting like "remoteonly" on custom errors in my aspx to
show some information when local and other wen remote.

Reply With Quote
Posts: n/a
use Request.ServerVariables;
and retrieve the HTTP_HOST server variable.
if it is localhost, then the use is accessing the site from the server.

syntax would be like so:

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to get Python make to detect /usr/local/ssl B.A.S. Python 0 12-08-2011 02:21 AM
How to Detect a new file added to a folder and copy to the local machine andy Perl Misc 2 10-05-2007 02:36 PM
detect local WinXP username in javascript? töff Javascript 0 05-05-2007 10:18 PM
Display html on another computer instead of local computer Lionel Neo ASP .Net Web Controls 1 10-11-2004 10:55 AM
Re: Accessing Request.InputStream / Request.BinaryRead *as the request is occuring*: How??? Brian Birtle ASP .Net 2 10-16-2003 02:11 PM