> Is there a way to disable error messages that are thrown when > Application.cfm or OnRequestEnd.cfm are called directly > ending up in and clogging ColdFusion's application.log? > > Example from application.log: > ---------- > "Error","TID=1852","06/14/01","23:16:09","127.0.0.1","Mozilla/4.0 > (compatible; MSIE 5.5; Windows NT 5.0)","Invalid Request of > <B>APPLICATION.CFM</B> or <B>ONREQUESTEND.CFM</B> File<P> You have > requested a template with the name APPLICATION.CFM or > ONREQUESTEND.CFM. > These file names are reserved by the ColdFusion engine for the > specification of application level settings and therefore cannot be > directly requested from a web client.<P>If you are creating a template > which is intended for direct access by end users you should use a name > other than APPLICATION.CFM or ONREQUESTEND.CFM.<P>" One way to prevent this is to configure your web server to redirect requests for those scripts to other scripts. Of course, if you have enough of them, this can be annoying. Another way is to structure your application folders so that Application.cfm is never web-accessible! Because CF will go up the directory tree outside of the web root looking for it, you can place it in a folder closer to the root of the drive than the web root directory. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ voice: (202) 797-5496 fax: (202) 797-5444 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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