GrantByDefault

You can use the GrantByDefault property of the IIsIPSecurity object to set how you would like to specify server access. GrantByDefault is a Boolean property which determines whether the default setting is grant all with exceptions or deny all with exceptions. If GrantByDefault is TRUE, then all IP addresses and domains are granted access to the server (with the exception of the list entries of the DomainDeny and IPDeny methods). If GrantByDefault is FALSE, then all IP addresses and domains are denied access to the server (with the exception of the list entries of the DomainGrant and IPGrant methods).

Syntax

SecObj.GrantByDefault Boolean

 

Parameters
SecObj
An IIS Admin Object of type IIsIPSecurity.
Boolean
This is a value of TRUE or FALSE.
Code Example
<% 
  Dim SecObj 
  Set SecObj = GetObject("IIS://LocalHost/W3SVC/1") 
  'Set permissions to grant access by default.
  SecObj.GrantByDefault=TRUE
  SecObj.SetInfo
%> 
 
See Also

IPDeny, IPGrant, DomainDeny, DomainGrant, IIsIPSecurity