Making the content of LC Server Scripts Safe

Martin Baxter mblivecode at
Thu May 22 12:55:05 EDT 2014

On 22/05/14 16:52, AndyP wrote:
> Also apart from having the details in separate file, encrypt the file
> and place it outside your public html folder, this way no would be
> able to stumble onto the file by erm... 'accident'
> ----- Andy Piddock

Storing files outside web root is always the recommended solution I
think. But that is not always allowed. In such a case (and assuming your
webserver is Apache), a folder containing includes you want to keep
secret can be protected with an .htaccess file like so:

<files "*.*">
deny from all

Which bans Apache from serving any files from that folder, but livecode
should still be able to access the contents.

Martin Baxter

More information about the Use-livecode mailing list