There are instances where the reseller web hosting and VPS hosting accounts get adversely affected with unauthorized FTP uploads. This is not the case in terms of the cPanel hosting accounts as the domains created can be directly altered from the systems. In terms of reseller hosting or VPS hosting accounts, the FTP access to your website can be secured either for some UP addresses or for the complete subnet.
Initially, your own IP address needs to be determined. This can be done by visiting the www.whatismyip.com website; this website will determine your IP address. If you are using a static IP address, you will need only this information. However, if you are assigned a dynamic IP address, it means that there will be changes in your IP address, therefore you will need to know the IP address that is assigned to you.
In case you have a static IP address, visit the “Whatismyip” website and click on the “IP WHOIS Lookup” link present on the left hand side of the page and then simply click the “Whois Lookup” button. You will be presented with detailed information about your IP address on the middle of the page. In that information, you will come across the following:
inetnum : 220.127.116.11 – 18.104.22.168
The figure mentioned above is the range of the IP addresses you could be assigned. Now that you are aware of the possible IP addresses, you may proceed with performing the following steps:
Create a file on your machine in the text editor with the file name .ftpaccess.
In case you have a static IP address, insert the content mentioned below in that file:
“Allow 22.214.171.124” – Leave this line for backup. This can be done through the file manager present in the Admin area. ckup purpose so that access can be gained for the .ftpaccess file.
In case you have a dynamic IP address, then the possible range of IP addresses have to be allowed. The file content will be shown as below:
Now that the .ftpaccess file is created, it has to be uploaded into the httpdocs, httpsdocs and cgi-bin folders present on the server. With this, all the IP addresses trying to access your website through the will be restricted.
The change mentioned above won’t stop blocks on SFTP or WinSCP, if you will be using these protocols only a file with the following contents can be created.
With this the FTP access to your website will be restricted. This procedure can be only implemented for the reseller hosting and VPS hosting accounts.
If you need any further assistance on this, you can contact our support team through a live chat or by raising a ticket.