Quick References
      ADO
      ASP
      CSS2
      HTML
      JavaScript
      Jet SQL
      VBScript
      WML
      WMLScript
      WSH
      XHTML
      XML DOM
      XSLT

Features
      Knowledge Base
      Tutorials

Partners
     ZVON.ORG
     XML
     Planet Source Code
     VisualBuilder
     Web Design
     Your HTML Source
     XML/XSLT Forums
     ASPAlliance
     Scripts
     
     Programmers Heaven
     Tek-Tips Forums
     Developer Fusion
     Code Project











PROPERTY:  Response.Status

The Status property specifies the value of the HTTP status line returned by the server This is a three digit number followed by a short description.

Code:
<%
IPAddress = Request.ServerVariables("REMOTE_ADDR")
If IPAddress <> "208.5.64.223" Then
   Response.Status = "403 Access Forbidden"
   Response.Write Response.Status
   Response.End
End If
%>
 
<HTML>
<HEAD>
</HEAD>
<BODY>
You have accessed this page through the IP Address of 208.5.64.223. </BODY>
</HTML>

The output of the above is the following if the IP address of the client is 208.5.64.223:
You have accessed this page through the IP Address of 208.5.64.223.
 
Otherwise the output is as follows if the IP address is not 208.5.64.223:
403 Access Forbidden
 


Copyright 1999-2005 by Infinite Software Solutions, Inc. All rights reserved.
Trademark Information