You cant, the image is not constrained to Coldfusion. It does not call the application.cfm when you run anything other then a .cfm, .cfml or .cfc (coldfusion extensions) The image, like most media (css, js etc) are being served by the web server. If you want to restrict access you will need to implement authentication on the web server lever. Your only real option output the image onto a page. So the page would still be a cfm, when requested it would process the application.cfm. You would never link directly to the image, just the page that is loading the image. You would have to do something like cfimage Code Examples and CFML Documentation and writeToBrowser to stop the image URL from being seen.
... View more