Response Object
All Collections
All Methods
All Objects
All Properties
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-2001 by Infinite Software Solutions, Inc. All rights reserved.
Trademark Information