How to Make a Link to FTP With Username & Password

Techwalla may earn compensation through affiliate links in this story.

Web pages can contain links to an FTP server which allow visitors to download files. If the FTP server requires that the user provide a username and password, you can specify the information directly in the URL (Uniform Resource Locator). This is an extremely insecure practice. It is better to set up the FTP server to allow anonymous access.

Step 1

Open the HTML document in a text editor, such as Notepad.

Step 2

Locate the area of the document where you want to add the FTP link.

Step 3

Type the code "<a href=ftp://user_name:password@hostname/">FTP Link" to add the link. Replace "user_name" with the username for the FTP server and replace "password" with the password for the account. Replace "hostname" with the hostname of the FTP server. Replace "FTP Link" with any text you prefer.

Step 4

Save and close the HTML file.


Microsoft has disabled support for the inclusion of a user name and password in a URL in Internet Explorer.