WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. thatpetrolemotion
    Member
    Posted 1 year ago #

    Hi
    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. CFS
    Member
    Posted 1 year ago #

    Hello,

    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:

    ftp://username:password@ftpserver.com
    http://username:password@ftpserver.com

    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
    Member
    Posted 1 year ago #

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

    Daniele

  4. CFS
    Member
    Posted 1 year 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

Tags

No tags yet.