resulthack

All AI crawlers /

DuckAssistBot

DuckDuckGo · AI search · robots.txt: Yes

Fetches pages in real time for DuckDuckGo Search's AI-assisted answers, which prominently cite their sources.

Block DuckAssistBot

User-agent: DuckAssistBot
Disallow: /

Blocking DuckAssistBot opts your site out of being a source for DuckDuckGo's AI-assisted answers. DuckDuckGo says it does not affect organic search rankings or whether your site appears in its search results.

Allow DuckAssistBot

User-agent: DuckAssistBot
Allow: /

An allow group only changes anything if a broader rule would block DuckAssistBot. Under the robots.txt standard (RFC 9309, section 2.2.1) a crawler follows the group that names it and uses the User-agent: * group only when no group does — so this group lets it in even if your * group says Disallow: /. Token matching is case-insensitive.

Put these lines in /robots.txt at the root of each host (each subdomain has its own file). robots.txt is a request to well-behaved crawlers, not access control.

Block or allow it at the server

robots.txt asks; a server rule refuses. Every rule here matches DuckAssistBot, spelled as in the User-Agent DuckDuckGo documents (“DuckAssistBot/1.2”), and matches it case-sensitively. The server answers 403.

What a User-Agent rule cannot do: any client can send any User-Agent. Access control by User-Agent is an unreliable technique, since the User-Agent header can be set to anything at all, at the whim of the end user. (Apache HTTP Server 2.4 documentation). A fake DuckAssistBot is refused by the block rule along with the real one, and a crawler that hides its name passes. The “only the real one” rule is the check: it lets the name in only from DuckDuckGo's published addresses.

Your server

To block it: refuse every request that says DuckAssistBot

In the server block (or a location)

if ($http_user_agent ~ DuckAssistBot) {
    return 403;
}

To allow only the real one: refuse DuckAssistBot claims from outside DuckDuckGo's list

In the http block

