[Index] [Up] [Back] [Next]

5.3 Anonymous FTP via URLs

Files can be accessed via FTP using the URL convention. The general form is:
ftp://internet.address.edu/file/path/file.txt
If you specify a directory instead of a file (by requesting a URL such as ftp://internet.address.edu/file/path/, most browsers will give you a list of the directory contents and allow you to select files, or other directories.

You can access non-anonymous ftp resources by specifying, within the URL, both the username and password of the account you wish to access. ( NOTE This is not secure -- see the following warning). For example:

ftp://joe_bozo:bl123@internet.address.edu/path/file.gz
allows you to access files on machine internet.address.edu belonging to user joe_bozo (password bl123).
******** WARNING ********
What is wrong with the above? Well, if you had this line in a html document it would mean that everybody who accessed this document would know joe_bozo's password. This is very unsecure, and is to be discouraged!

Other Notes


[Index] [Up] [Back] [Next]