how where would I place pre compiled cf files in commandbox? Obfuscation

I got this suggestion to rename the classes to .cfm. Would this work in command box? I’m just not sure where I would do this in the server start directory where I have the .cfm located ? Or in a specific command box directory? Any insight you could give me would really help.

Wondering what you think about it. I would like to have some method of “Obfuscation” so the source isn’t easily readable.

Doing this on a CommandBox server would be no different from doing it on a “real” server. To find the folder where the server engine is installed to, run

server info property=serverHomeDirectory

Inside web-inf/lucee-web you’ll find the cfclasses folder where the class files are created. You would rename them to .cfm and re-create the same folder structure as your original web root. I’m sure you could automate this somehow.