geo $duckassistbot_unlisted {
    default 1;
    104.43.54.127/32 0;
    104.43.55.116/32 0;
    104.43.55.117/32 0;
    104.43.55.166/32 0;
    104.43.55.167/32 0;
    108.141.83.74/32 0;
    128.203.132.152/32 0;
    128.203.181.79/32 0;
    128.203.214.241/32 0;
    128.203.236.110/32 0;
    128.203.82.154/32 0;
    13.86.35.212/32 0;
    13.89.106.77/32 0;
    13.90.178.139/32 0;
    130.107.228.224/32 0;
    131.145.39.118/32 0;
    131.189.183.241/32 0;
    132.164.209.198/32 0;
    132.196.106.146/32 0;
    132.220.1.71/32 0;
    134.33.207.189/32 0;
    135.171.251.169/32 0;
    135.233.63.237/32 0;
    135.234.221.112/32 0;
    135.235.183.95/32 0;
    172.168.115.250/32 0;
    172.168.12.93/32 0;
    172.168.133.76/32 0;
    172.168.137.102/32 0;
    172.168.152.88/32 0;
    172.168.173.230/32 0;
    172.168.190.186/32 0;
    172.168.227.120/32 0;
    172.168.254.119/32 0;
    172.168.43.43/32 0;
    172.168.51.216/32 0;
    172.168.53.53/32 0;
    172.168.81.217/32 0;
    172.168.94.160/32 0;
    172.169.164.109/32 0;
    172.169.17.165/32 0;
    172.169.177.131/32 0;
    172.169.181.237/32 0;
    172.169.28.184/32 0;
    172.169.36.43/32 0;
    172.169.53.208/32 0;
    172.169.60.134/32 0;
    172.169.7.33/32 0;
    172.169.93.148/32 0;
    172.171.37.221/32 0;
    172.179.105.87/32 0;
    172.179.128.118/32 0;
    172.188.250.220/32 0;
    172.189.40.18/32 0;
    172.193.184.42/32 0;
    172.193.197.146/32 0;
    172.193.245.229/32 0;
    172.194.141.49/32 0;
    172.199.55.212/32 0;
    172.210.111.68/32 0;
    191.233.3.197/32 0;
    191.233.3.202/32 0;
    191.234.216.178/32 0;
    191.234.216.4/32 0;
    191.235.201.214/32 0;
    191.235.202.38/32 0;
    191.235.202.48/32 0;
    20.100.136.36/32 0;
    20.100.140.155/32 0;
    20.101.17.173/32 0;
    20.102.34.205/32 0;
    20.109.129.162/32 0;
    20.109.130.190/32 0;
    20.109.241.18/32 0;
    20.112.58.44/32 0;
    20.113.14.159/32 0;
    20.113.3.121/32 0;
    20.115.181.187/32 0;
    20.118.11.251/32 0;
    20.119.127.146/32 0;
    20.12.141.99/32 0;
    20.12.249.123/32 0;
    20.12.252.21/32 0;
    20.121.75.32/32 0;
    20.13.44.19/32 0;
    20.15.142.178/32 0;
    20.166.171.150/32 0;
    20.170.75.54/32 0;
    20.175.232.228/32 0;
    20.185.79.15/32 0;
    20.185.79.47/32 0;
    20.190.21.172/32 0;
    20.191.44.119/32 0;
    20.191.44.16/32 0;
    20.191.44.22/32 0;
    20.191.44.234/32 0;
    20.191.45.212/32 0;
    20.193.12.126/32 0;
    20.193.24.10/32 0;
    20.193.24.251/32 0;
    20.193.25.197/32 0;
    20.193.27.215/32 0;
    20.193.45.113/32 0;
    20.195.108.47/32 0;
    20.195.58.189/32 0;
    20.197.209.11/32 0;
    20.197.209.27/32 0;
    20.198.132.126/32 0;
    20.198.152.208/32 0;
    20.201.15.208/32 0;
    20.204.228.200/32 0;
    20.204.240.172/32 0;
    20.204.241.148/32 0;
    20.204.242.101/32 0;
    20.204.242.19/32 0;
    20.204.243.55/32 0;
    20.204.246.254/32 0;
    20.204.246.81/32 0;
    20.207.107.181/32 0;
    20.207.117.66/32 0;
    20.207.72.11/32 0;
    20.207.72.110/32 0;
    20.207.72.113/32 0;
    20.207.72.21/32 0;
    20.207.97.190/32 0;
    20.207.99.197/32 0;
    20.212.139.34/32 0;
    20.212.90.107/32 0;
    20.216.200.223/32 0;
    20.219.43.246/32 0;
    20.219.45.190/32 0;
    20.219.45.67/32 0;
    20.221.10.115/32 0;
    20.221.84.185/32 0;
    20.226.133.105/32 0;
    20.23.88.231/32 0;
    20.231.254.179/32 0;
    20.232.249.95/32 0;
    20.232.51.46/32 0;
    20.236.195.196/32 0;
    20.236.198.192/32 0;
    20.236.227.113/32 0;
    20.236.233.23/32 0;
    20.236.247.180/32 0;
    20.236.40.93/32 0;
    20.237.1.51/32 0;
    20.241.135.19/32 0;
    20.241.147.151/32 0;
    20.241.153.203/32 0;
    20.241.164.5/32 0;
    20.241.241.100/32 0;
    20.242.133.53/32 0;
    20.242.135.165/32 0;
    20.242.211.139/32 0;
    20.242.215.53/32 0;
    20.242.237.240/32 0;
    20.246.132.168/32 0;
    20.246.225.34/32 0;
    20.247.235.11/32 0;
    20.250.51.113/32 0;
    20.252.16.193/32 0;
    20.252.41.18/32 0;
    20.252.63.162/32 0;
    20.252.88.10/32 0;
    20.252.9.6/32 0;
    20.253.114.51/32 0;
    20.253.59.76/32 0;
    20.253.96.199/32 0;
    20.29.149.44/32 0;
    20.29.154.56/32 0;
    20.3.1.178/32 0;
    20.3.60.212/32 0;
    20.40.133.240/32 0;
    20.40.147.172/32 0;
    20.43.150.85/32 0;
    20.43.150.93/32 0;
    20.43.152.28/32 0;
    20.43.172.120/32 0;
    20.44.222.1/32 0;
    20.49.129.236/32 0;
    20.49.136.28/32 0;
    20.50.168.91/32 0;
    20.50.48.159/32 0;
    20.50.48.192/32 0;
    20.50.49.0/32 0;
    20.50.49.237/32 0;
    20.50.49.25/32 0;
    20.50.49.40/32 0;
    20.50.49.55/32 0;
    20.50.50.118/32 0;
    20.50.50.121/32 0;
    20.50.50.123/32 0;
    20.50.50.130/32 0;
    20.50.50.134/32 0;
    20.50.50.145/32 0;
    20.50.50.146/32 0;
    20.50.50.163/32 0;
    20.50.50.46/32 0;
    20.53.134.160/32 0;
    20.53.78.106/32 0;
    20.53.78.123/32 0;
    20.53.78.138/32 0;
    20.53.78.144/32 0;
    20.53.78.236/32 0;
    20.53.91.2/32 0;
    20.53.92.211/32 0;
    20.54.224.39/32 0;
    20.56.197.58/32 0;
    20.56.197.63/32 0;
    20.59.0.65/32 0;
    20.61.142.192/32 0;
    20.61.34.40/32 0;
    20.62.224.44/32 0;
    20.64.185.45/32 0;
    20.69.129.205/32 0;
    20.69.131.45/32 0;
    20.69.138.149/32 0;
    20.69.138.189/32 0;
    20.69.144.137/32 0;
    20.69.146.171/32 0;
    20.69.147.21/32 0;
    20.69.171.204/32 0;
    20.69.74.250/32 0;
    20.71.12.143/32 0;
    20.71.69.210/32 0;
    20.72.197.110/32 0;
    20.72.203.250/32 0;
    20.72.218.29/32 0;
    20.72.221.33/32 0;
    20.72.221.45/32 0;
    20.72.225.13/32 0;
    20.72.242.209/32 0;
    20.72.242.93/32 0;
    20.73.132.240/32 0;
    20.73.202.147/32 0;
    20.75.144.152/32 0;
    20.75.254.61/32 0;
    20.77.146.108/32 0;
    20.79.226.26/32 0;
    20.79.238.198/32 0;
    20.79.239.66/32 0;
    20.8.252.26/32 0;
    20.80.114.203/32 0;
    20.80.120.41/32 0;
    20.80.129.80/32 0;
    20.80.135.7/32 0;
    20.80.156.88/32 0;
    20.81.115.13/32 0;
    20.82.24.207/32 0;
    20.84.138.61/32 0;
    20.84.219.45/32 0;
    20.84.251.223/32 0;
    20.85.138.75/32 0;
    20.85.167.56/32 0;
    20.85.187.146/32 0;
    20.88.168.65/32 0;
    20.9.114.242/32 0;
    20.93.28.24/32 0;
    20.93.49.96/32 0;
    20.99.154.113/32 0;
    20.99.255.235/32 0;
    4.144.148.23/32 0;
    4.144.182.50/32 0;
    4.144.227.142/32 0;
    4.144.251.39/32 0;
    4.149.142.7/32 0;
    4.149.159.102/32 0;
    4.149.159.71/32 0;
    4.149.216.220/32 0;
    4.150.142.218/32 0;
    4.154.193.167/32 0;
    4.156.136.79/32 0;
    4.156.154.107/32 0;
    4.156.30.123/32 0;
    4.157.77.76/32 0;
    4.172.49.103/32 0;
    4.177.16.196/32 0;
    4.182.10.198/32 0;
    4.182.131.108/32 0;
    4.195.133.120/32 0;
    4.201.125.59/32 0;
    4.201.141.71/32 0;
    4.201.197.203/32 0;
    4.201.206.133/32 0;
    4.201.220.8/32 0;
    4.207.220.92/32 0;
    4.209.224.56/32 0;
    4.213.46.14/32 0;
    4.226.40.135/32 0;
    4.228.76.163/32 0;
    4.237.155.54/32 0;
    4.237.244.80/32 0;
    4.242.119.13/32 0;
    4.246.10.252/32 0;
    4.248.234.26/32 0;
    4.249.216.104/32 0;
    4.249.223.51/32 0;
    4.249.238.11/32 0;
    4.254.123.56/32 0;
    4.255.35.121/32 0;
    4.255.39.80/32 0;
    40.114.182.153/32 0;
    40.114.182.172/32 0;
    40.114.182.45/32 0;
    40.114.183.196/32 0;
    40.114.183.251/32 0;
    40.114.183.88/32 0;
    40.119.232.146/32 0;
    40.119.232.215/32 0;
    40.119.232.218/32 0;
    40.119.232.251/32 0;
    40.119.232.50/32 0;
    40.121.121.54/32 0;
    40.127.154.196/32 0;
    40.64.105.247/32 0;
    40.64.106.11/32 0;
    40.64.106.152/32 0;
    40.64.67.220/32 0;
    40.64.78.45/32 0;
    40.64.88.145/32 0;
    40.65.78.86/32 0;
    40.76.162.17/32 0;
    40.76.162.191/32 0;
    40.76.162.208/32 0;
    40.76.162.247/32 0;
    40.76.163.23/32 0;
    40.76.163.7/32 0;
    40.76.173.151/32 0;
    40.81.250.205/32 0;
    40.82.218.203/32 0;
    40.88.195.62/32 0;
    40.88.21.235/32 0;
    40.89.243.175/32 0;
    48.192.16.86/32 0;
    48.192.74.178/32 0;
    48.200.33.227/32 0;
    48.202.155.200/32 0;
    48.202.171.124/32 0;
    48.204.32.87/32 0;
    48.206.18.152/32 0;
    48.217.129.210/32 0;
    48.217.212.89/32 0;
    48.217.23.236/32 0;
    48.223.209.110/32 0;
    51.104.144.31/32 0;
    51.104.146.225/32 0;
    51.104.146.235/32 0;
    51.104.160.167/32 0;
    51.104.160.177/32 0;
    51.104.161.32/32 0;
    51.104.162.149/32 0;
    51.104.163.250/32 0;
    51.104.164.109/32 0;
    51.104.164.147/32 0;
    51.104.164.189/32 0;
    51.104.164.215/32 0;
    51.104.166.111/32 0;
    51.104.167.104/32 0;
    51.104.167.110/32 0;
    51.104.167.19/32 0;
    51.104.167.52/32 0;
    51.104.167.54/32 0;
    51.104.167.61/32 0;
    51.104.167.71/32 0;
    51.104.167.87/32 0;
    51.104.167.88/32 0;
    51.104.167.95/32 0;
    51.104.167.96/32 0;
    51.104.180.26/32 0;
    51.104.180.47/32 0;
    51.104.180.53/32 0;
    51.107.40.209/32 0;
    51.116.131.221/32 0;
    51.120.48.122/32 0;
    51.138.90.161/32 0;
    51.138.90.206/32 0;
    51.138.90.233/32 0;
    51.143.114.45/32 0;
    51.145.185.16/32 0;
    51.8.253.152/32 0;
    51.8.31.28/32 0;
    51.8.71.117/32 0;
    52.142.24.149/32 0;
    52.142.26.175/32 0;
    52.143.241.111/32 0;
    52.143.242.6/32 0;
    52.143.243.117/32 0;
    52.143.244.81/32 0;
    52.143.247.235/32 0;
    52.143.95.162/32 0;
    52.143.95.204/32 0;
    52.146.57.51/32 0;
    52.146.58.236/32 0;
    52.146.59.12/32 0;
    52.146.59.154/32 0;
    52.146.59.156/32 0;
    52.146.63.80/32 0;
    52.148.161.87/32 0;
    52.148.165.38/32 0;
    52.149.25.43/32 0;
    52.149.28.18/32 0;
    52.149.28.83/32 0;
    52.149.30.45/32 0;
    52.149.56.151/32 0;
    52.149.58.139/32 0;
    52.149.58.173/32 0;
    52.149.58.27/32 0;
    52.149.58.69/32 0;
    52.149.60.38/32 0;
    52.149.61.51/32 0;
    52.154.169.200/32 0;
    52.154.169.50/32 0;
    52.154.170.113/32 0;
    52.154.170.117/32 0;
    52.154.170.122/32 0;
    52.154.170.209/32 0;
    52.154.170.229/32 0;
    52.154.170.243/32 0;
    52.154.170.26/32 0;
    52.154.170.28/32 0;
    52.154.170.88/32 0;
    52.154.170.96/32 0;
    52.154.171.0/32 0;
    52.154.171.150/32 0;
    52.154.171.196/32 0;
    52.154.171.205/32 0;
    52.154.171.235/32 0;
    52.154.171.250/32 0;
    52.154.171.44/32 0;
    52.154.171.70/32 0;
    52.154.171.87/32 0;
    52.154.172.2/32 0;
    52.154.204.93/32 0;
    52.154.60.82/32 0;
    52.185.93.208/32 0;
    52.186.37.211/32 0;
    52.188.89.106/32 0;
    52.189.70.103/32 0;
    52.190.37.160/32 0;
    52.191.222.158/32 0;
    52.191.82.242/32 0;
    52.224.147.21/32 0;
    52.224.16.221/32 0;
    52.224.16.229/32 0;
    52.224.19.152/32 0;
    52.224.191.245/32 0;
    52.224.20.174/32 0;
    52.224.20.181/32 0;
    52.224.20.186/32 0;
    52.224.20.190/32 0;
    52.224.20.193/32 0;
    52.224.20.203/32 0;
    52.224.20.204/32 0;
    52.224.20.223/32 0;
    52.224.20.227/32 0;
    52.224.20.249/32 0;
    52.224.21.19/32 0;
    52.224.21.20/32 0;
    52.224.21.23/32 0;
    52.224.21.27/32 0;
    52.224.21.4/32 0;
    52.224.21.49/32 0;
    52.224.21.51/32 0;
    52.224.21.53/32 0;
    52.224.21.55/32 0;
    52.224.21.61/32 0;
    52.242.224.168/32 0;
    52.250.46.221/32 0;
    57.151.44.140/32 0;
    57.152.17.237/32 0;
    57.152.62.107/32 0;
    57.152.72.128/32 0;
    57.155.18.44/32 0;
    57.165.205.172/32 0;
    57.167.88.38/32 0;
    64.236.118.43/32 0;
    64.236.15.33/32 0;
    64.236.93.100/32 0;
    68.219.152.220/32 0;
    72.144.95.185/32 0;
    74.163.169.106/32 0;
    74.163.208.206/32 0;
    74.179.200.126/32 0;
    74.179.232.116/32 0;
    74.242.194.48/32 0;
    98.70.219.37/32 0;
}
map $http_user_agent $duckassistbot_fake {
    default 0;
    "~DuckAssistBot" $duckassistbot_unlisted;
}

