Learn how to detect & mitigate cyber attacks. As you might have read on the internet, there are various ways to defend your webapplication against unwanted commands. The first solution you might think about is getting a SIEM which will allow you to have an insight on the assets which are being targeted. But a SIEM does cost money and needs time to be installed, configured and managed. The second solution you might think about is getting a ‘99% secure CMS’ which will also cost you money and a lot of time. The third solution could be to use no database and forms which can be exploited in the future. Nah, these are not the solutions you are searching for.
The most important solution could be to upgrade your webapplication with the latest patches and updates. This will provide you an more secure webapplication. The second step which should be taken is, that you should get an understanding of what exactly a CSRF, SQLi or XSS attack is and how it is performed. The OWASP website has a massive library on how these attacks are performed and which code you need to stop those attacks.
So now that you understand what is attacking you and which codes are being manipulated you can proceed to the free solution which is provided by Cloudflare. The Cloudflare solution will act as a ‘bouncer’ that stands infront of your website. If genuine requests are made, the connection is allowed to your website. If malicious requests are made, the Cloudflare ‘bouncer’ will stop the request.