We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e6318bf commit 976fcdeCopy full SHA for 976fcde
src/middleware/block_traffic.rs
@@ -47,7 +47,8 @@ impl Handler for BlockTraffic {
47
.iter()
48
.any(|value| self.blocked_values.iter().any(|v| v == value));
49
if has_blocked_value {
50
- super::log_request::add_custom_metadata(req, "cause", "blocked");
+ let cause = format!("blocked due to contents of header {}", self.header_name);
51
+ super::log_request::add_custom_metadata(req, "cause", cause);
52
let body = format!(
53
"We are unable to process your request at this time. \
54
This usually means that you are in violation of our crawler \
0 commit comments