How to provide username and password within FTP URL for direct download in a browser?

Modern browsers like Chrome and Firefox can handle FTP downloads:

ftp://

I want to share a link to another person and I don't want them to enter a username and password through a prompt.

I am aware of the security impact, yet in this case ease of use has precedence. I wonder if there is an option to provide the credentials within the FTP URL directly.

2 Answers

You can provide the credentials to the URL like so:

username:password@host

Your example would become:

ftp://username:password@

You will run into problems if the user name contains invalid symbols such as @:

 ftp://usern@me:password@

For such a download, I had to fallback on using a client allowing the symbol, e.g. FileZilla.

0

Notable exception (for HTTP and HTTPS protocols) is IE:

Internet Explorer versions 3.0 to 6.0 support the following syntax for HTTP or HTTPS URLs: http(s)://username:password@server/resource.ext You can use this URL syntax to automatically send user information to a Web site that supports the basic authentication method.

(Source). They do not support it for security concerns:

A malicious user might use this URL syntax to create a hyperlink that appears to open a legitimate Web site but actually opens a deceptive (spoofed) Web site. For example, the following URL appears to open but actually opens :

2

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like