The <access> element provides a simple form of access control for a deck. This allows a deck to specify that only certain other decks may link to it (these decks are known as referring URLs).

There may be no more than one <access> element in a deck, and it must be the first thing inside the <head> element.


The <access> element supports the following attributes:

domaincdataSpecifies the domain (effectively, the range of servers) from which the referring deck must come.
pathcdataSpecifies the path within the referring URL that must match. (The path is the part of the URL that specifies a file or directory on the server.)
classcdataSets a class name for the element.
idelement IDA unique ID for the element.


Following is the example showing usage of this element:

Access is limited to other decks in www.tutorialspoint.com
   <access domain="www.tutorialspoint.com"/>

Access is limited to other decks in www.tutorialspoint.com/wml
   <access domain="www.tutorialspoint.com" path="/wml"/>