I have a simple site which allows users to upload files (among other things obviously). I am teaching myself php/html as I go along.
Currently the site has the following traits: --When users register a folder is created in their name. --All files the user uploads are placed in that folder (with a time stamp added to the name to avoid any issues with duplicates). --When a file is uploaded information about it is stored in an SQL database.
simple stuff.
So, now my question is what steps do I need to take to:
- Prevent google from archiving the uploaded files.
- Prevent users from accessing the uploaded files unless they are logged in.
- Prevent users from uploading malicious files.
Notes:
I would assume that B, would automatically achieve A. I can restrict users to only uploading files with .doc and .docx extensions. Would this be enough to save against C? I would assume not.