Redditbot is currently blocked by AppSec and not excluded from bot challenges
Maintainers usually reply within 4 days
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 30/100
- Issue type
- Feature
- Clarity
- Needs clarification
- Activity status
- Active
- Domain
- security
Research direction
Start with the linked appsec-bot-challenge-exclude-social WAF configuration and compare how its existing social crawlers are verified. The issue does not identify a trustworthy Redditbot network attribute or settle whether a User-Agent-only definition is acceptable, so first establish a recommended verification method. Done means Redditbot can be allowed without relying on spoofable headers or broad cloud IP ranges.
Written by the indexing model from the issue text.
Description
What would you like to be added?
The Reddit link-preview crawler (redditbot) is currently being blocked/challenged by CrowdSec AppSec and the new bot detection feature.
It is not currently included in the appsec-bot-challenge-exclude-social WAF configuration.
I would like to add support for Redditbot as a legitimate social-media crawler, similar to the existing exclusions for services such as Twitter/X, LinkedIn, Discord, Pinterest, etc.
Observed User-Agent
The requests I am seeing use the following User-Agent:
Mozilla/5.0 (compatible; redditbot/1.0; +http://www.reddit.com/feedback)
The identifying part appears to be:
redditbot/1.0
Network verification
The challenge is that, unlike some of the other supported bots, I have not been able to identify a dedicated and trustworthy IP range for Redditbot that we could use for verification.
For example, we observed a request with the following headers:
User-Agent: Mozilla/5.0 (compatible; redditbot/1.0; +http://www.reddit.com/feedback)
X-Forwarded-Host: ...
X-Span: ...
X-Sampled: 1
X-Trace: ...
Traceparent: ...
X-Forwarded-Server: ...
X-Parent: 0
However, I don't consider these headers to be suitable authentication/verification mechanisms for a legitimate bot whitelist. I also don't want to whitelist broad cloud-provider IP ranges merely because Redditbot may originate from such infrastructure.
Question
What is the recommended way to add redditbot to the appsec-bot-challenge-exclude-social configuration?
In particular:
- Is there an official Redditbot IP range, ASN, reverse-DNS pattern, or other network attribute that CrowdSec recommends using to verify that requests genuinely originate from Reddit?
- If no trustworthy network verification is available, does CrowdSec support a User-Agent-only legitimate-bot definition for Redditbot? I assume not, as the user-agent can be spoofed by anyone and would bypass bot protection completely.
- Is there another recommended mechanism for allowing Reddit's URL/link-preview crawler without weakening AppSec bot protection?
I'd be happy to contribute a reddit.json definition if there is a recommended verification method.
Thanks!
Why is this needed?
Unlike other social media bots, Reddit is not included in the list of appsec-bot-challenge-exclude-social. Therefore, it is blocked and gets the bot verification challenge. Unable to fetch blog post seo content, images and sorts.
- Dominant language
- Go
- Stars
- 15.1k
- Forks
- 726
- Avg merge
- 4d 23h
- Merged PRs (30d)
- 27
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from crowdsecurity/crowdsec
-
needs/kind needs/triage
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
crowdsecurity/crowdsec#4849 · 2 comments ·
Maintainers usually reply within 4 days
-
kind/bug needs/triage
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
crowdsecurity/crowdsec#4847 · 3 comments ·
Maintainers usually reply within 4 days
-
kind/bug needs/triage os/linux
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
crowdsecurity/crowdsec#4836 · 1 comment ·
Maintainers usually reply within 4 days
-
victorialogs datasource passes the trailing newline of a message to the parsers (traefik-logs 1.6 fails on every line)Possibly taken @IlayWolfson claimed this 6 days ago. Openkind/bug needs/triage os/linux version/1.8.2
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
crowdsecurity/crowdsec#4820 · 1 comment ·
Maintainers usually reply within 4 days
-
[email protected]Openneeds/kind needs/triage
Difficulty 5/5 Over a week Newbie friendliness 10/100
crowdsecurity/crowdsec#4842 · 3 comments ·
Maintainers usually reply within 4 days
All issues in crowdsecurity/crowdsec
Similar issues
-
enhancement
Difficulty 1/5 Under an hour Newbie friendliness 62/100
DaoCloud/DaoCloud-docs#7839 ·
Maintainers usually reply within 1 day
-
Type: Enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
projectdiscovery/urlfinder#167 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
peterstace/simplefeatures#726 ·
-
area: import bug go good first issue priority: low
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
fukubie/StockLlama#69 ·
-
enhancement help wanted
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
cloverworks-hq/rumpty-cli#95 ·
Maintainers usually reply within 1 day