473,480 Members | 3,135 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

secure uploading

hi
i'm after a way to securely upload a file to a web server and I'm
wondering how to go about it. basically i want to upload a small text
file to my hosted webspace once every hour or so. because it will be
happening once an hour, i want to make sure the transaction is
encrypted, but i don't really know how to do this. can someone point
me in the right direction?

i'm a reasonably noob scripter so go easy on me. :) thanks!
-h.

Jul 21 '05 #1
8 1613
"macaronikazoo" <ma***********@gmail.com> writes:
i'm after a way to securely upload a file to a web server and I'm
wondering how to go about it. basically i want to upload a small text
file to my hosted webspace once every hour or so. because it will be
happening once an hour, i want to make sure the transaction is
encrypted, but i don't really know how to do this. can someone point
me in the right direction?


Use SSL/TLS. It's not a scripting thing, just set up your server to
enable encryption. If you use apache, http://modssl.org might get you
started.
Jul 21 '05 #2
well I want a script to upload something automatically, so i need a
python script to do that for me. my hoster has ssl enabled on their
server and I have generated a key. but now I need to know how to
upload something using ssl to the server. how to I ftp something to
the server using ssl?
thanks.

Jul 21 '05 #3
"macaronikazoo" <ma***********@gmail.com> writes:
well I want a script to upload something automatically, so i need a
python script to do that for me. my hoster has ssl enabled on their
server and I have generated a key. but now I need to know how to
upload something using ssl to the server. how to I ftp something to
the server using ssl?


Ftp is not usually done over ssl. Usually you'd use http over ssl.
Jul 21 '05 #4
ok, so what can I do to get something uploaded? how can I upload
something via http?

Jul 21 '05 #5
"macaronikazoo" <ma***********@gmail.com> writes:
ok, so what can I do to get something uploaded? how can I upload
something via http?


Depends on your web host. At worst, use a server side script to
accept the upload. You're asking basic webmaster-type questions.
This really isn't the best place for those.
Jul 21 '05 #6
oh ok cool. I'll ask them for some advice. thanks!

Jul 21 '05 #7
On 16 Jul 2005 18:28:33 -0700, macaronikazoo <ma***********@gmail.com> wrote:
well I want a script to upload something automatically, so i need a
python script to do that for me.
Well, you need /something/. If you are on a Unix machine, you'd be better
off with a cron job.
my hoster has ssl enabled on their
server and I have generated a key. but now I need to know how to
upload something using ssl to the server. how to I ftp something to
the server using ssl?


Are you sure your hoster doesn't provide ssh access to his machines? If he
does, there is a wealth of protocols and tools for secure file transfer:
scp, sftp, tar-over-ssh, cpio-over-ssh, rsync-over-ssh, ...

With some loss of security, you may even be able to avoid handling
passwords.

/Jorgen

--
// Jorgen Grahn <jgrahn@ Ph'nglui mglw'nafh Cthulhu
\X/ algonet.se> R'lyeh wgah'nagl fhtagn!
Jul 21 '05 #8
praba kar enlightened us with:
When we upload a file to the remote server we can get file type
through file extentions.
No you can't, you can only make a better guess. If I name my PNG file
somefile.jpg, you won't be able to get the file type through file
extentions.
How we can find out file type if a file doesn't have any
extentions?


One method is to look at the Content-type header the client sent along
with the file. Another way is through the 'file' command.

Sybren
--
The problem with the world is stupidity. Not saying there should be a
capital punishment for stupidity, but why don't we just take the
safety labels off of everything and let the problem solve itself?
Frank Zappa
Jul 21 '05 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
6607
by: d z e k y l | last post by:
Hello, I'd like to write a small backup utility in Python, which would take advantage of Secure FTP to upload backup archives. Is there a library implementing SFTP in Python (something like...
7
2644
by: Dan V. | last post by:
Situation: I have to connect with my Windows 2000 server using VS.NET 2003 and C# and connect to a remote Linux server at another company's office and query their XML file. Their file may be...
1
1588
by: Melissa | last post by:
I have two DLLs that utilize the MFC classes for doing normal FTP communications for uploading files. Well, someone has requested that we use secure FTP protocol. I have been looking on the...
2
1476
by: Mullin Yu | last post by:
i want to find a secure ftp library for uploading and downloading files.
1
1324
by: Steve Franks | last post by:
As I understand it the Copy Web Site tool in VS.NET 2005 sends the username/password unencrypted. Is there an option for it send this information encrypted instead? If not is there any way to get...
3
2327
by: Carlos | last post by:
Hello Forum, I would appreciate it if you could recommend settings to use auto-vacuum in my version 7.4 database. I am uploading several thousands records in the database at a rate of ~1 second...
7
1760
by: Skijor | last post by:
I just finished writing my first php script that manipulates a simple shopping cart on a mySql database. I started with an example I found on the web. The example hardcodes the database server,...
5
4418
by: Billy | last post by:
I have a site designed with ASP 3.0 code (HTML and vbscript) that I want to protect from being visible. I want this code to be non-visible and hack-proof. Is there a way to either encrypt or...
1
1426
by: olddocks | last post by:
Most PHP file upload scripts require writable 777 permissions (rwxrwzrwz) to be set for certain folders for uploading photos and videos. Setting 777 permission means that anybody can upload any...
0
7055
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
6920
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
1
6763
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7030
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
4799
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4503
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3015
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1313
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
574
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.