Previous Topic: Designate Affiliate Resources

Next Topic: Specify Affiliate Resources that Use Similar Responses and Headers

Define the Matching Rule for the Affiliate Resource

The MatchingRule attribute used with the AffiliateResource element specifies how the SAML Affiliate Agent compares each requested URL to a affiliate resource. This attribute is required.

The two possible values for the matching rule are:

Using a StrictPrefix

For the StrictPrefix attribute, the value of the requested URL has to match only the beginning of the URL prefix, before a query string (?). For example, if the entry is:

<AffiliateResource MatchingRule="StrictPrefix">protected</AffiliateResource>

will match: http://www.affiliate.com/protected/...

but will not match: http://www.affiliate.com/basic?protected

Using a Substring Prefix

For the Substring attribute, the value of the requested URL can match before or after the query string (?). For example, if the entry is:

<AffiliateResource MatchingRule="Substring">protected</AffiliateResource>

will match the following:

http://www.affiliate.com/protected/...

http://www.affiliate.com/basic?protected