Answer the question
In order to leave comments, you need to log in
How to protect a site on bitrix from DDOS?
Friends, welcome!
I want to ask if anyone struggled with DDOS on a server (VPS) with a site written in bitrix. The fact is that there are unoptimized queries to the DBMS (mysql), which, with a significant number of connections to the start page, due to the heavy mysql load on the processor, "knock down" the server. We are working on query optimization, but I would like to make sure in case someone decides to try to fill up the server now.
If anyone has a positive experience in setting up some modules for Bitrix, or iptables, or something for apache, please share your experience.
Thanks"
Answer the question
In order to leave comments, you need to log in
So the problem is that you are being DDOSed or that everything is stupid on Bitrix?
These are two different problems and they need to be addressed in different ways and in different places.
About DDOS you have already been answered - to filter traffic. Packets should not even reach the server, not to mention bitrix.
man iptables.
Regarding Bitrix - enable caching in the components - what difference does it make how many accesses you will have to the main one, if with the cache enabled, say for 10 hours, your heavy, unoptimized queries will be executed no more than once every 10 hours? At least bother. The component will work once and will spit out the code from the cache file until it becomes obsolete.
It doesn't matter what your site is. You need to filter requests at the iptables or hardware level.
It would also be cool to abandon apache in favor of the nginx + php-fpm bundle.
Turn off all Bitrix modules that load percents, install an intermediate filtering server with ipitables, set up caching and filters on the main server for all sorts of user agents and other things that give out bots.
Recently I fought off some incredible attack for my client, given that the client was small and why it was not clear why they bombed him so hard.
if anyone decides now to try to fill up the server
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question