What is the best way to limit access to a specific template?  Template2
can only be accessed via template1.  Disallowing user access to
template2 simply by typing in the specific url for template2.  I see
where
<CFABORT> can limit access to a ip addresses as exampled in the manual
Advanced Application Development, page 520;

<CFIF Left(CGI.RMOTE_ADDR, 11) NEQ "208.193.16.">
<H1>Unauthorized host detected! Access denied!</H1>
<CFABORT SHOWERROR="You are not authorized to use this function!">
</CFIF>

Can I modify the code so that it can limit via the calling template?

Thanks,

Jerre


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to