{"id":151033,"date":"2019-02-27T11:00:17","date_gmt":"2019-02-27T11:00:17","guid":{"rendered":"http:\/\/premium.wpmudev.org\/blog\/?p=151033"},"modified":"2022-04-13T05:31:06","modified_gmt":"2022-04-13T05:31:06","slug":"ftp-wordpress","status":"publish","type":"post","link":"https:\/\/wpmudev.com\/blog\/ftp-wordpress\/","title":{"rendered":"Get the Facts on FTP: Should You Use FTP to Manage WordPress Files?"},"content":{"rendered":"<p>File Transfer Protocol (FTP) is as basic a method as sending files gets &#8211; no bells, no whistles&#8230;not even much security to speak of. It was invented back in the days when the word \u2018hacker\u2019 had nothing to do with computers, so the question is, is it time for FTP to finally retire?<\/p>\n<p>The internet hasn\u2019t always been the minefield it is nowadays, where we have to scrutinize every link before we click on it and constantly worry about how secure our connection is.<\/p>\n<p>Security just wasn\u2019t a concern like it is today, hacking wasn\u2019t a career, and people sent their bank details in emails.<\/p>\n<p>So this means that back in the early years of FTP, it had one job &#8211; transport the file\/s from A to B.<\/p>\n<p>This could be anything from uploading website content to servers (as commonly used in the world of WordPress) to downloading software packages from online repositories or even just transferring files that are too large for email.<\/p>\n<p>It may have been the backbone of the file-transferring world for decades, but now there are more modern and secure methods, is it time to put FTP on the shelf, along with telegrams and fax machines?<\/p>\n<p>Absolutely, and today we\u2019re going to take a look at why&#8230;<\/p>\n<ul>\n<li><a href=\"#attacks\">Man-in-the-Middle Attacks<\/a><\/li>\n<li><a href=\"#why\">Why is FTP Still a Thing?<\/a>\n<ul>\n<li><a href=\"#change\">People Don\u2019t Like Change<\/a><\/li>\n<li><a href=\"#faster\">FTP is Faster than SFTP<\/a><\/li>\n<\/ul>\n<\/li>\n<li><a href=\"#regulations\">Some Regulations Prohibit the Use of FTP<\/a><\/li>\n<li><a href=\"#alternatives\">Alternatives to FTP<\/a><\/li>\n<li><a href=\"#vs\">FTP v FTPS<\/a><\/li>\n<li><a href=\"#sftp\">SFTP All The Way<\/a><\/li>\n<\/ul>\n<h2 id=\"attacks\">Man-in-the-Middle Attacks<\/h2>\n<p>Have you ever played the childhood game where you and a friend throw a ball back and forth to each other whilst another player stands in the middle and tries to intercept it?<\/p>\n<p>This is a great way to picture what happens during a man-in-the-middle attack (especially if the guy in the middle is invisible!).<\/p>\n<figure id=\"attachment_188279\" class=\"wp-caption aligncenter\" data-caption=\"true\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-188279\" src=\"https:\/\/wpmudev.com\/blog\/wp-content\/uploads\/2020\/05\/PiggyInTheMiddle.png\" alt=\"Image of three children playing the childhood game where the person in the middle tries to snatch the ball.\" width=\"600\" height=\"300\" \/><figcaption class=\"wp-caption-text\">If the person in the middle catches the ball (or data), you lose the game.<\/figcaption><\/figure>\n<p>Attacks can come in a few different forms, but the main concept is that two parties are passing information between each other with someone in the middle desperately trying to snatch it from them.<\/p>\n<p>They can range from silently observing the data exchange whilst the attackers look for an opportunity to use the information to their advantage or interrupting the exchange by setting up camp in the middle and manipulating the information.<\/p>\n<p>&nbsp;<\/p>\n<figure id=\"attachment_188280\" class=\"wp-caption aligncenter\" data-caption=\"true\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-188280\" src=\"https:\/\/wpmudev.com\/blog\/wp-content\/uploads\/2020\/05\/man-in-the-middle.png\" alt=\"Image of a hacker in between a laptop and server breaking the chain of communication.\" width=\"600\" height=\"197\" \/><figcaption class=\"wp-caption-text\">Attackers can completely break the chain of communication between the two parties.<\/figcaption><\/figure>\n<p>This means that if sensitive information is being traded such as bank details or client information, an attacker would have a field day.<\/p>\n<p>Unless, of course, the data is encrypted.<\/p>\n<p>If the files are encrypted, this shouldn&#8217;t pose much of a concern, because if the man (or woman) in the middle manages to get their hands on the files, they would be completely unreadable.<\/p>\n<p>Think of it as being able to speak only English and getting your hands on a ton of files in Elvish, with no way of translating them.<\/p>\n<p>When it comes to man-in-the-middle attacks, the key is being vigilant and acknowledging that whenever you\u2019re connected to the internet, there\u2019s always a chance you could be vulnerable to some form of attack.<\/p>\n<p>Whilst ensuring your files are only sent through encrypted channels a sensible backup in case your communication channel is breached, you should be actively trying to prevent attackers from gaining access to your files in this first place.<\/p>\n<p>Simple ways to do this include:<\/p>\n<ul>\n<li>Use a Virtual Private Network (VPN), especially when connecting to public networks<\/li>\n<li>Don&#8217;t use WiFi connections that aren\u2019t protected with a secure password<\/li>\n<li>Never conduct financial transactions or sending sensitive data over public networks<\/li>\n<li>Being cautious of websites that are flagged as unsecured by your browser.<\/li>\n<\/ul>\n<p>If you take all of these precautions but someone still manages to get access to your files (hackers are really smart these days &#8211; think Mr Robot), at least you have the fact that your files are encrypted to fall back on&#8230;<\/p>\n<p>&#8230;unless of course, you sent them using FTP.<\/p>\n<h2 id=\"why\">Why is FTP Still a Thing?<\/h2>\n<p>If I ran the world, FTP would be thrown promptly in the trash.<\/p>\n<p>It\u2019s outdated, it\u2019s unsafe, and with other much more secure alternatives readily available, it\u2019s hard to find valid reasons why people still rely on it.<\/p>\n<p>So, why do people still use it?<\/p>\n<h3 id=\"change\">People Don\u2019t Like Change<\/h3>\n<p>FTP has been around longer than the internet.<\/p>\n<p>No, seriously &#8211; the specification was written in 1971, more than a decade before the internet and the world wide web were created.<\/p>\n<p>So, it\u2019s not really a surprise that a concept created almost 50 years ago doesn\u2019t quite meet our needs in 2020.<\/p>\n<p>But, as many developers would say \u201cif it works, don\u2019t touch it\u201d.<\/p>\n<p>FTP does still do what it\u2019s supposed to, i.e. it moves files from one server to another&#8230;until you\u2019re the target of an attack.<\/p>\n<p>Think of it like leaving your front door unlocked. You know that thieves exist, and you probably even know someone who\u2019s had their house broken into in the past, but do you ever leave the door unlocked whilst you pop to the shop?<\/p>\n<p>The illusion of invulnerability, or <a href=\"https:\/\/www.verywellmind.com\/what-is-the-optimism-bias-2795031\" target=\"_blank\">optimism bias<\/a>, is often a reason behind someone not taking the proper precautions. People are reluctant to believe that something bad might happen to them, so until it does, they are more likely to take unnecessary risks.<\/p>\n<p>With so many safer alternatives out there, it\u2019s safe to say it\u2019s sensible to ditch FTP before you experience first-hand just how risky it can be.<\/p>\n<h3 id=\"faster\">FTP is Faster than SFTP<\/h3>\n<p>If you\u2019re connecting to a server using SFTP after being a loyal user of FTP for many years, you may be slightly disappointed at the drop in speed compared to what you\u2019re used to.<\/p>\n<p>This is because there is <a href=\"https:\/\/support.cerberusftp.com\/hc\/en-us\/articles\/203333215-Why-is-SSH2-SFTP-so-much-slower-than-FTP-and-FTPS-\" target=\"_blank\">a lot of additional packet and encryption<\/a> taking place during an SFTP transfer that isn&#8217;t present when using FTP.<\/p>\n<p>There are a few things that are worth sacrificing for speed, however, security probably isn\u2019t one of them.<\/p>\n<h2 id=\"regulations\">Some Regulations Prohibit the Use of FTP<\/h2>\n<p>Yes, you read that right.<\/p>\n<p>As it\u2019s widely known that FTP isn\u2019t a secure method of transferring files, many countries have outlawed it.<\/p>\n<p>There are various regulations that govern how data can and can&#8217;t be transferred, including the Health Insurance Portability and Accountability Act (HIPAA), which prevents healthcare organizations and their business partners from transferring files using FTP. It states that transfers should only be made using SFTP, and there may even be other components that need to be satisfied in order to ensure compliance.<\/p>\n<p>When it comes to any form of card transaction, the Payment Card Industry Data Security Standard (PCI-DSS) stipulates that card details should only be sent via FTP when absolutely necessary and demands that the <a href=\"https:\/\/www.jscape.com\/blog\/bid\/85138\/How-to-Secure-PCI-DSS-FTP-Compliance\" target=\"_blank\">sender document the full details of the transfer including port and firewall settings<\/a> and reasons behind using this method.<\/p>\n<p>The General Data Protection Regulation (GDPR) defines personal data as any data that relates to <a href=\"https:\/\/www.itgovernance.eu\/blog\/en\/the-gdpr-what-exactly-is-personal-data\" target=\"_blank\">\u201can identified or identifiable natural person (\u2018data subject\u2019)&#8221;.<\/a> This means it includes data on an individual such as \u201c a name, an identification number, location data, an online identifier or to one or more factors specific to the physical, physiological, genetic, mental, economic, cultural or social identity of that natural person.\u201d<\/p>\n<p>There are so many pieces of information that can fall into this category that it\u2019s definitely better to play it safe rather than sorry. Even if you don\u2019t think the data you are sending is particularly valuable, you should check to make sure it doesn\u2019t fall under GDPR or other similar regulations before you opt for FTP.<\/p>\n<p>Better still, you could switch to another method for good.<\/p>\n<p>The bottom line is that if you are sending data that is confidential, sensitive, or contains any information that would be dangerous if it were to fall into the wrong hands, then FTP won\u2019t suffice.<\/p>\n<h2 id=\"alternatives\">Alternatives to FTP<\/h2>\n<p>I can sit here all day and rave about the importance of binning FTP once and for all and switching to something more secure, but if it\u2019s going to be a lot of extra hassle or require additional tools or cost, I know a lot of people won\u2019t be convinced.<\/p>\n<p>The good news is that other methods of file transfer look exactly the same at the user\u2019s end.<\/p>\n<p>You can literally use the same client and follow the same steps &#8211; you just have to tell the client which method you are using.<\/p>\n<figure id=\"attachment_188281\" class=\"wp-caption aligncenter\" data-caption=\"true\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-188281\" src=\"https:\/\/wpmudev.com\/blog\/wp-content\/uploads\/2020\/05\/ftp-or-sftp.png\" alt=\"Screenshot of FileZilla showing how to switch from SFTP to FTP.\" width=\"600\" height=\"139\" \/><figcaption class=\"wp-caption-text\">In FileZilla, you can easily switch from FTP to SFTP by heading to Edit&gt;Settings.<\/figcaption><\/figure>\n<figure id=\"attachment_188282\" class=\"wp-caption aligncenter\" data-caption=\"true\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-188282\" src=\"https:\/\/wpmudev.com\/blog\/wp-content\/uploads\/2020\/05\/ftp-over-tls-filezilla.png\" alt=\"Screenshot from FileZilla showing the different encryption methods.\" width=\"600\" height=\"139\" \/><figcaption class=\"wp-caption-text\">If you choose FTP as your transfer method, it will automatically set the encryption to \u2018FTP over TLS\u2019 if it&#8217;s available.<\/figcaption><\/figure>\n<p>As you can see from the screenshot, there is an option to use plain FTP, however, it warns you that it\u2019s insecure.<\/p>\n<p>Only the port number should differ &#8211; at the user\u2019s end the interface will look the same no matter which method you use, so there\u2019s literally no reason to select the insecure FTP option.<\/p>\n<h2 id=\"vs\">FTP v FTPS<\/h2>\n<p>FTPS (File Transfer Protocol Secure) is your simple FTP with the added security of either <a href=\"https:\/\/wpmudev.com\/blog\/ssh-vs-ssl\/#sim\" target=\"_blank\">TLS (Transport Socket Layer) or SSL (Secure Socket Layer).<\/a><\/p>\n<p>This extra layer of security ensures that the connection is authenticated with certificates so that the client and server can form a trusted and secure connection.<\/p>\n<p>This provides a good level of protection as long as the required certificates are present.<\/p>\n<p>Of course, it\u2019s always advisable that you have a certificate on your site to reassure visitors of its legitimacy and secure the connection, but if this isn\u2019t possible, if, for example, you are uploading files to a new site you are currently working on, SFTP may be the better option.<\/p>\n<h2 id=\"sftp\">SFTP All The Way<\/h2>\n<p>So we\u2019ve mentioned SFTP a fair few times, but let\u2019s take a quick look at exactly what it means.<\/p>\n<p>Secure File Transfer Protocol (SFTP) also has a layer of protection that FTP does not benefit from, and that comes in the form of a <a href=\"https:\/\/wpmudev.com\/blog\/what-is-ssh-wordpress\/\" target=\"_blank\">Secure Shell (SSH) connection.<\/a><\/p>\n<p>When you use an SSH connection, your files are encrypted and can only be deciphered with the key, which the recipient\u2019s SFTP client will hold.<\/p>\n<p>This means that although the recipient server may not have been authenticated with a certificate like with FTPS, your files are \u2018bulletproof\u2019 on their journey as they are completely encrypted and protected.<\/p>\n<p>If you\u2019ve read this far and still think that FTP has any form of value in today\u2019s online climate, then I admire your commitment.<\/p>\n<p>But, however, if you don\u2019t have a genuine reason for using FTP, I\u2019d suggest you check out our recent blog that <a href=\"https:\/\/wpmudev.com\/blog\/sftp-transfer-files-securely\/\" target=\"_blank\">explores the ins and outs of SFTP<\/a> and shows you how to use it (hint: it\u2019s exactly the same as FTP, besides the port number and the extra security).<\/p>\n<p>And if that doesn\u2019t change your mind, at least I tried!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>While WordPress has simplified the process of setting up and managing a site FTP has become less of a necessity. But should you write it off? Not just yet.<\/p>\n","protected":false},"author":699634,"featured_media":188346,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"blog_reading_time":"","wds_primary_category":0,"wds_primary_tutorials_categories":0,"footnotes":""},"categories":[263],"tags":[10394,10170,10395],"tutorials_categories":[],"class_list":["post-151033","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tutorials","tag-ftp","tag-file-downloads","tag-upload"],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/posts\/151033","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/users\/699634"}],"replies":[{"embeddable":true,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/comments?post=151033"}],"version-history":[{"count":31,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/posts\/151033\/revisions"}],"predecessor-version":[{"id":208965,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/posts\/151033\/revisions\/208965"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/media\/188346"}],"wp:attachment":[{"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/media?parent=151033"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/categories?post=151033"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/tags?post=151033"},{"taxonomy":"tutorials_categories","embeddable":true,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/tutorials_categories?post=151033"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}