Listing 1:
<!--- application.cfm --->
<!--- Allow only index.cfm to be executed --->
<cfif ListLast(GetTemplatePath(),'\') neq "index.cfm">
<!--- The user is calling a template OTHER than index.cfm Ð
You should redirect the user or halt further execution.-->
<cfelse>
Listing 2:
<!--- application.cfm --->
<!--- Allow only an authorized list of templates to be executed --->
<cfset variables.safetemplatelist = "index.cfm,indexsecure.cfm ">
<cfset variables.templatename = ListLast(GetTemplatePath(),'\')>
<cfif ListFind(variables.safetemplatelist, variables.templatename,",") eq 0>
<!--- call is being made to an unauthorized template.
You should redirect the user or halt further execution.-->
</cfif>
Listing 3:
Within FBX_Switch.cfm, split the one CFSWITCH in two.
<cfif ListLast(GetTemplatePath(),'\') eq "indexsecure.cfm">
<CFSWITCH expression="#fusebox.fuseaction#">
É. Put user authenticated fuseactions here
</CFSWITCH>
<cfelse>
<CFSWITCH expression="#fusebox.fuseaction#">
É. Put anonymous access fuseactions here
</CFSWITCH>
</cfif>