You can't encrypt HTML, but you can encrpyt Cold Fusion code.
From the Cold Fusion User Guide:
You can use the command-line utility cfencode to encode any ColdFusion application template. By default, the utility is installed in the /cfusion/bin directory. It is especially useful for securing custom tag code before distributing it.
Option Description
input file Name of the file you want to encode. cfencode will not process an encoded file.
output file Path and filename of the output file. Warning: If you don't specify an output file name, a warning message asks if you want to continue, in which case the encoded file will overwrite the source file.
/r Recursive, when used with wildcards, recurses through subdirectories to encode files.
/q Suppresses warning messages.
/h Header, allows custom header to be written to the top of the encoded file(s).
/v Required parameter that allows encoding using a specified version number. Use "1" for pages you want to be able to run on ColdFusion 3.x. Use "2" for pages you want to run strictly on ColdFusion 4.0 and later.
If you want a small measure of security and keep some people from looking at the generated HTML, you can use a Javascript function to prevent users from getting the source. You can add:
<body oncontextmenu="return false">
But all they ahve to do is turn Javascript off, and they'll see the HTML
The rest of these use the same concept of creating url encoded html, and then unencoding them and writing them to the page with JavaScript. It would be fairly easy to get the real code by copying it and puting it through something like ColdFusions URLDecodedFormat function:
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.