skipperbent / simple-php-router

Simple, fast and yet powerful PHP router that is easy to get integrated and in any project. Heavily inspired by the way Laravel handles routing, with both simplicity and expand-ability in mind.
647 stars 121 forks source link

403: Route "/" or method "head" not allowed. #705

Open kangarko opened 9 months ago

kangarko commented 9 months ago

I've been having a ton of these attacks or scans on my website. This is a private subdomain not indexed on google, and every error is logged for debug purposes.

Screenshot 2024-01-09 at 06 40 29

How can I catch this error in simple router instead of letting it fall down to the php's error handler?