Steps for Securing the FTP Access on the Virtual Machine and Reseller Accounts
Often numerous of reseller web hosting and VPS hosting accounts are begin completely affected by unauthorized FTP uploads. Dissimilar to VPS and reseller hosting, on the Cpanel hosting accounts, we will be aware of the domains that are being created and may be altered directly from the systems. And moreover, it's not possible with the VPS and reseller hosting accounts because the customers will have the flexibility to include numerous domains. And also we will be able to provide a method in order to safeguard the FTP access to your site for the number of IP addresses or a complete subnet.
First, you have to determine your own IP address. And your IP address will look like 123.456.789.000. And you need to determine either you are on a static IP address or not. If in case you have been assigned with a dynamic IP address, that means your IP address will keep on changing. And you must know the IP address that you have assigned. If you have assigned a static IP address then you must be able to find the below-mentioned query and the below figures are the range of the IP addresses which you will be able to assign.
inetnum : 188.8.131.52 – 184.108.40.206
Now, you will be having the possible IP addresses, you can proceed further with the below steps:
On the machine, create a file such as .ftpaccess in the text editor and you need to make sure you include a . (dot) at the beginning of the file name.
The line Allow 220.127.116.11 must be left in the file as a backup so that you will be able to access to the .ftpaccess file with the help of the File manager in the Admin section.
If you are being assigned with a dynamic IP address, then you must allow the possible range of IP address based on the above example inetnum : 18.104.22.168 – 22.214.171.124. The file contents will look the below-mentioned query:
Allow 1.2. 5.
Now, you have done with creating the .ftpaccess file, you must have to upload that file into the httpdocs, httpsdocs and CGI-bin folders on the server. And it'll restrict all the IP addresses which are trying to access your website with the help of FTP and it will accept the IP address which is allowed in the .ftpaccess file.
The change which is done previously will not stop blocks on SFTP or WinSCP if you are planned to use only those protocols then you can create a file with the below-mentioned contents.
The above-mentioned lines will restrict any kind of FTP access to your site. This article will be suitable for only VPS and Reseller hosting accounts. If you are not satisfied with the above-mentioned details kindly contact our support team via toll-free no 1800-123-8642.