The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

[resolved] Media stored in remote FTP server (4 posts)

  1. thatpetrolemotion
    Posted 3 years ago #

    I would like to put in my pages some images and videos stored in a remote FTP server that does not allow anonymous access. For FTP with anonymous access there is not problems, but if a video linked in my page is stored in a FTP server that does not allow anonymous access, blog readers that want to view this video always have to put FTP credentials in a small window that appears when they try to play that file. For preventing this login request, I have tried to put the FTP credential in wp-config.php, but this solution does not work:

    define('FTP_HOST', 'ftp://ftpserver.com');
    define('FTP_USER', 'myFTPuser');
    define('FTP_PASS', 'myFTPPassword');

    Is there anybody who can help me?
    Thanks in advance

  2. CFC
    Posted 3 years ago #


    The wp-config.php file allows you to define FTP credentials for your own website, not remote FTP servers.

    If you are trying to link to a remote FTP server which is password protected, you could try:


    However, if the remote FTP server requires a password (non anonymous access) then linking to it in this manner may not be a good idea. The username and password would be viewable in the source of your website and anyone who clicks on the link will also see the password in the browser's address bar.

  3. thatpetrolemotion
    Posted 3 years ago #

    CFS, thanks for your reply. Now I think that the better choice for remote media is Amazon S3.


  4. CFC
    Posted 3 years ago #

    My pleasure :-)

    Amazon S3 is a good option. If you are looking to host videos you may want to take a look at videopress.com, vimeo or youtube.

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.