diff --git a/Filter/Proxy/HTTP/HighlightPwnFox.bambda b/Filter/Proxy/HTTP/HighlightPwnFox.bambda new file mode 100644 index 0000000..71f7812 --- /dev/null +++ b/Filter/Proxy/HTTP/HighlightPwnFox.bambda @@ -0,0 +1,17 @@ +/** + * Filter requests in scope and containing the "X-Pwnfox-Color" header. + * + * @author GangGreenTemperTatum (https://github.com/GangGreenTemperTatum) + **/ + +var request = requestResponse.request(); + +// Check if the request is in scope +if (!request.isInScope()) { + return false; +} + +// Check if the request has the "X-Pwnfox-Color" header +var hasPwnfoxColorHeader = request.hasHeader("X-Pwnfox-Color"); + +return hasPwnfoxColorHeader;