Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

- Infer span descriptions via `sentry-conventions`. ([#6093](https://github.com/getsentry/relay/pull/6093))
- Raises the size limit for the flags context to 64KiB. ([#6137](https://github.com/getsentry/relay/pull/6137))
- Add Lightpanda to web crawler filter. ([#6143](https://github.com/getsentry/relay/pull/6143))

**Bug Fixes**:

Expand Down
4 changes: 3 additions & 1 deletion relay-filter/src/web_crawlers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ static WEB_CRAWLERS: LazyLock<Regex> = LazyLock::new(|| {
GPTBot| # OpenAI - see https://platform.openai.com/docs/bots
PerplexityBot| # Perplexity - see https://docs.perplexity.ai/guides/bots
Applebot| # Apple - see https://support.apple.com/en-us/119829
DuckDuckBot # DuckDuckGo - see https://duckduckgo.com/duckduckgo-help-pages/results/duckduckbot
DuckDuckBot| # DuckDuckGo - see https://duckduckgo.com/duckduckgo-help-pages/results/duckduckbot
Lightpanda # Lightpanda - see https://lightpanda.io/
"
)
.expect("Invalid web crawlers filter Regex")
Expand Down Expand Up @@ -164,6 +165,7 @@ mod tests {
"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; PerplexityBot/1.0; +https://perplexity.ai/perplexitybot)",
"Mozilla/5.0 (Device; OS_version) AppleWebKit/WebKit_version (KHTML, like Gecko)Version/Safari_version [Mobile/Mobile_version] Safari/WebKit_version (Applebot/Applebot_version; +http://www.apple.com/go/applebot)",
"DuckDuckBot/1.1; (+http://duckduckgo.com/duckduckbot.html)",
"Lightpanda/1.0",
];

for banned_user_agent in &user_agents {
Expand Down
Loading