At 5/22/08 07:30 AM, adam2510 wrote:
i was planning on having soething in place so no one can come in and directly view my xml files because each xml file has passwords for users and i wanted to know whether i should use this
http://www.webdeveloper.com/forum/showth read.php?t=125966
or if i should use something more elaborate
thanks if you can help
The method in that article is security through obscurity. You can still view the xml by just clicking view source (it is a markup language after all).
Might I ask how you're reading this xml file? Is it a PHP/ASP script running on the server or is it from a client-side environment like Flash or Javascript?
If it's being read on the server, you could just store it above the document root. The document root is the folder that the website's server looks in to feed people content.
It is generally a folder called htdocs or html or public, but some hosts use other folder names. Anything that is in a parent/sibling folder will not be viewable from your website domain. Naturally if you're opening the XML in Flash or Javascript then this will stop them from being able to open it too.