86
Developing Web Applications with ColdFusion
Securing Custom Tags
ColdFusion’s security framework enables you to selectively restrict access to individual
tags or to tag directories. This can be an important safeguard in team development.
To avoid name conflicts, you can register custom tags as a security resource on the
ColdFusion Administrator Advanced Security page. See Administering ColdFusion
Serverfor details.
Encoding Custom Tags
You can use the command-line utility
cfencode
to encode any ColdFusion application
template. By default, the utility is installed in the
/cfusion/bin
directory. It is
especially useful for securing custom tag code before distributing it.
cfencode
uses the following syntax:
cfencode
infile outfile
[/r /q] [/h "message"] /v"2"
CFMODULE Attributes
Attribute
Description
Template
Required if the NAME attribute is not used. Specifies a relative path to
the cfm file. Same as TEMPLATE attribute in CFINCLUDE. Note that the
directory must have a mapping defined in ColdFusion Administrator
Example:
<CFMODULE TEMPLATE="../MyTag.cfm">
identifies a
custom tag file in the parent directory.
Name
Required if Template attribute is not used. Use period -separated
names to uniquely identify a sub-directory under the Custom Tags
root directory.
Example:
<CFMODULE NAME="Allaire.Alive.GetUserOptions">
identifies the file
GetUserOptions.cfm
in
Custom
Tags\Allaire.Alive
directory under the ColdFusion root
directory.
Attributes
Optional. You can list the custom tag’s attributes.
Summary of Contents for COLDFUSION 4.5-DEVELOPING WEB
Page 1: ...Allaire Corporation Developing Web Applications with ColdFusion ColdFusion 4 5...
Page 14: ...xiv Developing Web Applications with ColdFusion...
Page 26: ...xxvi Developing Web Applications with ColdFusion...
Page 34: ...8 Developing Web Applications with ColdFusion...
Page 70: ...44 Developing Web Applications with ColdFusion...
Page 84: ...58 Developing Web Applications with ColdFusion...
Page 114: ...88 Developing Web Applications with ColdFusion...
Page 148: ...122 Developing Web Applications with ColdFusion...
Page 174: ...148 Developing Web Applications with ColdFusion...
Page 208: ...182 Developing Web Applications with ColdFusion...
Page 244: ...218 Developing Web Applications with ColdFusion...
Page 274: ...248 Developing Web Applications with ColdFusion...
Page 288: ...262 Developing Web Applications with ColdFusion...
Page 300: ...274 Developing Web Applications with ColdFusion...
Page 350: ...324 Developing Web Applications with ColdFusion...
Page 362: ...336 Developing Web Applications with ColdFusion...