Skip to content

Commit

Permalink
Update RequestBlocking.js
Browse files Browse the repository at this point in the history
  • Loading branch information
strayfade committed Jul 15, 2024
1 parent 08c7440 commit c8d9fb6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion RequestBlocking.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ let RequestAnalytics = {
const Middleware = (Request, Response, Next) => {
for (let x = 0; x < BlacklistedPaths.length; x++) {
if (Request.path.toString().toLowerCase().includes(BlacklistedPaths[x].toLowerCase())) {
Log('Blacklisted path: ' + BlacklistedPaths[x])
//Log('Blacklisted path: ' + BlacklistedPaths[x])
RequestAnalytics.TotalRequestsBlocked++
Response.sendStatus(404)
return
Expand Down

0 comments on commit c8d9fb6

Please sign in to comment.