Jump to content

Recommended Posts

Hi,

I'm working on sending xml documents to other websites.  I am writing the xml to a file and then reading it and sending it.  Every time I send new info the file is overwritten with new data.  It works perfectly.

 

Then it occurred to me that this is not even slightly secure.  All someone has to do to get the passwords that are sent in the xml is crawl my site and look at one of the xml files which contain the info.

 

So I have an idea.  If I create a random_filename.xml each time I send and then delete it as soon as it is sent it should be ok?

 

I really don't know how secure that would be.  It seems fine to me but what do I know.  Anybody got any suggestions.

 

I am going to be going into competition with some really big players and I can expect to come under serious attack given the history of the sector in this country so I need everything to be as secure as is reasonably possible.  I'd appreciate any advice from any security experts.

 

Thank you.

Link to comment
https://forums.phpfreaks.com/topic/154005-solved-security-and-temp-files/
Share on other sites

Place the folder outside of your document root folder (closer to the root of the hard disk) or if that option is not available and you must place the folder inside of your document root folder, then you need to place a .htaccess file in it that prevents all http/https requests.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.