Encoding your CFML

By davidjmedlock

…posted by davidjmedlock:

Prompted by a question from another forum member, I decided to look into encoding ColdFusion code.

First off, if you go into your CFIDE/Administrator directory under your CF installation path (i.e. C:CFusionMXwwwrootCFIDEAdministrator), you’ll notice that there is an index.cfm file. That’s right, all of the ColdFusion Administrator is written in ColdFusion. But, wait a second… When I open that file it’s all jibberish. Can’t read a thing in there.

That’s because it’s encoded. If you look in the C:CFusionMXbin directory (or the bin directory of the ColdFusionMX install path) you’ll see a program called “cfencode.exe”. This is what is used to encode the Adminstrator, and you can use it to encode your CFML code. (Like that CMS that you’ve slaved over and don’t want anyone ripping off.)

I don’t have time at this exact moment to write a full tutorial and test it and everything, but here’s an article from the CFHub:


Performing a Google search for “cfencode.exe” will turn up about 76 results that can help in your quest for code protection.

  • anonymouse

    It’s also a well-known fact that you can easily decode this encoded code.

  • http://www.delyrical.com davidjmedlock

    Yes, unfortunately there are decoders out there. This at least makes it a little more difficult to rip your code. (They’d first have to find and figure out the decoder if they haven’t already…)



Learn Coding Online
Learn Web Development

Start learning web development and design for free with SitePoint Premium!

Instant Website Review

Use Woorank to analyze and optimize your website to improve your website to improve your ranking!

Run a review to see how your site can improve across 70+ metrics!

Get the latest in Front-end, once a week, for free.