I have PHP Laravel application installed on my CentOS VPS. It is backend for my mobile application that has been recently updated. Unfortunately I wrote some bad code that results in making request that is concatenation of hundreds, maybe thousands of words.
My apache server is going down very often ( at minimum 1 per hour ) and I have to run : service httpd restart.
As i see in error.log there are a lot of those entries :
(36)File name too long: Cannot map GET /adminpanel/public/api/v2/categoriese=c3Jr...
Tens of those requests per second and apache is down.
I've published an update to app stores, but some users still have old version. Is there a possibility to block those requests before they will be processed ?