Support » Fixing WordPress » Media stored in remote FTP server

  • Resolved thatpetrolemotion


    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’, ‘’);
    define(‘FTP_USER’, ‘myFTPuser’);
    define(‘FTP_PASS’, ‘myFTPPassword’);

    Is there anybody who can help me?
    Thanks in advance

Viewing 3 replies - 1 through 3 (of 3 total)



    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.

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



    My pleasure 🙂

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Media stored in remote FTP server’ is closed to new replies.