Hey there!
The frequency of DDOS attacks has increased as the website gained more traction, causing the shared hosting to block my account. Realizing this was a problem, I started looking for a solution. However, I made the mistake of replenishing the balance for a year out of stupidity and greed, and now there is no option for withdrawing funds.
I'm interested in purchasing a VPS to use only as a dedicated IP and physically leaving the site on the hosting, but specifying the IP of the VPS in the A-record. Is this feasible?
If not, my second option would be to implement ROUND ROBIN (using both IP hosting and VPS) to distribute the load equally, but the first option would be preferable.
There is a possible solution to your issue. For instance, you can install and use HAProxy on the VPS, which will distribute the traffic evenly between the shared and VPS. This will allow the traffic to be redirected to the VPS for processing if the shared server is down.
Another option is using RoundRobin DNS, which can also be very useful.
Are you aware of any possible use for the virtual machine that would prevent traffic from flowing into the shared?
If so, then you could use nginx and proxy_pass to filter out the specific requests you need. I suggest reading dоcumentation on how to do this effectively.
In my opinion, it would be simpler to purchase a VPS from the same hosting provider to avoid losing any funds.
Alternatively, you can check my profile for recommendations on reasonably priced VPS options that may meet your needs.
I recall reading that virtual hosting platforms provide dynamic load redistribution between websites. This means that if there is a significant load on your site, while neighboring sites have minimal traffic, then the resources of almost the entire physical server can be temporarily allocated to your website. On the other hand, VPS provides virtual machines with fixed resources, and such redistribution may not be possible. Are there any restrictions in this regard?
By the way, do VPS servers have some form of DDoS protection available?
Yes, it is feasible to use a VPS as a dedicated IP and specify the IP of the VPS in the A-record while keeping the site on the shared hosting. By doing this, you can route traffic through the VPS and potentially mitigate the DDOS attacks. This approach allows you to take advantage of the VPS's dedicated resources and separate your site from others on the shared hosting.
Implementing ROUND ROBIN, as you mentioned, is another viable option to distribute the load equally between the IP hosting and VPS. This approach can help improve the overall performance and availability of your website.
Both options have their advantages, so it's up to you to decide which one suits your needs and technical capabilities better.
Here are some additional considerations for each option:
1. Using a VPS as a dedicated IP: This approach gives you more control over your website's resources and security since you're not sharing them with other sites on the shared hosting. It also allows you to easily scale up or down based on your needs. However, keep in mind that you'll be responsible for managing and maintaining the VPS, which requires technical expertise or the ability to hire a system administrator.
2. Implementing ROUND ROBIN: This method can distribute the incoming traffic evenly between the IP hosting and VPS, providing redundancy and load balancing. By spreading the load across multiple servers, you can handle more traffic and reduce the risk of service interruptions caused by DDOS attacks or other issues. However, it may require additional configuration and monitoring to ensure an even distribution of the load.
Consider factors such as budget, technical skills, and the expected growth of your website when making a decision. It may also be helpful to consult with a professional who specializes in web hosting or network infrastructure to determine the best approach for your specific situation.