Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Paste
P84210
(An Untitled Masterwork)
Active
Public
Actions
Authored by
Joe
on Wed, Oct 22, 5:09 AM.
Edit Paste
Archive Paste
View Raw File
Subscribe
Mute Notifications
Tags
None
Referenced Files
F66778149: raw-paste-data.txt
Wed, Oct 22, 5:09 AM
2025-10-22 05:09:16 (UTC+0)
Subscribers
None
# This piece of code should be called for traffic with the correct X-Trusted-Request header
sub rl_known_bots {
# Add a first entry to start the if; this should never match
if ( !req.http.X-Provenance ) {
return;
}
{{ range $bot := ls "/<path>" }}
{{ $key := printf( "/<path>/%s" $bot }}
{{ $data := json( getv( $key ) ) }}
elsif ( req.http.X-Provenance ~ {{ $bot.name }} ) {
if (vsthrottle.is_denied({{ $bot.name}}, {{ $bot.limit }}, 100, 100 ) {
return(synth(403));
}
}
{{ end }}
}
Event Timeline
Joe
created this paste.
Wed, Oct 22, 5:09 AM
2025-10-22 05:09:16 (UTC+0)
Log In to Comment