Skip to content

Commit

Permalink
Create Detect403Forbidden.bambda
Browse files Browse the repository at this point in the history
This script identifies if the HTTP response status code is 403 (Forbidden).
  • Loading branch information
ctflearner authored Dec 18, 2024
1 parent e1154e5 commit 14976ec
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Filter/Proxy/HTTP/Detect403Forbidden.bambda
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
/**
* Bambda Script to Detect "403 Forbidden" in HTTP Response
* @author ctflearner
* This script identifies if the HTTP response status code is 403 (Forbidden).
* It ensures there is a response and checks if the status code indicates access is denied.
**/


return requestResponse.hasResponse() && requestResponse.response().statusCode() == 403;

0 comments on commit 14976ec

Please sign in to comment.