I found some PHP files listed in the logs of my Next.js 14 app. Has anyone encountered something like this before? I’m wondering what these files are, as the project has never used PHP.
Hi there, I would like to mention that the posting stripped out the escape character in the regular expression. So you need to backslash the periods in the expression.
I don’t know if these long regular expressions have any sort of performance impact on the website. I am thinking I am going to consolidate the 3 Rule Slots into 1 Rules slot regular expression and eliminate some of parts of the expression that don’t seem to block very much. /gallery for example is not getting attacked but maybe 4 times a day so its only denying 100 requests a month. I’m not sure its worth the overhead to block it as opposed to serving a 404. If I find that long expressions in the WAF doesn’t affect performance I will probably just keep them all. I just havent had the chance to test if there are any performance impacts using such long expressions. I have not noticed any performance impact just casually browsing the site.