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 : 123.4.5.6 – 123.7.8.90

 

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.

 

<Limit ALL>

DenyALL

Allow 123.4.5.6

Allow 2.4.6.8

</Limit>

 

The line Allow 123.4.5.6 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 : 123.4.5.6 – 123.7.8.90. The file contents will look the below-mentioned query:

 

<Limit ALL>

DenyALL

Allow 123.4.5.6

Allow 1.2.4.

Allow 1.2. 5.

Allow 1.2.5.

Allow 1.2.7.

Allow 1.2.8.

</Limit>

 

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.

 

<Limit ALL>

DenyALL

</Limit>

 

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.