DuckDuckBot
Search engine crawler operated by DuckDuckGo
DuckDuckGo
Operator
Published IP ranges
Verification
DuckDuckBot
robots.txt token
Yes
Honours robots.txt
What DuckDuckBot is
DuckDuckGo search crawler.
Its robots.txt token is DuckDuckBot , and it is listed as honouring robots.txt. Operator documentation: DuckDuckGo .
Verifying it yourself
DuckDuckGo publishes the ranges DuckDuckBot crawls from. Fetch them and test the source address:
# 1. fetch the published ranges
curl -s -o ranges.json \
https://duckduckgo.com/duckduckbot.json
# 2. check an address against them
python3 - 203.0.113.42 <<'PY'
import json, sys, ipaddress
ip = ipaddress.ip_address(sys.argv[1])
data = json.load(open('ranges.json'))
hit = any(ip in ipaddress.ip_network(p.get('ipv4Prefix') or p['ipv6Prefix'])
for p in data['prefixes'])
print('verified' if hit else 'NOT VERIFIED')
PYSwap in the address you are checking. Never trust the User-Agent on its own: it is a header the client picks for itself.
Blocking it
If you want the real crawler to stay away, robots.txt is the polite way to ask:
User-agent: DuckDuckBot
Disallow: /robots.txt only works on a client willing to obey it, which rules out every request that was already lying about who it is. Stopping those takes enforcement at the network or application layer, keyed on something the client cannot simply retype. That is the problem WebDecoy exists to solve.
Frequently Asked Questions
What is DuckDuckBot? +
DuckDuckBot is a search engine crawler operated by DuckDuckGo. DuckDuckGo search crawler.
How do I verify DuckDuckBot? +
DuckDuckGo publishes the IP ranges DuckDuckBot uses at https://duckduckgo.com/duckduckbot.json. Check whether the request's source address falls inside one of those prefixes, and reject it if it does not. Never match on the User-Agent alone, because that is the part a client chooses for itself.
How do I block DuckDuckBot? +
Add a robots.txt rule for the token DuckDuckBot. That stops the real crawler, but not clients that only borrow its name, so pair it with verification and enforcement at your edge.
Related crawlers
- DuckAssistBot DuckDuckGo
- 360Spider Qihoo 360
- Applebot Apple
- Baiduspider Baidu
- Bingbot Microsoft
- Bravebot Brave
- CGMSearchBot CGMIMM
- Coc Coc Coc Coc
- Ecosia Ecosia
- Google-InspectionTool Google
- Googlebot Google
- IbouBot Ibou
See which DuckDuckBot requests are real
WebDecoy verifies declared crawlers against what their operators publish and identifies the ones that fail, as persistent actors rather than disposable IPs.