frankie
frankie

Reputation: 673

Is it possible to make xml file only accessible to my site/server?

I want to store some customer payment plan info in a file that is easier to edit than a SQL table. Right now I am storing this in an XML file in my public dir.

Is there a way to make it only accessible to my site and or server so that users can't tamper with the values? Will it be hard to "crack" if the values are being read by server side php?

Upvotes: 0

Views: 127

Answers (1)

Michael
Michael

Reputation: 12806

If the file is saved outside the directory root then it cannot be accessed by the public. As long as the path is allowed by openbase_dir it can still be included server side with include, require, etc.

Upvotes: 1

Related Questions