In the server block (or a location)

if ($duckassistbot_fake) {
    return 403;
}

The geo and map blocks go at http level; nginx's docs give Context: http for both, and for if Context: server, location. By default, the address is taken from the $remote_addr variable (nginx documentation).

To block it: refuse every request that says DuckAssistBot

In the virtual host, a <Directory> block or .htaccess

<If "%{HTTP_USER_AGENT} =~ /DuckAssistBot/">
    Require all denied
</If>

To allow only the real one: refuse DuckAssistBot claims from outside DuckDuckGo's list

In the virtual host, a <Directory> block or .htaccess

<If "%{HTTP_USER_AGENT} =~ /DuckAssistBot/">
    Require ip 104.43.54.127/32 104.43.55.116/32 104.43.55.117/32 104.43.55.166/32 104.43.55.167/32 108.141.83.74/32
    Require ip 128.203.132.152/32 128.203.181.79/32 128.203.214.241/32 128.203.236.110/32 128.203.82.154/32 13.86.35.212/32
    Require ip 13.89.106.77/32 13.90.178.139/32 130.107.228.224/32 131.145.39.118/32 131.189.183.241/32 132.164.209.198/32
    Require ip 132.196.106.146/32 132.220.1.71/32 134.33.207.189/32 135.171.251.169/32 135.233.63.237/32 135.234.221.112/32
    Require ip 135.235.183.95/32 172.168.115.250/32 172.168.12.93/32 172.168.133.76/32 172.168.137.102/32 172.168.152.88/32
    Require ip 172.168.173.230/32 172.168.190.186/32 172.168.227.120/32 172.168.254.119/32 172.168.43.43/32 172.168.51.216/32
    Require ip 172.168.53.53/32 172.168.81.217/32 172.168.94.160/32 172.169.164.109/32 172.169.17.165/32 172.169.177.131/32
    Require ip 172.169.181.237/32 172.169.28.184/32 172.169.36.43/32 172.169.53.208/32 172.169.60.134/32 172.169.7.33/32
    Require ip 172.169.93.148/32 172.171.37.221/32 172.179.105.87/32 172.179.128.118/32 172.188.250.220/32 172.189.40.18/32
    Require ip 172.193.184.42/32 172.193.197.146/32 172.193.245.229/32 172.194.141.49/32 172.199.55.212/32 172.210.111.68/32
    Require ip 191.233.3.197/32 191.233.3.202/32 191.234.216.178/32 191.234.216.4/32 191.235.201.214/32 191.235.202.38/32
    Require ip 191.235.202.48/32 20.100.136.36/32 20.100.140.155/32 20.101.17.173/32 20.102.34.205/32 20.109.129.162/32
    Require ip 20.109.130.190/32 20.109.241.18/32 20.112.58.44/32 20.113.14.159/32 20.113.3.121/32 20.115.181.187/32
    Require ip 20.118.11.251/32 20.119.127.146/32 20.12.141.99/32 20.12.249.123/32 20.12.252.21/32 20.121.75.32/32
    Require ip 20.13.44.19/32 20.15.142.178/32 20.166.171.150/32 20.170.75.54/32 20.175.232.228/32 20.185.79.15/32
    Require ip 20.185.79.47/32 20.190.21.172/32 20.191.44.119/32 20.191.44.16/32 20.191.44.22/32 20.191.44.234/32
    Require ip 20.191.45.212/32 20.193.12.126/32 20.193.24.10/32 20.193.24.251/32 20.193.25.197/32 20.193.27.215/32
    Require ip 20.193.45.113/32 20.195.108.47/32 20.195.58.189/32 20.197.209.11/32 20.197.209.27/32 20.198.132.126/32
    Require ip 20.198.152.208/32 20.201.15.208/32 20.204.228.200/32 20.204.240.172/32 20.204.241.148/32 20.204.242.101/32
    Require ip 20.204.242.19/32 20.204.243.55/32 20.204.246.254/32 20.204.246.81/32 20.207.107.181/32 20.207.117.66/32
    Require ip 20.207.72.11/32 20.207.72.110/32 20.207.72.113/32 20.207.72.21/32 20.207.97.190/32 20.207.99.197/32
    Require ip 20.212.139.34/32 20.212.90.107/32 20.216.200.223/32 20.219.43.246/32 20.219.45.190/32 20.219.45.67/32
    Require ip 20.221.10.115/32 20.221.84.185/32 20.226.133.105/32 20.23.88.231/32 20.231.254.179/32 20.232.249.95/32
    Require ip 20.232.51.46/32 20.236.195.196/32 20.236.198.192/32 20.236.227.113/32 20.236.233.23/32 20.236.247.180/32
    Require ip 20.236.40.93/32 20.237.1.51/32 20.241.135.19/32 20.241.147.151/32 20.241.153.203/32 20.241.164.5/32
    Require ip 20.241.241.100/32 20.242.133.53/32 20.242.135.165/32 20.242.211.139/32 20.242.215.53/32 20.242.237.240/32
    Require ip 20.246.132.168/32 20.246.225.34/32 20.247.235.11/32 20.250.51.113/32 20.252.16.193/32 20.252.41.18/32
    Require ip 20.252.63.162/32 20.252.88.10/32 20.252.9.6/32 20.253.114.51/32 20.253.59.76/32 20.253.96.199/32
    Require ip 20.29.149.44/32 20.29.154.56/32 20.3.1.178/32 20.3.60.212/32 20.40.133.240/32 20.40.147.172/32
    Require ip 20.43.150.85/32 20.43.150.93/32 20.43.152.28/32 20.43.172.120/32 20.44.222.1/32 20.49.129.236/32
    Require ip 20.49.136.28/32 20.50.168.91/32 20.50.48.159/32 20.50.48.192/32 20.50.49.0/32 20.50.49.237/32
    Require ip 20.50.49.25/32 20.50.49.40/32 20.50.49.55/32 20.50.50.118/32 20.50.50.121/32 20.50.50.123/32
    Require ip 20.50.50.130/32 20.50.50.134/32 20.50.50.145/32 20.50.50.146/32 20.50.50.163/32 20.50.50.46/32
    Require ip 20.53.134.160/32 20.53.78.106/32 20.53.78.123/32 20.53.78.138/32 20.53.78.144/32 20.53.78.236/32
    Require ip 20.53.91.2/32 20.53.92.211/32 20.54.224.39/32 20.56.197.58/32 20.56.197.63/32 20.59.0.65/32
    Require ip 20.61.142.192/32 20.61.34.40/32 20.62.224.44/32 20.64.185.45/32 20.69.129.205/32 20.69.131.45/32
    Require ip 20.69.138.149/32 20.69.138.189/32 20.69.144.137/32 20.69.146.171/32 20.69.147.21/32 20.69.171.204/32
    Require ip 20.69.74.250/32 20.71.12.143/32 20.71.69.210/32 20.72.197.110/32 20.72.203.250/32 20.72.218.29/32
    Require ip 20.72.221.33/32 20.72.221.45/32 20.72.225.13/32 20.72.242.209/32 20.72.242.93/32 20.73.132.240/32
    Require ip 20.73.202.147/32 20.75.144.152/32 20.75.254.61/32 20.77.146.108/32 20.79.226.26/32 20.79.238.198/32
    Require ip 20.79.239.66/32 20.8.252.26/32 20.80.114.203/32 20.80.120.41/32 20.80.129.80/32 20.80.135.7/32
    Require ip 20.80.156.88/32 20.81.115.13/32 20.82.24.207/32 20.84.138.61/32 20.84.219.45/32 20.84.251.223/32
    Require ip 20.85.138.75/32 20.85.167.56/32 20.85.187.146/32 20.88.168.65/32 20.9.114.242/32 20.93.28.24/32
    Require ip 20.93.49.96/32 20.99.154.113/32 20.99.255.235/32 4.144.148.23/32 4.144.182.50/32 4.144.227.142/32
    Require ip 4.144.251.39/32 4.149.142.7/32 4.149.159.102/32 4.149.159.71/32 4.149.216.220/32 4.150.142.218/32
    Require ip 4.154.193.167/32 4.156.136.79/32 4.156.154.107/32 4.156.30.123/32 4.157.77.76/32 4.172.49.103/32
    Require ip 4.177.16.196/32 4.182.10.198/32 4.182.131.108/32 4.195.133.120/32 4.201.125.59/32 4.201.141.71/32
    Require ip 4.201.197.203/32 4.201.206.133/32 4.201.220.8/32 4.207.220.92/32 4.209.224.56/32 4.213.46.14/32
    Require ip 4.226.40.135/32 4.228.76.163/32 4.237.155.54/32 4.237.244.80/32 4.242.119.13/32 4.246.10.252/32
    Require ip 4.248.234.26/32 4.249.216.104/32 4.249.223.51/32 4.249.238.11/32 4.254.123.56/32 4.255.35.121/32
    Require ip 4.255.39.80/32 40.114.182.153/32 40.114.182.172/32 40.114.182.45/32 40.114.183.196/32 40.114.183.251/32
    Require ip 40.114.183.88/32 40.119.232.146/32 40.119.232.215/32 40.119.232.218/32 40.119.232.251/32 40.119.232.50/32
    Require ip 40.121.121.54/32 40.127.154.196/32 40.64.105.247/32 40.64.106.11/32 40.64.106.152/32 40.64.67.220/32
    Require ip 40.64.78.45/32 40.64.88.145/32 40.65.78.86/32 40.76.162.17/32 40.76.162.191/32 40.76.162.208/32
    Require ip 40.76.162.247/32 40.76.163.23/32 40.76.163.7/32 40.76.173.151/32 40.81.250.205/32 40.82.218.203/32
    Require ip 40.88.195.62/32 40.88.21.235/32 40.89.243.175/32 48.192.16.86/32 48.192.74.178/32 48.200.33.227/32
    Require ip 48.202.155.200/32 48.202.171.124/32 48.204.32.87/32 48.206.18.152/32 48.217.129.210/32 48.217.212.89/32
    Require ip 48.217.23.236/32 48.223.209.110/32 51.104.144.31/32 51.104.146.225/32 51.104.146.235/32 51.104.160.167/32
    Require ip 51.104.160.177/32 51.104.161.32/32 51.104.162.149/32 51.104.163.250/32 51.104.164.109/32 51.104.164.147/32
    Require ip 51.104.164.189/32 51.104.164.215/32 51.104.166.111/32 51.104.167.104/32 51.104.167.110/32 51.104.167.19/32
    Require ip 51.104.167.52/32 51.104.167.54/32 51.104.167.61/32 51.104.167.71/32 51.104.167.87/32 51.104.167.88/32
    Require ip 51.104.167.95/32 51.104.167.96/32 51.104.180.26/32 51.104.180.47/32 51.104.180.53/32 51.107.40.209/32
    Require ip 51.116.131.221/32 51.120.48.122/32 51.138.90.161/32 51.138.90.206/32 51.138.90.233/32 51.143.114.45/32
    Require ip 51.145.185.16/32 51.8.253.152/32 51.8.31.28/32 51.8.71.117/32 52.142.24.149/32 52.142.26.175/32
    Require ip 52.143.241.111/32 52.143.242.6/32 52.143.243.117/32 52.143.244.81/32 52.143.247.235/32 52.143.95.162/32
    Require ip 52.143.95.204/32 52.146.57.51/32 52.146.58.236/32 52.146.59.12/32 52.146.59.154/32 52.146.59.156/32
    Require ip 52.146.63.80/32 52.148.161.87/32 52.148.165.38/32 52.149.25.43/32 52.149.28.18/32 52.149.28.83/32
    Require ip 52.149.30.45/32 52.149.56.151/32 52.149.58.139/32 52.149.58.173/32 52.149.58.27/32 52.149.58.69/32
    Require ip 52.149.60.38/32 52.149.61.51/32 52.154.169.200/32 52.154.169.50/32 52.154.170.113/32 52.154.170.117/32
    Require ip 52.154.170.122/32 52.154.170.209/32 52.154.170.229/32 52.154.170.243/32 52.154.170.26/32 52.154.170.28/32
    Require ip 52.154.170.88/32 52.154.170.96/32 52.154.171.0/32 52.154.171.150/32 52.154.171.196/32 52.154.171.205/32
    Require ip 52.154.171.235/32 52.154.171.250/32 52.154.171.44/32 52.154.171.70/32 52.154.171.87/32 52.154.172.2/32
    Require ip 52.154.204.93/32 52.154.60.82/32 52.185.93.208/32 52.186.37.211/32 52.188.89.106/32 52.189.70.103/32
    Require ip 52.190.37.160/32 52.191.222.158/32 52.191.82.242/32 52.224.147.21/32 52.224.16.221/32 52.224.16.229/32
    Require ip 52.224.19.152/32 52.224.191.245/32 52.224.20.174/32 52.224.20.181/32 52.224.20.186/32 52.224.20.190/32
    Require ip 52.224.20.193/32 52.224.20.203/32 52.224.20.204/32 52.224.20.223/32 52.224.20.227/32 52.224.20.249/32
    Require ip 52.224.21.19/32 52.224.21.20/32 52.224.21.23/32 52.224.21.27/32 52.224.21.4/32 52.224.21.49/32
    Require ip 52.224.21.51/32 52.224.21.53/32 52.224.21.55/32 52.224.21.61/32 52.242.224.168/32 52.250.46.221/32
    Require ip 57.151.44.140/32 57.152.17.237/32 57.152.62.107/32 57.152.72.128/32 57.155.18.44/32 57.165.205.172/32
    Require ip 57.167.88.38/32 64.236.118.43/32 64.236.15.33/32 64.236.93.100/32 68.219.152.220/32 72.144.95.185/32
    Require ip 74.163.169.106/32 74.163.208.206/32 74.179.200.126/32 74.179.232.116/32 74.242.194.48/32 98.70.219.37/32
</If>

Apache httpd 2.4. Syntax: <If expression> ... </If> Context: server config, virtual host, directory, .htaccess (Apache HTTP Server 2.4 documentation). Several Require ip lines in one block: When multiple Require directives are used in a single configuration section and are not contained in another authorization directive like <RequireAll>, they are implicitly contained within a <RequireAny> directive. (Apache HTTP Server 2.4 documentation)

To block it: refuse every request that says DuckAssistBot

Inside the site block

@duckassistbot header User-Agent *DuckAssistBot*
respond @duckassistbot 403

To allow only the real one: refuse DuckAssistBot claims from outside DuckDuckGo's list

Inside the site block

@fake-duckassistbot {
    header User-Agent *DuckAssistBot*
    not {
        client_ip 104.43.54.127/32 104.43.55.116/32 104.43.55.117/32 104.43.55.166/32 104.43.55.167/32 108.141.83.74/32
        client_ip 128.203.132.152/32 128.203.181.79/32 128.203.214.241/32 128.203.236.110/32 128.203.82.154/32 13.86.35.212/32
        client_ip 13.89.106.77/32 13.90.178.139/32 130.107.228.224/32 131.145.39.118/32 131.189.183.241/32 132.164.209.198/32
        client_ip 132.196.106.146/32 132.220.1.71/32 134.33.207.189/32 135.171.251.169/32 135.233.63.237/32 135.234.221.112/32
        client_ip 135.235.183.95/32 172.168.115.250/32 172.168.12.93/32 172.168.133.76/32 172.168.137.102/32 172.168.152.88/32
        client_ip 172.168.173.230/32 172.168.190.186/32 172.168.227.120/32 172.168.254.119/32 172.168.43.43/32 172.168.51.216/32
        client_ip 172.168.53.53/32 172.168.81.217/32 172.168.94.160/32 172.169.164.109/32 172.169.17.165/32 172.169.177.131/32
        client_ip 172.169.181.237/32 172.169.28.184/32 172.169.36.43/32 172.169.53.208/32 172.169.60.134/32 172.169.7.33/32
        client_ip 172.169.93.148/32 172.171.37.221/32 172.179.105.87/32 172.179.128.118/32 172.188.250.220/32 172.189.40.18/32
        client_ip 172.193.184.42/32 172.193.197.146/32 172.193.245.229/32 172.194.141.49/32 172.199.55.212/32 172.210.111.68/32
        client_ip 191.233.3.197/32 191.233.3.202/32 191.234.216.178/32 191.234.216.4/32 191.235.201.214/32 191.235.202.38/32
        client_ip 191.235.202.48/32 20.100.136.36/32 20.100.140.155/32 20.101.17.173/32 20.102.34.205/32 20.109.129.162/32
        client_ip 20.109.130.190/32 20.109.241.18/32 20.112.58.44/32 20.113.14.159/32 20.113.3.121/32 20.115.181.187/32
        client_ip 20.118.11.251/32 20.119.127.146/32 20.12.141.99/32 20.12.249.123/32 20.12.252.21/32 20.121.75.32/32
        client_ip 20.13.44.19/32 20.15.142.178/32 20.166.171.150/32 20.170.75.54/32 20.175.232.228/32 20.185.79.15/32
        client_ip 20.185.79.47/32 20.190.21.172/32 20.191.44.119/32 20.191.44.16/32 20.191.44.22/32 20.191.44.234/32
        client_ip 20.191.45.212/32 20.193.12.126/32 20.193.24.10/32 20.193.24.251/32 20.193.25.197/32 20.193.27.215/32
        client_ip 20.193.45.113/32 20.195.108.47/32 20.195.58.189/32 20.197.209.11/32 20.197.209.27/32 20.198.132.126/32
        client_ip 20.198.152.208/32 20.201.15.208/32 20.204.228.200/32 20.204.240.172/32 20.204.241.148/32 20.204.242.101/32
        client_ip 20.204.242.19/32 20.204.243.55/32 20.204.246.254/32 20.204.246.81/32 20.207.107.181/32 20.207.117.66/32
        client_ip 20.207.72.11/32 20.207.72.110/32 20.207.72.113/32 20.207.72.21/32 20.207.97.190/32 20.207.99.197/32
        client_ip 20.212.139.34/32 20.212.90.107/32 20.216.200.223/32 20.219.43.246/32 20.219.45.190/32 20.219.45.67/32
        client_ip 20.221.10.115/32 20.221.84.185/32 20.226.133.105/32 20.23.88.231/32 20.231.254.179/32 20.232.249.95/32
        client_ip 20.232.51.46/32 20.236.195.196/32 20.236.198.192/32 20.236.227.113/32 20.236.233.23/32 20.236.247.180/32
        client_ip 20.236.40.93/32 20.237.1.51/32 20.241.135.19/32 20.241.147.151/32 20.241.153.203/32 20.241.164.5/32
        client_ip 20.241.241.100/32 20.242.133.53/32 20.242.135.165/32 20.242.211.139/32 20.242.215.53/32 20.242.237.240/32
        client_ip 20.246.132.168/32 20.246.225.34/32 20.247.235.11/32 20.250.51.113/32 20.252.16.193/32 20.252.41.18/32
        client_ip 20.252.63.162/32 20.252.88.10/32 20.252.9.6/32 20.253.114.51/32 20.253.59.76/32 20.253.96.199/32
        client_ip 20.29.149.44/32 20.29.154.56/32 20.3.1.178/32 20.3.60.212/32 20.40.133.240/32 20.40.147.172/32
        client_ip 20.43.150.85/32 20.43.150.93/32 20.43.152.28/32 20.43.172.120/32 20.44.222.1/32 20.49.129.236/32
        client_ip 20.49.136.28/32 20.50.168.91/32 20.50.48.159/32 20.50.48.192/32 20.50.49.0/32 20.50.49.237/32
        client_ip 20.50.49.25/32 20.50.49.40/32 20.50.49.55/32 20.50.50.118/32 20.50.50.121/32 20.50.50.123/32
        client_ip 20.50.50.130/32 20.50.50.134/32 20.50.50.145/32 20.50.50.146/32 20.50.50.163/32 20.50.50.46/32
        client_ip 20.53.134.160/32 20.53.78.106/32 20.53.78.123/32 20.53.78.138/32 20.53.78.144/32 20.53.78.236/32
        client_ip 20.53.91.2/32 20.53.92.211/32 20.54.224.39/32 20.56.197.58/32 20.56.197.63/32 20.59.0.65/32
        client_ip 20.61.142.192/32 20.61.34.40/32 20.62.224.44/32 20.64.185.45/32 20.69.129.205/32 20.69.131.45/32
        client_ip 20.69.138.149/32 20.69.138.189/32 20.69.144.137/32 20.69.146.171/32 20.69.147.21/32 20.69.171.204/32
        client_ip 20.69.74.250/32 20.71.12.143/32 20.71.69.210/32 20.72.197.110/32 20.72.203.250/32 20.72.218.29/32
        client_ip 20.72.221.33/32 20.72.221.45/32 20.72.225.13/32 20.72.242.209/32 20.72.242.93/32 20.73.132.240/32
        client_ip 20.73.202.147/32 20.75.144.152/32 20.75.254.61/32 20.77.146.108/32 20.79.226.26/32 20.79.238.198/32
        client_ip 20.79.239.66/32 20.8.252.26/32 20.80.114.203/32 20.80.120.41/32 20.80.129.80/32 20.80.135.7/32
        client_ip 20.80.156.88/32 20.81.115.13/32 20.82.24.207/32 20.84.138.61/32 20.84.219.45/32 20.84.251.223/32
        client_ip 20.85.138.75/32 20.85.167.56/32 20.85.187.146/32 20.88.168.65/32 20.9.114.242/32 20.93.28.24/32
        client_ip 20.93.49.96/32 20.99.154.113/32 20.99.255.235/32 4.144.148.23/32 4.144.182.50/32 4.144.227.142/32
        client_ip 4.144.251.39/32 4.149.142.7/32 4.149.159.102/32 4.149.159.71/32 4.149.216.220/32 4.150.142.218/32
        client_ip 4.154.193.167/32 4.156.136.79/32 4.156.154.107/32 4.156.30.123/32 4.157.77.76/32 4.172.49.103/32
        client_ip 4.177.16.196/32 4.182.10.198/32 4.182.131.108/32 4.195.133.120/32 4.201.125.59/32 4.201.141.71/32
        client_ip 4.201.197.203/32 4.201.206.133/32 4.201.220.8/32 4.207.220.92/32 4.209.224.56/32 4.213.46.14/32
        client_ip 4.226.40.135/32 4.228.76.163/32 4.237.155.54/32 4.237.244.80/32 4.242.119.13/32 4.246.10.252/32
        client_ip 4.248.234.26/32 4.249.216.104/32 4.249.223.51/32 4.249.238.11/32 4.254.123.56/32 4.255.35.121/32
        client_ip 4.255.39.80/32 40.114.182.153/32 40.114.182.172/32 40.114.182.45/32 40.114.183.196/32 40.114.183.251/32
        client_ip 40.114.183.88/32 40.119.232.146/32 40.119.232.215/32 40.119.232.218/32 40.119.232.251/32 40.119.232.50/32
        client_ip 40.121.121.54/32 40.127.154.196/32 40.64.105.247/32 40.64.106.11/32 40.64.106.152/32 40.64.67.220/32
        client_ip 40.64.78.45/32 40.64.88.145/32 40.65.78.86/32 40.76.162.17/32 40.76.162.191/32 40.76.162.208/32
        client_ip 40.76.162.247/32 40.76.163.23/32 40.76.163.7/32 40.76.173.151/32 40.81.250.205/32 40.82.218.203/32
        client_ip 40.88.195.62/32 40.88.21.235/32 40.89.243.175/32 48.192.16.86/32 48.192.74.178/32 48.200.33.227/32
        client_ip 48.202.155.200/32 48.202.171.124/32 48.204.32.87/32 48.206.18.152/32 48.217.129.210/32 48.217.212.89/32
        client_ip 48.217.23.236/32 48.223.209.110/32 51.104.144.31/32 51.104.146.225/32 51.104.146.235/32 51.104.160.167/32
        client_ip 51.104.160.177/32 51.104.161.32/32 51.104.162.149/32 51.104.163.250/32 51.104.164.109/32 51.104.164.147/32
        client_ip 51.104.164.189/32 51.104.164.215/32 51.104.166.111/32 51.104.167.104/32 51.104.167.110/32 51.104.167.19/32
        client_ip 51.104.167.52/32 51.104.167.54/32 51.104.167.61/32 51.104.167.71/32 51.104.167.87/32 51.104.167.88/32
        client_ip 51.104.167.95/32 51.104.167.96/32 51.104.180.26/32 51.104.180.47/32 51.104.180.53/32 51.107.40.209/32
        client_ip 51.116.131.221/32 51.120.48.122/32 51.138.90.161/32 51.138.90.206/32 51.138.90.233/32 51.143.114.45/32
        client_ip 51.145.185.16/32 51.8.253.152/32 51.8.31.28/32 51.8.71.117/32 52.142.24.149/32 52.142.26.175/32
        client_ip 52.143.241.111/32 52.143.242.6/32 52.143.243.117/32 52.143.244.81/32 52.143.247.235/32 52.143.95.162/32
        client_ip 52.143.95.204/32 52.146.57.51/32 52.146.58.236/32 52.146.59.12/32 52.146.59.154/32 52.146.59.156/32
        client_ip 52.146.63.80/32 52.148.161.87/32 52.148.165.38/32 52.149.25.43/32 52.149.28.18/32 52.149.28.83/32
        client_ip 52.149.30.45/32 52.149.56.151/32 52.149.58.139/32 52.149.58.173/32 52.149.58.27/32 52.149.58.69/32
        client_ip 52.149.60.38/32 52.149.61.51/32 52.154.169.200/32 52.154.169.50/32 52.154.170.113/32 52.154.170.117/32
        client_ip 52.154.170.122/32 52.154.170.209/32 52.154.170.229/32 52.154.170.243/32 52.154.170.26/32 52.154.170.28/32
        client_ip 52.154.170.88/32 52.154.170.96/32 52.154.171.0/32 52.154.171.150/32 52.154.171.196/32 52.154.171.205/32
        client_ip 52.154.171.235/32 52.154.171.250/32 52.154.171.44/32 52.154.171.70/32 52.154.171.87/32 52.154.172.2/32
        client_ip 52.154.204.93/32 52.154.60.82/32 52.185.93.208/32 52.186.37.211/32 52.188.89.106/32 52.189.70.103/32
        client_ip 52.190.37.160/32 52.191.222.158/32 52.191.82.242/32 52.224.147.21/32 52.224.16.221/32 52.224.16.229/32
        client_ip 52.224.19.152/32 52.224.191.245/32 52.224.20.174/32 52.224.20.181/32 52.224.20.186/32 52.224.20.190/32
        client_ip 52.224.20.193/32 52.224.20.203/32 52.224.20.204/32 52.224.20.223/32 52.224.20.227/32 52.224.20.249/32
        client_ip 52.224.21.19/32 52.224.21.20/32 52.224.21.23/32 52.224.21.27/32 52.224.21.4/32 52.224.21.49/32
        client_ip 52.224.21.51/32 52.224.21.53/32 52.224.21.55/32 52.224.21.61/32 52.242.224.168/32 52.250.46.221/32
        client_ip 57.151.44.140/32 57.152.17.237/32 57.152.62.107/32 57.152.72.128/32 57.155.18.44/32 57.165.205.172/32
        client_ip 57.167.88.38/32 64.236.118.43/32 64.236.15.33/32 64.236.93.100/32 68.219.152.220/32 72.144.95.185/32
        client_ip 74.163.169.106/32 74.163.208.206/32 74.179.200.126/32 74.179.232.116/32 74.242.194.48/32 98.70.219.37/32
    }
}
respond @fake-duckassistbot 403

