IFPCWebPublishingProperties2::RedirectUrl property

Applies to: desktop apps only

The RedirectUrl property gets or sets the URL to which requests blocked by the rule will be redirected.

This property is read/write.

Syntax


HRESULT put_RedirectUrl(
  BSTR bstrRedirectUrl
);

HRESULT get_RedirectUrl(
  BSTR *pbstrRedirectUrl
);

Property value

String that specifies the URL to which requests blocked by the rule will be redirected.

Error codes

These property methods return S_OK if the call is successful; otherwise, they return an error code.

Remarks

This property is read/write. Its default value is an empty string.

This property is applicable only if the Action property of the rule is set to fpcPolicyRuleActionDeny. If a URL is specified, Forefront TMG returns the URL specified to the client or user when a request is blocked by the rule. The URL must be specified in the format used in the following example: "http://widgets.microsoft.com/denied.htm"

Note  If you choose to redirect requests, the URL that you specify must be accessible to the clients or users selected. In other words, either the URL must be on an internal computer or some rule must explicitly allow access to the URL.

Requirements

Minimum supported client

Windows Vista

Minimum supported server

Windows Server 2008 R2, Windows Server 2008 with SP2 (64-bit only)

Version

Forefront Threat Management Gateway (TMG) 2010

IDL

Msfpccom.idl

DLL

Msfpccom.dll

See also

FPCWebPublishingProperties

 

 

Build date: 7/12/2010

Show: