Hey KM,
Welcome back to CFML land! A lot has changed since you’ve been gone, as
you can imagine.
First, while Application.cfm is still supported for backwards
compatibility with older CFML engines, it is no longer the proper
implementation for new application development. You should instead now use
Application.cfc -
see http://www.learncfinaweek.com/week1/Application_cfc/ for more
information and a good primer on that. The rest of the site is likewise a
good primer overall if you’re getting back into CFML. And yes,
Application.cfm has always been able to be directly called.
I’ve been doing CF since v4, but don’t recall there ever being a rule
specific to CFML that would prevent files starting with an underscore from
being directly accessed. It would be possible to create a rule for this in
any modern http server (e.g. Apache, IIS, etc.) that would block a direct
request to those files, but I don’t seem to remember it every being part of
CFML itself. But I’m old and senile now, so… it’s feasible an early
version had this capability.
Again, welcome back and if you get back into CFML in any serious way you
might want to consider joining local/online user groups and/or going to one
of the conferences (dev.Objective() in MN, CF Summit in Vegas or NCDevCon
in Raleigh, NC) this year to catch up on all the new bells and whistles,
and gain new techniques such as OOP… and MVC frameworks like FW/1
(framework one) and ColdBox. (google any of that you find interesting lol)
– DennyOn Sunday, March 20, 2016 at 10:40:26 PM UTC-4, km wrote:
Hello,
I’m old ColdFusion user (1996-2003) who couldn’t resist taking a look at
Lucee V5. I’m running 5.0.0.178-BETA on a Windows 7 Home Premium test
machine.
I noticed that I can request application.cfm directly in a browser URL and
it executes. That’s not supposed to happen, is it?
Also, didn’t there used to be a rule that any CFM whose name started with
underscore could not be directly requested? I’m foggy here – might be
thinking of another product. I know that’s how I used to name my include
CFM files, back in the day. As I said I’m an old ColdFusion user.
Thanks and good luck. The product looks great!
KM