> Any idea how can I restrict access to any kind of content (htm, cfm, pdf, > jpg, doc xls > etc) using coldfusion ?
As many have mentioned, you can store them in a directory that isn't web-accessible, and serve them with CFCONTENT. Another alternative is to store them as mentioned above, but use CF to create a symbolic link that is web-accessible. You can do this using CFEXECUTE. On Windows, you can only create symlinks to directories, but on Unix you can create symlinks for any files. The advantage of this approach over CFCONTENT is that it requires less overhead at runtime. The disadvantage is that you're responsible for cleaning up afterwards - you'd probably want the symlink to last for a few minutes at least, so you'd probably want a scheduled task to clean them up afterwards. The third and final alternative that I can think of is the one that Claude mentioned. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Software provides the highest caliber vendor-authorized instruction at our training centers in Washington DC, Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location. Visit http://training.figleaf.com/ for more information! ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:324266 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4