Results 1 to 6 of 6

Thread: secure way to upload files to webserver

  1. #1

    secure way to upload files to webserver

    On the end of the session in my app i have to upload some 100~200kb files to a webserver,

    im currently using ftp, but using ftp is 100% unsecure, since with a simple packet sniffer someone can get the login details and hack me ;\

    someone can help me?

    thanks,
    Arthur.
    From brazil (:

    Pascal pownz!

  2. #2

    secure way to upload files to webserver

    do some investigation in ssh ( http://en.wikipedia.org/wiki/Secure_Shell ) and sftp ( http://en.wikipedia.org/wiki/SSH_file_transfer_protocol ) or even better scp ( http://en.wikipedia.org/wiki/Secure_copy ) For scp there is also a grapical version: ( http://en.wikipedia.org/wiki/WinSCP )
    http://3das.noeska.com - create adventure games without programming

  3. #3

    secure way to upload files to webserver

    create a separate account for ftp which only has access to specific directory, and chmod and chown the dir properly, also i suggest you dont make the dir availible thru webserver to public and you limit what file extensions someone can upload in ftp server.
    This is my game project - Top Down City:
    http://www.pascalgamedevelopment.com...y-Topic-Reboot

    My OpenAL audio wrapper with Intelligent Source Manager to use unlimited:
    http://www.pascalgamedevelopment.com...source+manager

  4. #4

    secure way to upload files to webserver

    Quote Originally Posted by noeska
    do some investigation in ssh ( http://en.wikipedia.org/wiki/Secure_Shell ) and sftp ( http://en.wikipedia.org/wiki/SSH_file_transfer_protocol ) or even better scp ( http://en.wikipedia.org/wiki/Secure_copy ) For scp there is also a grapical version: ( http://en.wikipedia.org/wiki/WinSCP )
    Any library that i can use one of those protocols with pascal?

    Quote Originally Posted by Delfi
    create a separate account for ftp which only has access to specific directory, and chmod and chown the dir properly, also i suggest you dont make the dir availible thru webserver to public and you limit what file extensions someone can upload in ftp server.
    I searched on my webserver and it don't have any options to limit uploaded file size or extension :|
    From brazil (:

    Pascal pownz!

  5. #5

    secure way to upload files to webserver

    In that case use a http post multipart form to upload files, and a server side script to limit the size and type and uploaded name.
    This is my game project - Top Down City:
    http://www.pascalgamedevelopment.com...y-Topic-Reboot

    My OpenAL audio wrapper with Intelligent Source Manager to use unlimited:
    http://www.pascalgamedevelopment.com...source+manager

  6. #6

    secure way to upload files to webserver

    Quote Originally Posted by Delfi
    In that case use a http post multipart form to upload files, and a server side script to limit the size and type and uploaded name.
    i will have to stick with post, since my webserver only gives me 1 sftp key, and i can't risk exposing my entire webserver

    i found that page
    http://code.activestate.com/recipes/146306/
    usefull, i will try to translate the code now
    From brazil (:

    Pascal pownz!

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •