524 Time Out

hello, I’m from Indonesia and sorry in advance if the use of words is not correct.

So I have a news portal website and my website is often hit by attacks, now the website suddenly cannot be accessed and has error 524, a few days ago after I configured it and it was still running smoothly and normally, I subscribed to Cloudflare Pro to get more security about the website I.

please help to solve this 524 problem, if I turn off the proxy it will run normally, but I want to turn on the proxy to make it safer, right?

Welcome. A 524 error indicates that Cloudflare made a successful TCP connection to the origin web server, but the origin did not reply with an HTTP response before the connection timed out. Review the suggestions in this Community Tip for troubleshooting ideas.