diff --git a/SYNTAX-REFERENCE.md b/SYNTAX-REFERENCE.md index 9e9c153ab..19c205bd1 100644 --- a/SYNTAX-REFERENCE.md +++ b/SYNTAX-REFERENCE.md @@ -1501,6 +1501,21 @@ This can be used in conjunction with `max-redirects` to control the HTTP request
+protocol-redirects bool + +
+
+ +ProtocolRedirects specifies whether only redirects within the same protocol should be followed. + +When set to true with redirects enabled, cross-protocol redirects (e.g. HTTP to HTTPS) will be blocked. + +
+ +
+ +
+ pipeline bool
diff --git a/nuclei-jsonschema.json b/nuclei-jsonschema.json index 482a38241..015fe33ad 100644 --- a/nuclei-jsonschema.json +++ b/nuclei-jsonschema.json @@ -865,6 +865,11 @@ "title": "follow same host http redirects", "description": "Specifies whether redirects to the same host should be followed by the HTTP Client" }, + "protocol-redirects": { + "type": "boolean", + "title": "follow same protocol http redirects", + "description": "Specifies whether only same-protocol redirects should be followed by the HTTP Client" + }, "pipeline": { "type": "boolean", "title": "perform HTTP 1.1 pipelining",