Like directives, named matcher definitions must go inside the site blocks that use them. (Caddy documentation) On client_ip: This matcher is best used when the trusted_proxies global option is configured, otherwise it acts identically to the remote_ip matcher. (Caddy documentation)

To block it: refuse every request that says DuckAssistBot

Expression of a custom rule; action Block

(http.user_agent contains "DuckAssistBot")

To allow only the real one: refuse DuckAssistBot claims from outside DuckDuckGo's list

Expression of a custom rule; action Block

(http.user_agent contains "DuckAssistBot" and not ip.src in $duckassistbot_ips)

Too long for one rule. With all 486 ranges written in, this expression is 8,272 characters, and Cloudflare says The maximum length of a rule expression is 4,096 characters. (Cloudflare docs: Rules language, expressions, fetched 9 Oct 2026). So the expression refers to a list instead: create an IP list named duckassistbot_ips holding the ranges below. List names can only include lowercase letters, numbers, and the underscore (_) character. (Cloudflare docs)

The 486 ranges, one per line
104.43.54.127/32
104.43.55.116/32
104.43.55.117/32
104.43.55.166/32
104.43.55.167/32
108.141.83.74/32
128.203.132.152/32
128.203.181.79/32
128.203.214.241/32
128.203.236.110/32
128.203.82.154/32
13.86.35.212/32
13.89.106.77/32
13.90.178.139/32
130.107.228.224/32
131.145.39.118/32
131.189.183.241/32
132.164.209.198/32
132.196.106.146/32
132.220.1.71/32
134.33.207.189/32
135.171.251.169/32
135.233.63.237/32
135.234.221.112/32
135.235.183.95/32
172.168.115.250/32
172.168.12.93/32
172.168.133.76/32
172.168.137.102/32
172.168.152.88/32
172.168.173.230/32
172.168.190.186/32
172.168.227.120/32
172.168.254.119/32
172.168.43.43/32
172.168.51.216/32
172.168.53.53/32
172.168.81.217/32
172.168.94.160/32
172.169.164.109/32
172.169.17.165/32
172.169.177.131/32
172.169.181.237/32
172.169.28.184/32
172.169.36.43/32
172.169.53.208/32
172.169.60.134/32
172.169.7.33/32
172.169.93.148/32
172.171.37.221/32
172.179.105.87/32
172.179.128.118/32
172.188.250.220/32
172.189.40.18/32
172.193.184.42/32
172.193.197.146/32
172.193.245.229/32
172.194.141.49/32
172.199.55.212/32
172.210.111.68/32
191.233.3.197/32
191.233.3.202/32
191.234.216.178/32
191.234.216.4/32
191.235.201.214/32
191.235.202.38/32
191.235.202.48/32
20.100.136.36/32
20.100.140.155/32
20.101.17.173/32
20.102.34.205/32
20.109.129.162/32
20.109.130.190/32
20.109.241.18/32
20.112.58.44/32
20.113.14.159/32
20.113.3.121/32
20.115.181.187/32
20.118.11.251/32
20.119.127.146/32
20.12.141.99/32
20.12.249.123/32
20.12.252.21/32
20.121.75.32/32
20.13.44.19/32
20.15.142.178/32
20.166.171.150/32
20.170.75.54/32
20.175.232.228/32
20.185.79.15/32
20.185.79.47/32
20.190.21.172/32
20.191.44.119/32
20.191.44.16/32
20.191.44.22/32
20.191.44.234/32
20.191.45.212/32
20.193.12.126/32
20.193.24.10/32
20.193.24.251/32
20.193.25.197/32
20.193.27.215/32
20.193.45.113/32
20.195.108.47/32
20.195.58.189/32
20.197.209.11/32
20.197.209.27/32
20.198.132.126/32
20.198.152.208/32
20.201.15.208/32
20.204.228.200/32
20.204.240.172/32
20.204.241.148/32
20.204.242.101/32
20.204.242.19/32
20.204.243.55/32
20.204.246.254/32
20.204.246.81/32
20.207.107.181/32
20.207.117.66/32
20.207.72.11/32
20.207.72.110/32
20.207.72.113/32
20.207.72.21/32
20.207.97.190/32
20.207.99.197/32
20.212.139.34/32
20.212.90.107/32
20.216.200.223/32
20.219.43.246/32
20.219.45.190/32
20.219.45.67/32
20.221.10.115/32
20.221.84.185/32
20.226.133.105/32
20.23.88.231/32
20.231.254.179/32
20.232.249.95/32
20.232.51.46/32
20.236.195.196/32
20.236.198.192/32
20.236.227.113/32
20.236.233.23/32
20.236.247.180/32
20.236.40.93/32
20.237.1.51/32
20.241.135.19/32
20.241.147.151/32
20.241.153.203/32
20.241.164.5/32
20.241.241.100/32
20.242.133.53/32
20.242.135.165/32
20.242.211.139/32
20.242.215.53/32
20.242.237.240/32
20.246.132.168/32
20.246.225.34/32
20.247.235.11/32
20.250.51.113/32
20.252.16.193/32
20.252.41.18/32
20.252.63.162/32
20.252.88.10/32
20.252.9.6/32
20.253.114.51/32
20.253.59.76/32
20.253.96.199/32
20.29.149.44/32
20.29.154.56/32
20.3.1.178/32
20.3.60.212/32
20.40.133.240/32
20.40.147.172/32
20.43.150.85/32
20.43.150.93/32
20.43.152.28/32
20.43.172.120/32
20.44.222.1/32
20.49.129.236/32
20.49.136.28/32
20.50.168.91/32
20.50.48.159/32
20.50.48.192/32
20.50.49.0/32
20.50.49.237/32
20.50.49.25/32
20.50.49.40/32
20.50.49.55/32
20.50.50.118/32
20.50.50.121/32
20.50.50.123/32
20.50.50.130/32
20.50.50.134/32
20.50.50.145/32
20.50.50.146/32
20.50.50.163/32
20.50.50.46/32
20.53.134.160/32
20.53.78.106/32
20.53.78.123/32
20.53.78.138/32
20.53.78.144/32
20.53.78.236/32
20.53.91.2/32
20.53.92.211/32
20.54.224.39/32
20.56.197.58/32
20.56.197.63/32
20.59.0.65/32
20.61.142.192/32
20.61.34.40/32
20.62.224.44/32
20.64.185.45/32
20.69.129.205/32
20.69.131.45/32
20.69.138.149/32
20.69.138.189/32
20.69.144.137/32
20.69.146.171/32
20.69.147.21/32
20.69.171.204/32
20.69.74.250/32
20.71.12.143/32
20.71.69.210/32
20.72.197.110/32
20.72.203.250/32
20.72.218.29/32
20.72.221.33/32
20.72.221.45/32
20.72.225.13/32
20.72.242.209/32
20.72.242.93/32
20.73.132.240/32
20.73.202.147/32
20.75.144.152/32
20.75.254.61/32
20.77.146.108/32
20.79.226.26/32
20.79.238.198/32
20.79.239.66/32
20.8.252.26/32
20.80.114.203/32
20.80.120.41/32
20.80.129.80/32
20.80.135.7/32
20.80.156.88/32
20.81.115.13/32
20.82.24.207/32
20.84.138.61/32
20.84.219.45/32
20.84.251.223/32
20.85.138.75/32
20.85.167.56/32
20.85.187.146/32
20.88.168.65/32
20.9.114.242/32
20.93.28.24/32
20.93.49.96/32
20.99.154.113/32
20.99.255.235/32
4.144.148.23/32
4.144.182.50/32
4.144.227.142/32
4.144.251.39/32
4.149.142.7/32
4.149.159.102/32
4.149.159.71/32
4.149.216.220/32
4.150.142.218/32
4.154.193.167/32
4.156.136.79/32
4.156.154.107/32
4.156.30.123/32
4.157.77.76/32
4.172.49.103/32
4.177.16.196/32
4.182.10.198/32
4.182.131.108/32
4.195.133.120/32
4.201.125.59/32
4.201.141.71/32
4.201.197.203/32
4.201.206.133/32
4.201.220.8/32
4.207.220.92/32
4.209.224.56/32
4.213.46.14/32
4.226.40.135/32
4.228.76.163/32
4.237.155.54/32
4.237.244.80/32
4.242.119.13/32
4.246.10.252/32
4.248.234.26/32
4.249.216.104/32
4.249.223.51/32
4.249.238.11/32
4.254.123.56/32
4.255.35.121/32
4.255.39.80/32
40.114.182.153/32
40.114.182.172/32
40.114.182.45/32
40.114.183.196/32
40.114.183.251/32
40.114.183.88/32
40.119.232.146/32
40.119.232.215/32
40.119.232.218/32
40.119.232.251/32
40.119.232.50/32
40.121.121.54/32
40.127.154.196/32
40.64.105.247/32
40.64.106.11/32
40.64.106.152/32
40.64.67.220/32
40.64.78.45/32
40.64.88.145/32
40.65.78.86/32
40.76.162.17/32
40.76.162.191/32
40.76.162.208/32
40.76.162.247/32
40.76.163.23/32
40.76.163.7/32
40.76.173.151/32
40.81.250.205/32
40.82.218.203/32
40.88.195.62/32
40.88.21.235/32
40.89.243.175/32
48.192.16.86/32
48.192.74.178/32
48.200.33.227/32
48.202.155.200/32
48.202.171.124/32
48.204.32.87/32
48.206.18.152/32
48.217.129.210/32
48.217.212.89/32
48.217.23.236/32
48.223.209.110/32
51.104.144.31/32
51.104.146.225/32
51.104.146.235/32
51.104.160.167/32
51.104.160.177/32
51.104.161.32/32
51.104.162.149/32
51.104.163.250/32
51.104.164.109/32
51.104.164.147/32
51.104.164.189/32
51.104.164.215/32
51.104.166.111/32
51.104.167.104/32
51.104.167.110/32
51.104.167.19/32
51.104.167.52/32
51.104.167.54/32
51.104.167.61/32
51.104.167.71/32
51.104.167.87/32
51.104.167.88/32
51.104.167.95/32
51.104.167.96/32
51.104.180.26/32
51.104.180.47/32
51.104.180.53/32
51.107.40.209/32
51.116.131.221/32
51.120.48.122/32
51.138.90.161/32
51.138.90.206/32
51.138.90.233/32
51.143.114.45/32
51.145.185.16/32
51.8.253.152/32
51.8.31.28/32
51.8.71.117/32
52.142.24.149/32
52.142.26.175/32
52.143.241.111/32
52.143.242.6/32
52.143.243.117/32
52.143.244.81/32
52.143.247.235/32
52.143.95.162/32
52.143.95.204/32
52.146.57.51/32
52.146.58.236/32
52.146.59.12/32
52.146.59.154/32
52.146.59.156/32
52.146.63.80/32
52.148.161.87/32
52.148.165.38/32
52.149.25.43/32
52.149.28.18/32
52.149.28.83/32
52.149.30.45/32
52.149.56.151/32
52.149.58.139/32
52.149.58.173/32
52.149.58.27/32
52.149.58.69/32
52.149.60.38/32
52.149.61.51/32
52.154.169.200/32
52.154.169.50/32
52.154.170.113/32
52.154.170.117/32
52.154.170.122/32
52.154.170.209/32
52.154.170.229/32
52.154.170.243/32
52.154.170.26/32
52.154.170.28/32
52.154.170.88/32
52.154.170.96/32
52.154.171.0/32
52.154.171.150/32
52.154.171.196/32
52.154.171.205/32
52.154.171.235/32
52.154.171.250/32
52.154.171.44/32
52.154.171.70/32
52.154.171.87/32
52.154.172.2/32
52.154.204.93/32
52.154.60.82/32
52.185.93.208/32
52.186.37.211/32
52.188.89.106/32
52.189.70.103/32
52.190.37.160/32
52.191.222.158/32
52.191.82.242/32
52.224.147.21/32
52.224.16.221/32
52.224.16.229/32
52.224.19.152/32
52.224.191.245/32
52.224.20.174/32
52.224.20.181/32
52.224.20.186/32
52.224.20.190/32
52.224.20.193/32
52.224.20.203/32
52.224.20.204/32
52.224.20.223/32
52.224.20.227/32
52.224.20.249/32
52.224.21.19/32
52.224.21.20/32
52.224.21.23/32
52.224.21.27/32
52.224.21.4/32
52.224.21.49/32
52.224.21.51/32
52.224.21.53/32
52.224.21.55/32
52.224.21.61/32
52.242.224.168/32
52.250.46.221/32
57.151.44.140/32
57.152.17.237/32
57.152.62.107/32
57.152.72.128/32
57.155.18.44/32
57.165.205.172/32
57.167.88.38/32
64.236.118.43/32
64.236.15.33/32
64.236.93.100/32
68.219.152.220/32
72.144.95.185/32
74.163.169.106/32
74.163.208.206/32
74.179.200.126/32
74.179.232.116/32
74.242.194.48/32
98.70.219.37/32

