1.

Solve : Online file storage (personal cloud, in essence) hosted on home web server?

Answer»

Ok, so, i want to upload some files to the net so i have access to them at all TIMES, at any computer, however, i am afraid this can run into copyright laws about this if not done right.

Right now, i just have a PHP page that asks for a password before showing the page with the file links, but this is not secure simply because of the reason someone could just type in the URL of the folder with the files and bypass the password.

How should i be going about this, if i should be at all. Thanks.

(ps, i am the person who likes to do anything for free and without restriction, which is why i am doing this the way i am)For now, i have it set up to link to files in another directory using a PHP script to AUTOMATICALLY detect the files inside the files folder. The files folder has an index.html file with an error for the user to see when they try to enter in the directory URL, however, my php script is naming the files from the files directory, (which is in another folder) but tries to open the files from the index current location.

    $path = "files";
    $dir_handle = opendir($path) or die("Unable to open $path");
    while ($file = readdir($dir_handle)) {
    if($file == "." || $file == ".." || $file == "index.php" )
        continue;
        echo "$file[/url]
";
    }
    closedir($dir_handle);
?>

i want to know how to fix this. thanks

the file layout is like such

files
|---index.php
|---password_protect.php
|---style.css
|---bg.jpg
|---files
     |---index.html (to prevent unauthorized access)
     |---file1
     |---file2

ext.

zeroburn,
It looks like you are the kind of person that likes to do nit yourself. But there already are  many kinds of service on the world wide web for data storage with secure access.

Most of the servers I have used are Linux-based, not windows. I don't think you can bypass a password protected directory in Linux. I never have been able to do that. But I don't know everything.

There is a thing called 'GoToMyPC' that many people use to get to there home computer while they are on the road. Do you mean to
SAY that it is not secure enough to protect you?

And there ate other programs like it.

Do you want to make your own and make it more secure? With only hand coded PHP code? I don't doubt you can do lit.  But are you sure you REALLY need to.
Im just looking for a way to make them private enough to impede access to the less savvy, and allow me access. My server is running LAMP on Ubuntu 11.10 serverYou're making this harder than it needs to be.  Why not just set up a VPN?  Or use SFTP?  Or use the cloud after all, with Ubuntu One Free?

If you want mind-blowing LEVELS of functionality, try Alfresco.  http://wiki.alfresco.com/wiki/Download_Community_Edition...or use Dropbox.



Discussion

No Comment Found