html - ftp link without password for my websiteusers -


on website want put href="" link.

i want when user clicks on hyperlink opens new tab pdf.

this pdf on ftp server in file.

but don't know link have put on href="".

i've tested example: ftp://username:password@servername.com example works, second problem is, don't want users see password in link.

i work html , don't know ftp server hosting etc.

could me please?

you use http:// protocol view files regularly. practical purposes, can view webpage on http://. ftp:// used edit server's files, needing password protect it. used server access/maintenance purposes, , not intended serve data public.

therefore necessary use http://, , obviating need username/password.

the url should changed http://yourdomain.com/directory/to/pdf.pdf.


Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

Rendering JButton to get the JCheckBox behavior in a JTable by using images does not update my table -