Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

devuser23's avatar

Why the WAF is "crashing" the website - Laravel

This is my first website in the Laravel framework. The website is running fine without the firewall. But whenever the firewall is enabled, the site is giving 502 or 504 server errors and thus the site is not loading.

As per the hosting company's opinion, the website is blocking the WAF because of laravel's security features. The WAF is always checking the connection to the site and server to make sure the site is still up. So, the site security detects this as unwanted traffic after a while and probably blocks the WAF, thus getting a site error.

So what changes do I need to make on the website to resolve this issue?

0 likes
6 replies
Sinnbeck's avatar

What WAF? some package or something installed on the server?

1 like
devuser23's avatar

@Sinnbeck Web Application Firewall - i don't know, I am confused, Do I need to install or do I need to remove something?

Sinnbeck's avatar

@devuser23 yes I know what it means. But that does not tell me which web application firewall it is. Laravel does not come with one

1 like
Sinnbeck's avatar

@devuser23 Ok so that is installed locally on the server as a service I suppose. Can the host say what features they want you to change? Sounds a bit like they are asking you to rewrite laravel from scratch to make it work. What are you needing it for ? To block ddos attacks or ?

1 like
devuser23's avatar

@Sinnbeck When Sucuri firewall is not enabled, site is working fine but when Sucuri firewall is enabled, site is not loading at all and giving 5xx server error, and GoDaddy is saying to make changes in programming to make this working... So i just want to know what changes do i need to make in programming or do i need to install any additional package on GoDaddy server to allow site to work under Sucuri firewall

Please or to participate in this conversation.