Each expression is one custom rule with the action Block (Cloudflare's own example: Expression: (cf.bot_management.score lt 2 and http.user_agent contains "App_Name 2.0") Action: Block).

Addresses in the “only the real one” rules: DuckDuckGo's list duckduckgo.com/duckassistbot.json, 486 ranges, fetched 8 Oct 2026, list dated 1 Sep 2026. Operators change their lists; compare the date with the live list before you rely on it.

The IP rules compare the address your server sees. Behind a CDN or load balancer that is the proxy's address, so every claim would be refused: restore the client address first, or put the rule at the CDN.

Syntax from each server's own documentation, fetched 9 Oct 2026: nginx (rewrite module, map module, geo module); Apache (Access Control, <If>, expressions, mod_authz_core, mod_authz_host); Caddy (request matchers, respond); Cloudflare (custom rule example, operators, values and lists, http.user_agent). Every line form above is listed with its quote in server-rules-sources.json.

Who blocks it

Of the 1,000 most-visited domains on Tranco list PY35J (generated 2026-10-08), we read 508 robots.txt files on 2026-10-09 and ran each through the same RFC 9309 matcher as the checker, for the path /. 35 block DuckAssistBot from the whole site by name, 30 block it through their User-agent: * group, and 16 name it with partial rules (some paths closed, the home page open). 1 more name it only to let it in.

35

block it by name 6.9%

30

block it through * 5.9%

16

name it, partial rules 3.1%

Percentages are of the 508 files we could read, not of all 1,000 sites.

Highest-ranked sites that block DuckAssistBot by name

  1. amazon.com rank 27
  2. tiktok.com rank 58
  3. msn.com rank 72
  4. amazonvideo.com rank 111
  5. nytimes.com rank 157
  6. theguardian.com rank 204
  7. cnn.com rank 205
  8. launchpad.net rank 284
  9. amazon.co.uk rank 336
  10. bloomberg.com rank 382

Each links to the site's live robots.txt, which may have changed since 2026-10-09.

robots.txt is only what a site asks for. A site can also turn a crawler away at its firewall or CDN, or let an operator in under a licensing deal, and neither shows in its robots.txt. A block through * stops every crawler the file does not name, so it says nothing about this one in particular. The files we could not read are not counted: 222 of the 1,000 domains are infrastructure names with no website at the bare domain (CDN and DNS zones, for example), 59 answered our request with 401 or 403, 93 failed (timeout, TLS or server error), 59 have no robots.txt (404 and similar) and 59 answered with an HTML page instead of a robots.txt file. Every agent's count, side by side.

Facts

Operator
DuckDuckGo
Purpose
AI search index

DuckDuckGo says it crawls pages in real time for the AI-assisted answers in DuckDuckGo Search, which cite their sources, and that the data is not used to train AI models.

Obeys robots.txt
Yes. DuckDuckGo says a Disallow for DuckAssistBot takes effect after 72 hours, after which DuckAssistBot stops crawling the site.
In your server logs
The user-agent string contains "DuckAssistBot/1.2".
How to verify it
Match the IP against the DuckAssistBot addresses DuckDuckGo publishes on its help page and as JSON.

Published list: duckduckgo.com/duckassistbot.json — 486 IPv4 ranges when we fetched it, list dated 1 Sep 2026. Always match against the live list; operators update them. To count real and fake DuckAssistBot requests in your own server log against this list, drop the log into the log reader.

What DuckDuckGo says

Quoted word for word from the operator's documentation.

“DuckAssistBot is a web crawler for DuckDuckGo Search that crawls pages in real-time for our AI-assisted answers, which prominently cite their sources.”

“This data is not used in any way to train AI models.”

“Once you’ve updated the file to disallow the DuckAssistBot user agent, the change will take effect after 72 hours and DuckAssistBot will stop crawling your site.”

“If you’re a publisher, you may opt out of being a potential source for AI-assisted answers by modifying the robots.txt file for your domain(s).”

“Opting out of DuckAssistBot does not impact organic search rankings and will not affect whether or not websites appear in our search results.”

“The crawler’s user agent will appear as DuckAssistBot/1.2;”

“and originates from the following IP addresses (also available in JSON at”

Sources

Same purpose, other operators

← All 49 AI crawlers

Made with AI tools. · Privacy