protecting your include pages ?
So I have a folder called include, which contains several .cfm files which get included at various points.
one of them for example inserts records into the orders table
what's the best method to employ so that if anyone accidentally tried to open this file in their browser, nothing happens ?
eg. is there a way to check at the start of the code which page opened the included file ?
I can dot this
<cfif isDefined("form.submit")>
<cfif form.submit="order">
insert rows...
Perhaps, I should convert the pages to custom tags ? Just need a bit of advice on the subject.
