resulthack

All AI crawlers /

Amzn-User

Amazon · User fetch · robots.txt: Not always

Fetches live information from the web on a user's behalf, for example to answer an Alexa question that needs up-to-date information.

Block Amzn-User

User-agent: Amzn-User
Disallow: /

A Disallow line may not fully stop Amzn-User, because Amazon says it may not follow all robots.txt directives. Amazon says it does not crawl content for model training.

Allow Amzn-User

User-agent: Amzn-User
Allow: /

An allow group only changes anything if a broader rule would block Amzn-User. 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 Amzn-User, spelled as in the User-Agent Amazon documents (“Amzn-User/0.1”), 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 Amzn-User 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 Amazon's published addresses.

Your server

To block it: refuse every request that says Amzn-User

In the server block (or a location)

if ($http_user_agent ~ Amzn-User) {
    return 403;
}

To allow only the real one: refuse Amzn-User claims from outside Amazon's list

In the http block

geo $amzn_user_unlisted {
    default 1;
    100.24.86.21 0;
    100.24.94.158 0;
    100.25.233.255 0;
    100.26.69.34 0;
    100.27.118.106 0;
    100.27.157.160 0;
    100.27.158.82 0;
    100.27.169.147 0;
    100.27.91.246 0;
    100.28.104.194 0;
    100.28.113.237 0;
    100.28.151.241 0;
    100.28.33.208 0;
    100.29.104.31 0;
    100.29.106.130 0;
    100.29.122.28 0;
    100.29.92.161 0;
    107.20.201.23 0;
    107.20.42.162 0;
    107.21.114.117 0;
    107.21.229.211 0;
    107.22.218.90 0;
    107.22.241.68 0;
    107.22.255.3 0;
    107.22.55.149 0;
    107.22.87.58 0;
    107.23.190.53 0;
    107.23.242.35 0;
    107.23.56.227 0;
    13.216.113.150 0;
    13.216.136.62 0;
    13.216.143.182 0;
    13.216.152.158 0;
    13.216.162.32 0;
    13.216.169.197 0;
    13.216.27.246 0;
    13.217.158.72 0;
    13.218.255.40 0;
    13.219.0.206 0;
    13.219.122.158 0;
    13.219.125.104 0;
    13.219.138.92 0;
    13.219.15.124 0;
    13.219.173.86 0;
    13.219.211.133 0;
    13.219.48.105 0;
    13.222.48.80 0;
    13.222.68.90 0;
    13.223.10.22 0;
    13.223.112.99 0;
    13.223.12.55 0;
    13.223.123.7 0;
    13.223.125.191 0;
    13.223.127.163 0;
    13.223.135.149 0;
    13.223.141.183 0;
    13.223.143.171 0;
    13.223.208.86 0;
    13.223.212.171 0;
    13.223.219.110 0;
    13.223.222.177 0;
    13.223.237.145 0;
    13.223.32.32 0;
    13.223.33.67 0;
    174.129.24.225 0;
    18.204.129.185 0;
    18.204.147.58 0;
    18.204.174.34 0;
    18.204.200.202 0;
    18.204.77.144 0;
    18.205.121.5 0;
    18.205.170.69 0;
    18.205.179.96 0;
    18.205.207.200 0;
    18.205.94.193 0;
    18.206.10.25 0;
    18.206.102.242 0;
    18.206.103.117 0;
    18.206.31.0 0;
    18.206.49.169 0;
    18.206.63.178 0;
    18.206.75.17 0;
    18.206.80.142 0;
    18.207.68.55 0;
    18.207.71.20 0;
    18.207.79.53 0;
    18.208.49.162 0;
    18.208.68.221 0;
    18.208.96.116 0;
    18.209.149.152 0;
    18.209.155.76 0;
    18.209.183.128 0;
    18.209.189.61 0;
    18.210.135.253 0;
    18.210.143.14 0;
    18.210.177.112 0;
    18.210.211.84 0;
    18.210.58.248 0;
    18.210.79.138 0;
    18.210.88.179 0;
    18.211.100.116 0;
    18.211.172.15 0;
    18.211.184.127 0;
    18.211.228.10 0;
    18.213.102.71 0;
    18.213.108.226 0;
    18.213.174.38 0;
    18.213.18.100 0;
    18.213.225.24 0;
    18.214.155.227 0;
    18.214.160.25 0;
    18.214.180.93 0;
    18.214.202.10 0;
    18.214.208.13 0;
    18.214.236.252 0;
    18.214.32.251 0;
    18.214.97.194 0;
    18.215.133.216 0;
    18.215.19.140 0;
    18.215.37.82 0;
    18.215.81.159 0;
    18.232.221.67 0;
    18.233.242.106 0;
    18.233.247.66 0;
    18.233.254.6 0;
    18.233.44.115 0;
    18.233.52.165 0;
    18.235.117.231 0;
    18.235.176.68 0;
    184.72.220.200 0;
    184.72.231.109 0;
    184.72.242.66 0;
    184.73.1.121 0;
    184.73.212.232 0;
    23.20.14.164 0;
    23.20.14.43 0;
    23.20.157.74 0;
    23.20.190.101 0;
    23.21.161.204 0;
    23.21.164.86 0;
    23.21.226.79 0;
    23.21.74.3 0;
    23.21.78.102 0;
    23.22.140.49 0;
    23.22.164.241 0;
    23.22.236.99 0;
    23.22.87.173 0;
    23.22.87.189 0;
    23.23.111.110 0;
    23.23.152.43 0;
    23.23.16.236 0;
    23.23.201.145 0;
    23.23.209.179 0;
    3.208.167.128 0;
    3.208.247.204 0;
    3.208.46.236 0;
    3.209.130.7 0;
    3.210.93.112 0;
    3.211.144.3 0;
    3.211.145.5 0;
    3.211.153.227 0;
    3.211.177.14 0;
    3.211.189.40 0;
    3.211.192.237 0;
    3.211.199.193 0;
    3.211.22.7 0;
    3.211.99.154 0;
    3.212.148.16 0;
    3.212.151.142 0;
    3.212.155.239 0;
    3.212.155.80 0;
    3.212.20.54 0;
    3.212.203.251 0;
    3.212.205.155 0;
    3.213.119.107 0;
    3.213.132.166 0;
    3.213.183.18 0;
    3.213.192.229 0;
    3.213.205.133 0;
    3.213.223.246 0;
    3.213.23.95 0;
    3.213.74.26 0;
    3.213.80.230 0;
    3.214.107.231 0;
    3.214.110.59 0;
    3.214.154.139 0;
    3.214.173.19 0;
    3.214.189.85 0;
    3.214.213.94 0;
    3.215.193.161 0;
    3.215.254.248 0;
    3.215.8.42 0;
    3.215.85.254 0;
    3.216.16.254 0;
    3.216.24.167 0;
    3.216.83.21 0;
    3.217.124.227 0;
    3.217.155.115 0;
    3.217.166.57 0;
    3.217.186.68 0;
    3.217.47.198 0;
    3.217.54.78 0;
    3.217.93.234 0;
    3.218.11.113 0;
    3.218.125.55 0;
    3.218.140.139 0;
    3.218.177.210 0;
    3.218.184.146 0;
    3.218.191.159 0;
    3.218.226.239 0;
    3.218.255.41 0;
    3.218.35.149 0;
    3.218.68.30 0;
    3.219.10.249 0;
    3.219.103.72 0;
    3.219.249.170 0;
    3.219.27.100 0;
    3.219.52.199 0;
    3.219.98.171 0;
    3.220.134.7 0;
    3.220.2.22 0;
    3.220.89.3 0;
    3.221.105.67 0;
    3.221.110.107 0;
    3.221.204.121 0;
    3.221.221.12 0;
    3.221.252.69 0;
    3.222.193.181 0;
    3.222.195.11 0;
    3.222.22.183 0;
    3.222.57.253 0;
    3.223.130.34 0;
    3.223.132.246 0;
    3.223.148.78 0;
    3.223.173.19 0;
    3.223.212.88 0;
    3.223.245.225 0;
    3.223.37.137 0;
    3.224.3.11 0;
    3.224.66.185 0;
    3.224.95.40 0;
    3.225.112.119 0;
    3.225.130.6 0;
    3.225.214.36 0;
    3.225.250.64 0;
    3.225.254.186 0;
    3.225.27.26 0;
    3.226.118.11 0;
    3.226.168.167 0;
    3.226.198.163 0;
    3.226.230.216 0;
    3.226.55.191 0;
    3.226.85.33 0;
    3.227.129.67 0;
    3.227.179.202 0;
    3.227.195.183 0;
    3.228.145.87 0;
    3.228.187.171 0;
    3.228.43.75 0;
    3.228.90.152 0;
    3.229.141.83 0;
    3.229.147.55 0;
    3.229.204.29 0;
    3.229.206.235 0;
    3.229.254.1 0;
    3.229.69.123 0;
    3.229.88.194 0;
    3.230.138.76 0;
    3.230.149.251 0;
    3.230.15.20 0;
    3.230.29.144 0;
    3.230.47.56 0;
    3.230.52.168 0;
    3.230.90.160 0;
    3.230.99.92 0;
    3.231.179.13 0;
    3.231.88.131 0;
    3.232.137.33 0;
    3.232.180.42 0;
    3.232.19.149 0;
    3.232.197.101 0;
    3.232.20.91 0;
    3.232.221.166 0;
    3.232.235.15 0;
    3.232.240.88 0;
    3.233.103.22 0;
    3.233.121.160 0;
    3.233.183.168 0;
    3.233.218.90 0;
    3.233.93.65 0;
    3.234.161.147 0;
    3.234.185.44 0;
    3.234.47.132 0;
    3.234.77.32 0;
    3.234.8.148 0;
    3.235.12.133 0;
    3.235.125.9 0;
    3.81.194.188 0;
    3.81.253.151 0;
    3.82.135.179 0;
    3.82.29.30 0;
    3.84.64.201 0;
    3.85.182.19 0;
    3.86.137.101 0;
    3.87.104.37 0;
    3.88.92.27 0;
    3.89.14.22 0;
    3.89.14.224 0;
    3.89.213.23 0;
    3.91.124.128 0;
    3.92.14.207 0;
    3.93.132.173 0;
    3.94.154.72 0;
    3.94.216.37 0;
    3.94.225.17 0;
    3.94.226.92 0;
    3.94.34.209 0;
    3.95.79.208 0;
    3.95.81.91 0;
    3.95.96.198 0;
    34.192.141.13 0;
    34.192.213.97 0;
    34.192.238.32 0;
    34.192.33.34 0;
    34.192.98.253 0;
    34.193.131.3 0;
    34.194.118.119 0;
    34.194.149.187 0;
    34.194.219.117 0;
    34.194.219.191 0;
    34.194.47.173 0;
    34.195.225.185 0;
    34.195.23.213 0;
    34.195.45.53 0;
    34.196.142.152 0;
    34.196.155.48 0;
    34.196.169.196 0;
    34.196.187.85 0;
    34.196.42.137 0;
    34.196.80.7 0;
    34.197.143.174 0;
    34.197.149.47 0;
    34.197.153.75 0;
    34.197.175.171 0;
    34.197.2.163 0;
    34.197.201.73 0;
    34.197.209.185 0;
    34.197.73.235 0;
    34.198.130.224 0;
    34.198.143.69 0;
    34.198.162.37 0;
    34.198.56.37 0;
    34.198.82.162 0;
    34.199.156.195 0;
    34.199.25.251 0;
    34.200.114.155 0;
    34.200.159.199 0;
    34.200.169.53 0;
    34.200.192.85 0;
    34.200.203.147 0;
    34.200.205.234 0;
    34.200.74.100 0;
    34.200.81.78 0;
    34.200.86.207 0;
    34.202.2.123 0;
    34.202.30.230 0;
    34.202.41.56 0;
    34.202.49.146 0;
    34.203.149.5 0;
    34.203.99.163 0;
    34.204.104.43 0;
    34.204.215.184 0;
    34.204.57.203 0;
    34.205.201.97 0;
    34.205.238.95 0;
    34.206.101.22 0;
    34.206.135.181 0;
    34.207.48.202 0;
    34.207.52.183 0;
    34.224.114.26 0;
    34.224.120.185 0;
    34.224.190.94 0;
    34.225.108.229 0;
    34.225.133.0 0;
    34.225.171.229 0;
    34.226.125.221 0;
    34.226.51.110 0;
    34.226.56.238 0;
    34.226.69.93 0;
    34.227.118.181 0;
    34.227.131.153 0;
    34.227.239.141 0;
    34.227.42.212 0;
    34.228.109.18 0;
    34.230.156.160 0;
    34.230.234.54 0;
    34.230.255.232 0;
    34.231.114.104 0;
    34.231.184.75 0;
    34.231.68.10 0;
    34.231.81.35 0;
    34.232.184.48 0;
    34.232.187.124 0;
    34.232.47.104 0;
    34.233.148.122 0;
    34.233.151.134 0;
    34.233.255.1 0;
    34.233.36.75 0;
    34.233.48.215 0;
    34.233.97.140 0;
    34.234.14.185 0;
    34.234.154.134 0;
    34.235.11.182 0;
    34.236.104.213 0;
    34.236.123.186 0;
    34.236.132.205 0;
    34.236.132.67 0;
    34.236.164.210 0;
    34.236.166.107 0;
    34.236.209.30 0;
    34.236.214.169 0;
    34.236.224.25 0;
    34.236.253.178 0;
    34.237.147.161 0;
    34.237.191.141 0;
    34.237.207.92 0;
    34.237.208.14 0;
    34.237.227.70 0;
    34.237.232.130 0;
    34.237.80.208 0;
    34.237.99.86 0;
    34.238.107.122 0;
    34.238.18.3 0;
    34.238.71.63 0;
    34.239.15.203 0;
    34.239.188.168 0;
    34.239.195.85 0;
    34.239.206.162 0;
    34.239.68.202 0;
    35.153.10.9 0;
    35.153.107.141 0;
    35.153.113.217 0;
    35.153.124.65 0;
    35.153.197.87 0;
    35.153.36.100 0;
    35.168.104.113 0;
    35.168.183.119 0;
    35.168.44.111 0;
    35.169.122.102 0;
    35.169.198.60 0;
    35.169.212.245 0;
    35.169.251.66 0;
    35.169.56.220 0;
    35.170.223.99 0;
    35.171.215.147 0;
    35.171.218.156 0;
    35.171.77.2 0;
    35.172.188.66 0;
    35.172.62.192 0;
    35.172.84.121 0;
    35.173.12.118 0;
    35.173.12.250 0;
    35.173.140.109 0;
    35.173.160.101 0;
    35.173.172.43 0;
    35.173.53.155 0;
    35.174.214.80 0;
    35.174.229.240 0;
    35.174.232.222 0;
    35.174.97.70 0;
    35.175.22.142 0;
    35.175.34.176 0;
    35.175.43.19 0;
    44.193.128.83 0;
    44.193.136.188 0;
    44.193.149.106 0;
    44.193.163.140 0;
    44.193.21.207 0;
    44.194.163.207 0;
    44.194.194.219 0;
    44.194.203.102 0;
    44.194.222.211 0;
    44.194.70.31 0;
    44.195.151.174 0;
    44.195.16.2 0;
    44.195.178.236 0;
    44.195.228.45 0;
    44.195.245.78 0;
    44.195.248.164 0;
    44.195.96.4 0;
    44.196.132.20 0;
    44.196.15.171 0;
    44.196.210.221 0;
    44.196.236.142 0;
    44.197.30.79 0;
    44.197.95.23 0;
    44.198.105.147 0;
    44.198.125.78 0;
    44.198.131.235 0;
    44.198.134.204 0;
    44.198.205.87 0;
    44.198.237.57 0;
    44.205.109.175 0;
    44.205.197.17 0;
    44.205.215.215 0;
    44.205.36.200 0;
    44.205.58.205 0;
    44.205.68.181 0;
    44.206.129.15 0;
    44.206.15.195 0;
    44.206.184.47 0;
    44.206.40.110 0;
    44.206.84.82 0;
    44.207.127.111 0;
    44.207.135.147 0;
    44.207.169.172 0;
    44.207.194.222 0;
    44.207.229.212 0;
    44.207.26.24 0;
    44.207.83.128 0;
    44.208.104.56 0;
    44.208.16.208 0;
    44.208.200.219 0;
    44.208.203.166 0;
    44.208.236.62 0;
    44.208.56.213 0;
    44.208.77.108 0;
    44.208.83.208 0;
    44.208.85.236 0;
    44.209.162.73 0;
    44.210.192.115 0;
    44.212.148.132 0;
    44.212.198.85 0;
    44.212.239.227 0;
    44.213.158.218 0;
    44.213.163.24 0;
    44.214.194.234 0;
    44.214.207.7 0;
    44.214.212.218 0;
    44.214.32.136 0;
    44.214.62.148 0;
    44.215.161.26 0;
    44.215.216.21 0;
    44.215.224.27 0;
    44.215.24.160 0;
    44.215.63.87 0;
    44.215.7.194 0;
    44.215.81.252 0;
    44.215.84.21 0;
    44.215.89.216 0;
    44.216.100.41 0;
    44.216.104.198 0;
    44.216.243.74 0;
    44.216.5.127 0;
    44.216.58.133 0;
    44.216.7.31 0;
    44.217.121.202 0;
    44.217.152.47 0;
    44.217.158.120 0;
    44.217.254.94 0;
    44.218.132.213 0;
    44.218.149.105 0;
    44.218.169.19 0;
    44.218.183.161 0;
    44.218.187.96 0;
    44.218.200.142 0;
    44.218.30.160 0;
    44.218.99.76 0;
    44.219.115.49 0;
    44.219.143.106 0;
    44.219.23.147 0;
    44.219.64.51 0;
    44.220.9.209 0;
    44.221.111.36 0;
    44.221.132.209 0;
    44.221.185.185 0;
    44.221.223.252 0;
    44.221.225.24 0;
    44.221.244.31 0;
    44.221.99.201 0;
    44.222.28.176 0;
    44.222.60.175 0;
    44.223.220.158 0;
    44.223.230.228 0;
    50.16.147.3 0;
    50.16.231.180 0;
    50.16.4.171 0;
    50.17.1.240 0;
    50.17.134.19 0;
    50.17.153.9 0;
    50.17.191.57 0;
    50.17.207.81 0;
    50.17.230.96 0;
    50.19.126.63 0;
    50.19.204.59 0;
    50.19.251.209 0;
    50.19.29.68 0;
    50.19.35.165 0;
    50.19.59.54 0;
    52.0.129.197 0;
    52.0.175.66 0;
    52.0.190.163 0;
    52.0.192.213 0;
    52.0.194.51 0;
    52.0.29.253 0;
    52.0.31.88 0;
    52.0.92.85 0;
    52.1.178.161 0;
    52.1.245.227 0;
    52.1.58.136 0;
    52.2.182.123 0;
    52.2.196.120 0;
    52.2.240.114 0;
    52.2.253.241 0;
    52.20.100.136 0;
    52.20.139.63 0;
    52.20.29.92 0;
    52.200.116.93 0;
    52.200.28.69 0;
    52.200.8.184 0;
    52.200.84.90 0;
    52.201.206.154 0;
    52.201.41.193 0;
    52.201.98.75 0;
    52.202.101.32 0;
    52.202.103.180 0;
    52.202.121.224 0;
    52.202.216.228 0;
    52.202.253.248 0;
    52.202.35.1 0;
    52.202.37.123 0;
    52.203.152.175 0;
    52.203.209.127 0;
    52.203.244.55 0;
    52.203.32.72 0;
    52.203.86.132 0;
    52.204.124.205 0;
    52.204.162.207 0;
    52.204.226.159 0;
    52.204.226.207 0;
    52.204.226.223 0;
    52.204.64.101 0;
    52.204.78.168 0;
    52.204.81.241 0;
    52.205.135.221 0;
    52.205.246.20 0;
    52.205.27.163 0;
    52.206.102.51 0;
    52.206.130.42 0;
    52.206.143.135 0;
    52.206.169.224 0;
    52.206.181.180 0;
    52.206.46.172 0;
    52.206.52.116 0;
    52.206.60.64 0;
    52.206.61.139 0;
    52.207.120.139 0;
    52.207.133.220 0;
    52.207.16.197 0;
    52.207.61.91 0;
    52.207.72.172 0;
    52.21.106.0 0;
    52.21.120.37 0;
    52.21.146.37 0;
    52.21.166.33 0;
    52.21.48.195 0;
    52.22.150.64 0;
    52.22.196.44 0;
    52.22.210.122 0;
    52.22.89.200 0;
    52.23.133.109 0;
    52.23.146.199 0;
    52.23.51.117 0;
    52.23.97.153 0;
    52.3.104.17 0;
    52.3.239.250 0;
    52.3.70.186 0;
    52.4.106.28 0;
    52.4.161.44 0;
    52.4.20.22 0;
    52.4.200.143 0;
    52.4.229.83 0;
    52.4.5.89 0;
    52.44.145.57 0;
    52.44.222.44 0;
    52.44.93.127 0;
    52.45.105.249 0;
    52.45.162.115 0;
    52.45.180.161 0;
    52.45.82.146 0;
    52.45.91.149 0;
    52.5.101.193 0;
    52.5.11.240 0;
    52.5.126.84 0;
    52.5.139.177 0;
    52.5.158.30 0;
    52.5.237.111 0;
    52.5.241.167 0;
    52.5.71.38 0;
    52.5.9.202 0;
    52.5.91.235 0;
    52.54.128.50 0;
    52.54.247.126 0;
    52.54.73.166 0;
    52.55.118.104 0;
    52.55.174.246 0;
    52.55.203.221 0;
    52.6.108.202 0;
    52.7.157.23 0;
    52.7.217.144 0;
    52.7.224.72 0;
    52.7.23.251 0;
    52.7.57.117 0;
    52.7.66.242 0;
    52.70.155.245 0;
    52.70.247.71 0;
    52.71.225.8 0;
    52.71.39.142 0;
    52.71.50.120 0;
    52.71.70.228 0;
    52.72.232.179 0;
    52.72.73.184 0;
    52.73.115.59 0;
    52.73.158.87 0;
    52.73.197.50 0;
    52.73.206.11 0;
    52.73.215.66 0;
    52.86.118.49 0;
    52.86.198.100 0;
    52.86.235.69 0;
    52.86.53.42 0;
    52.86.86.102 0;
    52.87.0.229 0;
    52.87.118.241 0;
    52.87.127.40 0;
    52.87.52.141 0;
    52.87.74.18 0;
    54.144.163.59 0;
    54.144.165.228 0;
    54.144.166.248 0;
    54.145.100.187 0;
    54.145.120.66 0;
    54.145.201.55 0;
    54.145.202.232 0;
    54.146.124.96 0;
    54.146.217.77 0;
    54.146.78.43 0;
    54.147.28.169 0;
    54.152.240.110 0;
    54.152.250.63 0;
    54.152.62.114 0;
    54.156.101.5 0;
    54.156.218.150 0;
    54.156.228.126 0;
    54.156.60.28 0;
    54.156.75.181 0;
    54.157.127.12 0;
    54.157.17.251 0;
    54.157.60.117 0;
    54.157.89.202 0;
    54.157.93.108 0;
    54.158.126.53 0;
    54.158.87.246 0;
    54.159.127.105 0;
    54.159.41.249 0;
    54.159.73.59 0;
    54.160.29.53 0;
    54.161.82.218 0;
    54.162.184.206 0;
    54.163.119.115 0;
    54.163.119.23 0;
    54.163.149.34 0;
    54.163.156.179 0;
    54.163.96.5 0;
    54.164.253.209 0;
    54.165.187.237 0;
    54.165.237.175 0;
    54.166.114.87 0;
    54.166.123.195 0;
    54.166.147.9 0;
    54.166.168.104 0;
    54.166.186.204 0;
    54.166.203.36 0;
    54.166.221.13 0;
    54.166.51.59 0;
    54.167.145.47 0;
    54.167.149.221 0;
    54.167.157.19 0;
    54.167.167.144 0;
    54.167.254.156 0;
    54.172.147.40 0;
    54.172.181.132 0;
    54.172.223.244 0;
    54.172.235.19 0;
    54.173.251.40 0;
    54.173.254.186 0;
    54.173.3.145 0;
    54.173.73.223 0;
    54.174.132.51 0;
    54.174.156.91 0;
    54.174.185.149 0;
    54.174.185.64 0;
    54.174.239.164 0;
    54.174.255.71 0;
    54.174.33.240 0;
    54.174.79.6 0;
    54.175.137.98 0;
    54.175.225.187 0;
    54.175.92.255 0;
    54.196.107.151 0;
    54.196.38.144 0;
    54.197.112.73 0;
    54.197.64.106 0;
    54.198.102.234 0;
    54.198.16.172 0;
    54.198.232.105 0;
    54.198.233.242 0;
    54.204.105.187 0;
    54.204.223.93 0;
    54.204.35.237 0;
    54.204.59.63 0;
    54.204.80.55 0;
    54.205.119.2 0;
    54.205.136.35 0;
    54.205.160.25 0;
    54.205.201.74 0;
    54.205.208.13 0;
    54.205.213.166 0;
    54.205.3.125 0;
    54.205.40.225 0;
    54.205.45.210 0;
    54.208.132.243 0;
    54.208.179.143 0;
    54.208.246.64 0;
    54.208.27.202 0;
    54.209.190.9 0;
    54.209.191.8 0;
    54.209.36.112 0;
    54.209.9.33 0;
    54.210.131.110 0;
    54.210.198.121 0;
    54.210.31.211 0;
    54.210.80.37 0;
    54.211.199.50 0;
    54.211.75.0 0;
    54.211.78.165 0;
    54.221.237.132 0;
    54.221.32.154 0;
    54.224.116.206 0;
    54.224.224.135 0;
    54.224.240.158 0;
    54.224.53.14 0;
    54.225.113.76 0;
    54.225.145.181 0;
    54.225.162.45 0;
    54.225.169.17 0;
    54.225.221.30 0;
    54.225.67.8 0;
    54.225.71.221 0;
    54.226.73.182 0;
    54.227.13.229 0;
    54.227.28.87 0;
    54.234.167.100 0;
    54.235.211.99 0;
    54.235.213.173 0;
    54.236.112.173 0;
    54.236.158.242 0;
    54.236.167.56 0;
    54.236.239.164 0;
    54.237.184.17 0;
    54.237.29.9 0;
    54.242.10.253 0;
    54.242.167.254 0;
    54.243.110.227 0;
    54.243.144.14 0;
    54.243.201.33 0;
    54.243.209.16 0;
    54.243.211.8 0;
    54.80.175.67 0;
    54.80.198.127 0;
    54.80.234.89 0;
    54.80.243.130 0;
    54.80.45.194 0;
    54.80.71.176 0;
    54.80.74.44 0;
    54.81.154.68 0;
    54.81.165.33 0;
    54.81.246.115 0;
    54.82.11.240 0;
    54.82.116.145 0;
    54.82.165.97 0;
    54.82.184.206 0;
    54.82.79.140 0;
    54.83.14.168 0;
    54.83.178.173 0;
    54.83.238.70 0;
    54.83.29.252 0;
    54.83.61.93 0;
    54.84.247.173 0;
    54.84.255.139 0;
    54.84.42.70 0;
    54.84.58.86 0;
    54.84.96.236 0;
    54.85.116.136 0;
    54.85.13.251 0;
    54.85.152.251 0;
    54.85.173.232 0;
    54.85.182.11 0;
    54.85.182.74 0;
    54.85.183.163 0;
    54.85.42.248 0;
    54.86.102.52 0;
    54.86.113.36 0;
    54.86.128.12 0;
    54.86.173.205 0;
    54.86.200.206 0;
    54.86.235.24 0;
    54.86.41.234 0;
    54.87.147.32 0;
    54.87.230.73 0;
    54.87.231.234 0;
    54.87.82.164 0;
    54.88.17.4 0;
    54.88.231.214 0;
    54.89.1.163 0;
    54.89.197.100 0;
    54.89.37.100 0;
    54.89.57.217 0;
    54.90.15.96 0;
    54.90.160.213 0;
    54.90.251.223 0;
    54.91.222.113 0;
    54.91.68.167 0;
    54.91.90.149 0;
    54.92.230.27 0;
    67.202.14.197 0;
    75.101.211.35 0;
    98.80.55.141 0;
    98.82.243.141 0;
    98.82.255.249 0;
    98.82.55.41 0;
    98.83.170.172 0;
    98.83.18.54 0;
    98.83.191.241 0;
    98.83.248.195 0;
    98.83.46.92 0;
    98.83.70.133 0;
    98.83.89.12 0;
    98.84.242.231 0;
    98.85.106.40 0;
    98.85.137.77 0;
    98.85.140.218 0;
    98.85.146.158 0;
    98.85.211.76 0;
    98.85.214.32 0;
    98.85.218.4 0;
    98.85.238.47 0;
    98.85.246.245 0;
    98.86.129.100 0;
    98.86.184.138 0;
    98.86.187.75 0;
    98.86.188.104 0;
    98.86.192.5 0;
    98.86.205.54 0;
    98.86.207.121 0;
    98.86.207.186 0;
    98.86.212.136 0;
    98.86.212.35 0;
    98.86.214.58 0;
    98.86.218.208 0;
    98.86.24.23 0;
    98.86.249.175 0;
    98.86.25.36 0;
    98.86.27.21 0;
    98.86.29.203 0;
    98.86.4.188 0;
    98.86.50.127 0;
    98.86.51.12 0;
    98.86.54.86 0;
    98.86.60.7 0;
    98.86.78.84 0;
    98.86.80.106 0;
    98.87.100.94 0;
    98.87.110.161 0;
    98.87.115.179 0;
    98.87.119.92 0;
    98.87.125.106 0;
    98.87.130.228 0;
    98.87.132.166 0;
    98.87.141.217 0;
    98.87.145.207 0;
    98.87.177.122 0;
    98.87.178.41 0;
    98.87.179.143 0;
    98.87.179.166 0;
    98.87.179.77 0;
    98.87.180.162 0;
    98.87.180.251 0;
    98.87.180.82 0;
    98.87.182.201 0;
    98.87.182.37 0;
    98.87.182.62 0;
    98.87.183.122 0;
    98.87.183.61 0;
    98.87.184.100 0;
    98.87.184.28 0;
    98.87.30.184 0;
    98.87.36.115 0;
    98.87.39.1 0;
    98.87.44.13 0;
    98.87.48.159 0;
    98.87.52.210 0;
    98.87.54.118 0;
    98.87.63.1 0;
    98.87.68.53 0;
    98.87.69.247 0;
    98.87.70.113 0;
    98.87.73.104 0;
    98.87.83.39 0;
    98.87.91.253 0;
    98.87.92.12 0;
    98.87.95.193 0;
    98.87.95.44 0;
}
map $http_user_agent $amzn_user_fake {
    default 0;
    "~Amzn-User" $amzn_user_unlisted;
}

In the server block (or a location)

if ($amzn_user_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 Amzn-User

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

<If "%{HTTP_USER_AGENT} =~ /Amzn-User/">
    Require all denied
</If>

To allow only the real one: refuse Amzn-User claims from outside Amazon's list

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

<If "%{HTTP_USER_AGENT} =~ /Amzn-User/">
    Require ip 100.24.86.21 100.24.94.158 100.25.233.255 100.26.69.34 100.27.118.106 100.27.157.160
    Require ip 100.27.158.82 100.27.169.147 100.27.91.246 100.28.104.194 100.28.113.237 100.28.151.241
    Require ip 100.28.33.208 100.29.104.31 100.29.106.130 100.29.122.28 100.29.92.161 107.20.201.23
    Require ip 107.20.42.162 107.21.114.117 107.21.229.211 107.22.218.90 107.22.241.68 107.22.255.3
    Require ip 107.22.55.149 107.22.87.58 107.23.190.53 107.23.242.35 107.23.56.227 13.216.113.150
    Require ip 13.216.136.62 13.216.143.182 13.216.152.158 13.216.162.32 13.216.169.197 13.216.27.246
    Require ip 13.217.158.72 13.218.255.40 13.219.0.206 13.219.122.158 13.219.125.104 13.219.138.92
    Require ip 13.219.15.124 13.219.173.86 13.219.211.133 13.219.48.105 13.222.48.80 13.222.68.90
    Require ip 13.223.10.22 13.223.112.99 13.223.12.55 13.223.123.7 13.223.125.191 13.223.127.163
    Require ip 13.223.135.149 13.223.141.183 13.223.143.171 13.223.208.86 13.223.212.171 13.223.219.110
    Require ip 13.223.222.177 13.223.237.145 13.223.32.32 13.223.33.67 174.129.24.225 18.204.129.185
    Require ip 18.204.147.58 18.204.174.34 18.204.200.202 18.204.77.144 18.205.121.5 18.205.170.69
    Require ip 18.205.179.96 18.205.207.200 18.205.94.193 18.206.10.25 18.206.102.242 18.206.103.117
    Require ip 18.206.31.0 18.206.49.169 18.206.63.178 18.206.75.17 18.206.80.142 18.207.68.55
    Require ip 18.207.71.20 18.207.79.53 18.208.49.162 18.208.68.221 18.208.96.116 18.209.149.152
    Require ip 18.209.155.76 18.209.183.128 18.209.189.61 18.210.135.253 18.210.143.14 18.210.177.112
    Require ip 18.210.211.84 18.210.58.248 18.210.79.138 18.210.88.179 18.211.100.116 18.211.172.15
    Require ip 18.211.184.127 18.211.228.10 18.213.102.71 18.213.108.226 18.213.174.38 18.213.18.100
    Require ip 18.213.225.24 18.214.155.227 18.214.160.25 18.214.180.93 18.214.202.10 18.214.208.13
    Require ip 18.214.236.252 18.214.32.251 18.214.97.194 18.215.133.216 18.215.19.140 18.215.37.82
    Require ip 18.215.81.159 18.232.221.67 18.233.242.106 18.233.247.66 18.233.254.6 18.233.44.115
    Require ip 18.233.52.165 18.235.117.231 18.235.176.68 184.72.220.200 184.72.231.109 184.72.242.66
    Require ip 184.73.1.121 184.73.212.232 23.20.14.164 23.20.14.43 23.20.157.74 23.20.190.101
    Require ip 23.21.161.204 23.21.164.86 23.21.226.79 23.21.74.3 23.21.78.102 23.22.140.49
    Require ip 23.22.164.241 23.22.236.99 23.22.87.173 23.22.87.189 23.23.111.110 23.23.152.43
    Require ip 23.23.16.236 23.23.201.145 23.23.209.179 3.208.167.128 3.208.247.204 3.208.46.236
    Require ip 3.209.130.7 3.210.93.112 3.211.144.3 3.211.145.5 3.211.153.227 3.211.177.14
    Require ip 3.211.189.40 3.211.192.237 3.211.199.193 3.211.22.7 3.211.99.154 3.212.148.16
    Require ip 3.212.151.142 3.212.155.239 3.212.155.80 3.212.20.54 3.212.203.251 3.212.205.155
    Require ip 3.213.119.107 3.213.132.166 3.213.183.18 3.213.192.229 3.213.205.133 3.213.223.246
    Require ip 3.213.23.95 3.213.74.26 3.213.80.230 3.214.107.231 3.214.110.59 3.214.154.139
    Require ip 3.214.173.19 3.214.189.85 3.214.213.94 3.215.193.161 3.215.254.248 3.215.8.42
    Require ip 3.215.85.254 3.216.16.254 3.216.24.167 3.216.83.21 3.217.124.227 3.217.155.115
    Require ip 3.217.166.57 3.217.186.68 3.217.47.198 3.217.54.78 3.217.93.234 3.218.11.113
    Require ip 3.218.125.55 3.218.140.139 3.218.177.210 3.218.184.146 3.218.191.159 3.218.226.239
    Require ip 3.218.255.41 3.218.35.149 3.218.68.30 3.219.10.249 3.219.103.72 3.219.249.170
    Require ip 3.219.27.100 3.219.52.199 3.219.98.171 3.220.134.7 3.220.2.22 3.220.89.3
    Require ip 3.221.105.67 3.221.110.107 3.221.204.121 3.221.221.12 3.221.252.69 3.222.193.181
    Require ip 3.222.195.11 3.222.22.183 3.222.57.253 3.223.130.34 3.223.132.246 3.223.148.78
    Require ip 3.223.173.19 3.223.212.88 3.223.245.225 3.223.37.137 3.224.3.11 3.224.66.185
    Require ip 3.224.95.40 3.225.112.119 3.225.130.6 3.225.214.36 3.225.250.64 3.225.254.186
    Require ip 3.225.27.26 3.226.118.11 3.226.168.167 3.226.198.163 3.226.230.216 3.226.55.191
    Require ip 3.226.85.33 3.227.129.67 3.227.179.202 3.227.195.183 3.228.145.87 3.228.187.171
    Require ip 3.228.43.75 3.228.90.152 3.229.141.83 3.229.147.55 3.229.204.29 3.229.206.235
    Require ip 3.229.254.1 3.229.69.123 3.229.88.194 3.230.138.76 3.230.149.251 3.230.15.20
    Require ip 3.230.29.144 3.230.47.56 3.230.52.168 3.230.90.160 3.230.99.92 3.231.179.13
    Require ip 3.231.88.131 3.232.137.33 3.232.180.42 3.232.19.149 3.232.197.101 3.232.20.91
    Require ip 3.232.221.166 3.232.235.15 3.232.240.88 3.233.103.22 3.233.121.160 3.233.183.168
    Require ip 3.233.218.90 3.233.93.65 3.234.161.147 3.234.185.44 3.234.47.132 3.234.77.32
    Require ip 3.234.8.148 3.235.12.133 3.235.125.9 3.81.194.188 3.81.253.151 3.82.135.179
    Require ip 3.82.29.30 3.84.64.201 3.85.182.19 3.86.137.101 3.87.104.37 3.88.92.27
    Require ip 3.89.14.22 3.89.14.224 3.89.213.23 3.91.124.128 3.92.14.207 3.93.132.173
    Require ip 3.94.154.72 3.94.216.37 3.94.225.17 3.94.226.92 3.94.34.209 3.95.79.208
    Require ip 3.95.81.91 3.95.96.198 34.192.141.13 34.192.213.97 34.192.238.32 34.192.33.34
    Require ip 34.192.98.253 34.193.131.3 34.194.118.119 34.194.149.187 34.194.219.117 34.194.219.191
    Require ip 34.194.47.173 34.195.225.185 34.195.23.213 34.195.45.53 34.196.142.152 34.196.155.48
    Require ip 34.196.169.196 34.196.187.85 34.196.42.137 34.196.80.7 34.197.143.174 34.197.149.47
    Require ip 34.197.153.75 34.197.175.171 34.197.2.163 34.197.201.73 34.197.209.185 34.197.73.235
    Require ip 34.198.130.224 34.198.143.69 34.198.162.37 34.198.56.37 34.198.82.162 34.199.156.195
    Require ip 34.199.25.251 34.200.114.155 34.200.159.199 34.200.169.53 34.200.192.85 34.200.203.147
    Require ip 34.200.205.234 34.200.74.100 34.200.81.78 34.200.86.207 34.202.2.123 34.202.30.230
    Require ip 34.202.41.56 34.202.49.146 34.203.149.5 34.203.99.163 34.204.104.43 34.204.215.184
    Require ip 34.204.57.203 34.205.201.97 34.205.238.95 34.206.101.22 34.206.135.181 34.207.48.202
    Require ip 34.207.52.183 34.224.114.26 34.224.120.185 34.224.190.94 34.225.108.229 34.225.133.0
    Require ip 34.225.171.229 34.226.125.221 34.226.51.110 34.226.56.238 34.226.69.93 34.227.118.181
    Require ip 34.227.131.153 34.227.239.141 34.227.42.212 34.228.109.18 34.230.156.160 34.230.234.54
    Require ip 34.230.255.232 34.231.114.104 34.231.184.75 34.231.68.10 34.231.81.35 34.232.184.48
    Require ip 34.232.187.124 34.232.47.104 34.233.148.122 34.233.151.134 34.233.255.1 34.233.36.75
    Require ip 34.233.48.215 34.233.97.140 34.234.14.185 34.234.154.134 34.235.11.182 34.236.104.213
    Require ip 34.236.123.186 34.236.132.205 34.236.132.67 34.236.164.210 34.236.166.107 34.236.209.30
    Require ip 34.236.214.169 34.236.224.25 34.236.253.178 34.237.147.161 34.237.191.141 34.237.207.92
    Require ip 34.237.208.14 34.237.227.70 34.237.232.130 34.237.80.208 34.237.99.86 34.238.107.122
    Require ip 34.238.18.3 34.238.71.63 34.239.15.203 34.239.188.168 34.239.195.85 34.239.206.162
    Require ip 34.239.68.202 35.153.10.9 35.153.107.141 35.153.113.217 35.153.124.65 35.153.197.87
    Require ip 35.153.36.100 35.168.104.113 35.168.183.119 35.168.44.111 35.169.122.102 35.169.198.60
    Require ip 35.169.212.245 35.169.251.66 35.169.56.220 35.170.223.99 35.171.215.147 35.171.218.156
    Require ip 35.171.77.2 35.172.188.66 35.172.62.192 35.172.84.121 35.173.12.118 35.173.12.250
    Require ip 35.173.140.109 35.173.160.101 35.173.172.43 35.173.53.155 35.174.214.80 35.174.229.240
    Require ip 35.174.232.222 35.174.97.70 35.175.22.142 35.175.34.176 35.175.43.19 44.193.128.83
    Require ip 44.193.136.188 44.193.149.106 44.193.163.140 44.193.21.207 44.194.163.207 44.194.194.219
    Require ip 44.194.203.102 44.194.222.211 44.194.70.31 44.195.151.174 44.195.16.2 44.195.178.236
    Require ip 44.195.228.45 44.195.245.78 44.195.248.164 44.195.96.4 44.196.132.20 44.196.15.171
    Require ip 44.196.210.221 44.196.236.142 44.197.30.79 44.197.95.23 44.198.105.147 44.198.125.78
    Require ip 44.198.131.235 44.198.134.204 44.198.205.87 44.198.237.57 44.205.109.175 44.205.197.17
    Require ip 44.205.215.215 44.205.36.200 44.205.58.205 44.205.68.181 44.206.129.15 44.206.15.195
    Require ip 44.206.184.47 44.206.40.110 44.206.84.82 44.207.127.111 44.207.135.147 44.207.169.172
    Require ip 44.207.194.222 44.207.229.212 44.207.26.24 44.207.83.128 44.208.104.56 44.208.16.208
    Require ip 44.208.200.219 44.208.203.166 44.208.236.62 44.208.56.213 44.208.77.108 44.208.83.208
    Require ip 44.208.85.236 44.209.162.73 44.210.192.115 44.212.148.132 44.212.198.85 44.212.239.227
    Require ip 44.213.158.218 44.213.163.24 44.214.194.234 44.214.207.7 44.214.212.218 44.214.32.136
    Require ip 44.214.62.148 44.215.161.26 44.215.216.21 44.215.224.27 44.215.24.160 44.215.63.87
    Require ip 44.215.7.194 44.215.81.252 44.215.84.21 44.215.89.216 44.216.100.41 44.216.104.198
    Require ip 44.216.243.74 44.216.5.127 44.216.58.133 44.216.7.31 44.217.121.202 44.217.152.47
    Require ip 44.217.158.120 44.217.254.94 44.218.132.213 44.218.149.105 44.218.169.19 44.218.183.161
    Require ip 44.218.187.96 44.218.200.142 44.218.30.160 44.218.99.76 44.219.115.49 44.219.143.106
    Require ip 44.219.23.147 44.219.64.51 44.220.9.209 44.221.111.36 44.221.132.209 44.221.185.185
    Require ip 44.221.223.252 44.221.225.24 44.221.244.31 44.221.99.201 44.222.28.176 44.222.60.175
    Require ip 44.223.220.158 44.223.230.228 50.16.147.3 50.16.231.180 50.16.4.171 50.17.1.240
    Require ip 50.17.134.19 50.17.153.9 50.17.191.57 50.17.207.81 50.17.230.96 50.19.126.63
    Require ip 50.19.204.59 50.19.251.209 50.19.29.68 50.19.35.165 50.19.59.54 52.0.129.197
    Require ip 52.0.175.66 52.0.190.163 52.0.192.213 52.0.194.51 52.0.29.253 52.0.31.88
    Require ip 52.0.92.85 52.1.178.161 52.1.245.227 52.1.58.136 52.2.182.123 52.2.196.120
    Require ip 52.2.240.114 52.2.253.241 52.20.100.136 52.20.139.63 52.20.29.92 52.200.116.93
    Require ip 52.200.28.69 52.200.8.184 52.200.84.90 52.201.206.154 52.201.41.193 52.201.98.75
    Require ip 52.202.101.32 52.202.103.180 52.202.121.224 52.202.216.228 52.202.253.248 52.202.35.1
    Require ip 52.202.37.123 52.203.152.175 52.203.209.127 52.203.244.55 52.203.32.72 52.203.86.132
    Require ip 52.204.124.205 52.204.162.207 52.204.226.159 52.204.226.207 52.204.226.223 52.204.64.101
    Require ip 52.204.78.168 52.204.81.241 52.205.135.221 52.205.246.20 52.205.27.163 52.206.102.51
    Require ip 52.206.130.42 52.206.143.135 52.206.169.224 52.206.181.180 52.206.46.172 52.206.52.116
    Require ip 52.206.60.64 52.206.61.139 52.207.120.139 52.207.133.220 52.207.16.197 52.207.61.91
    Require ip 52.207.72.172 52.21.106.0 52.21.120.37 52.21.146.37 52.21.166.33 52.21.48.195
    Require ip 52.22.150.64 52.22.196.44 52.22.210.122 52.22.89.200 52.23.133.109 52.23.146.199
    Require ip 52.23.51.117 52.23.97.153 52.3.104.17 52.3.239.250 52.3.70.186 52.4.106.28
    Require ip 52.4.161.44 52.4.20.22 52.4.200.143 52.4.229.83 52.4.5.89 52.44.145.57
    Require ip 52.44.222.44 52.44.93.127 52.45.105.249 52.45.162.115 52.45.180.161 52.45.82.146
    Require ip 52.45.91.149 52.5.101.193 52.5.11.240 52.5.126.84 52.5.139.177 52.5.158.30
    Require ip 52.5.237.111 52.5.241.167 52.5.71.38 52.5.9.202 52.5.91.235 52.54.128.50
    Require ip 52.54.247.126 52.54.73.166 52.55.118.104 52.55.174.246 52.55.203.221 52.6.108.202
    Require ip 52.7.157.23 52.7.217.144 52.7.224.72 52.7.23.251 52.7.57.117 52.7.66.242
    Require ip 52.70.155.245 52.70.247.71 52.71.225.8 52.71.39.142 52.71.50.120 52.71.70.228
    Require ip 52.72.232.179 52.72.73.184 52.73.115.59 52.73.158.87 52.73.197.50 52.73.206.11
    Require ip 52.73.215.66 52.86.118.49 52.86.198.100 52.86.235.69 52.86.53.42 52.86.86.102
    Require ip 52.87.0.229 52.87.118.241 52.87.127.40 52.87.52.141 52.87.74.18 54.144.163.59
    Require ip 54.144.165.228 54.144.166.248 54.145.100.187 54.145.120.66 54.145.201.55 54.145.202.232
    Require ip 54.146.124.96 54.146.217.77 54.146.78.43 54.147.28.169 54.152.240.110 54.152.250.63
    Require ip 54.152.62.114 54.156.101.5 54.156.218.150 54.156.228.126 54.156.60.28 54.156.75.181
    Require ip 54.157.127.12 54.157.17.251 54.157.60.117 54.157.89.202 54.157.93.108 54.158.126.53
    Require ip 54.158.87.246 54.159.127.105 54.159.41.249 54.159.73.59 54.160.29.53 54.161.82.218
    Require ip 54.162.184.206 54.163.119.115 54.163.119.23 54.163.149.34 54.163.156.179 54.163.96.5
    Require ip 54.164.253.209 54.165.187.237 54.165.237.175 54.166.114.87 54.166.123.195 54.166.147.9
    Require ip 54.166.168.104 54.166.186.204 54.166.203.36 54.166.221.13 54.166.51.59 54.167.145.47
    Require ip 54.167.149.221 54.167.157.19 54.167.167.144 54.167.254.156 54.172.147.40 54.172.181.132
    Require ip 54.172.223.244 54.172.235.19 54.173.251.40 54.173.254.186 54.173.3.145 54.173.73.223
    Require ip 54.174.132.51 54.174.156.91 54.174.185.149 54.174.185.64 54.174.239.164 54.174.255.71
    Require ip 54.174.33.240 54.174.79.6 54.175.137.98 54.175.225.187 54.175.92.255 54.196.107.151
    Require ip 54.196.38.144 54.197.112.73 54.197.64.106 54.198.102.234 54.198.16.172 54.198.232.105
    Require ip 54.198.233.242 54.204.105.187 54.204.223.93 54.204.35.237 54.204.59.63 54.204.80.55
    Require ip 54.205.119.2 54.205.136.35 54.205.160.25 54.205.201.74 54.205.208.13 54.205.213.166
    Require ip 54.205.3.125 54.205.40.225 54.205.45.210 54.208.132.243 54.208.179.143 54.208.246.64
    Require ip 54.208.27.202 54.209.190.9 54.209.191.8 54.209.36.112 54.209.9.33 54.210.131.110
    Require ip 54.210.198.121 54.210.31.211 54.210.80.37 54.211.199.50 54.211.75.0 54.211.78.165
    Require ip 54.221.237.132 54.221.32.154 54.224.116.206 54.224.224.135 54.224.240.158 54.224.53.14
    Require ip 54.225.113.76 54.225.145.181 54.225.162.45 54.225.169.17 54.225.221.30 54.225.67.8
    Require ip 54.225.71.221 54.226.73.182 54.227.13.229 54.227.28.87 54.234.167.100 54.235.211.99
    Require ip 54.235.213.173 54.236.112.173 54.236.158.242 54.236.167.56 54.236.239.164 54.237.184.17
    Require ip 54.237.29.9 54.242.10.253 54.242.167.254 54.243.110.227 54.243.144.14 54.243.201.33
    Require ip 54.243.209.16 54.243.211.8 54.80.175.67 54.80.198.127 54.80.234.89 54.80.243.130
    Require ip 54.80.45.194 54.80.71.176 54.80.74.44 54.81.154.68 54.81.165.33 54.81.246.115
    Require ip 54.82.11.240 54.82.116.145 54.82.165.97 54.82.184.206 54.82.79.140 54.83.14.168
    Require ip 54.83.178.173 54.83.238.70 54.83.29.252 54.83.61.93 54.84.247.173 54.84.255.139
    Require ip 54.84.42.70 54.84.58.86 54.84.96.236 54.85.116.136 54.85.13.251 54.85.152.251
    Require ip 54.85.173.232 54.85.182.11 54.85.182.74 54.85.183.163 54.85.42.248 54.86.102.52
    Require ip 54.86.113.36 54.86.128.12 54.86.173.205 54.86.200.206 54.86.235.24 54.86.41.234
    Require ip 54.87.147.32 54.87.230.73 54.87.231.234 54.87.82.164 54.88.17.4 54.88.231.214
    Require ip 54.89.1.163 54.89.197.100 54.89.37.100 54.89.57.217 54.90.15.96 54.90.160.213
    Require ip 54.90.251.223 54.91.222.113 54.91.68.167 54.91.90.149 54.92.230.27 67.202.14.197
    Require ip 75.101.211.35 98.80.55.141 98.82.243.141 98.82.255.249 98.82.55.41 98.83.170.172
    Require ip 98.83.18.54 98.83.191.241 98.83.248.195 98.83.46.92 98.83.70.133 98.83.89.12
    Require ip 98.84.242.231 98.85.106.40 98.85.137.77 98.85.140.218 98.85.146.158 98.85.211.76
    Require ip 98.85.214.32 98.85.218.4 98.85.238.47 98.85.246.245 98.86.129.100 98.86.184.138
    Require ip 98.86.187.75 98.86.188.104 98.86.192.5 98.86.205.54 98.86.207.121 98.86.207.186
    Require ip 98.86.212.136 98.86.212.35 98.86.214.58 98.86.218.208 98.86.24.23 98.86.249.175
    Require ip 98.86.25.36 98.86.27.21 98.86.29.203 98.86.4.188 98.86.50.127 98.86.51.12
    Require ip 98.86.54.86 98.86.60.7 98.86.78.84 98.86.80.106 98.87.100.94 98.87.110.161
    Require ip 98.87.115.179 98.87.119.92 98.87.125.106 98.87.130.228 98.87.132.166 98.87.141.217
    Require ip 98.87.145.207 98.87.177.122 98.87.178.41 98.87.179.143 98.87.179.166 98.87.179.77
    Require ip 98.87.180.162 98.87.180.251 98.87.180.82 98.87.182.201 98.87.182.37 98.87.182.62
    Require ip 98.87.183.122 98.87.183.61 98.87.184.100 98.87.184.28 98.87.30.184 98.87.36.115
    Require ip 98.87.39.1 98.87.44.13 98.87.48.159 98.87.52.210 98.87.54.118 98.87.63.1
    Require ip 98.87.68.53 98.87.69.247 98.87.70.113 98.87.73.104 98.87.83.39 98.87.91.253
    Require ip 98.87.92.12 98.87.95.193 98.87.95.44
</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 Amzn-User

Inside the site block

@amzn-user header User-Agent *Amzn-User*
respond @amzn-user 403

To allow only the real one: refuse Amzn-User claims from outside Amazon's list

Inside the site block

@fake-amzn-user {
    header User-Agent *Amzn-User*
    not {
        client_ip 100.24.86.21 100.24.94.158 100.25.233.255 100.26.69.34 100.27.118.106 100.27.157.160
        client_ip 100.27.158.82 100.27.169.147 100.27.91.246 100.28.104.194 100.28.113.237 100.28.151.241
        client_ip 100.28.33.208 100.29.104.31 100.29.106.130 100.29.122.28 100.29.92.161 107.20.201.23
        client_ip 107.20.42.162 107.21.114.117 107.21.229.211 107.22.218.90 107.22.241.68 107.22.255.3
        client_ip 107.22.55.149 107.22.87.58 107.23.190.53 107.23.242.35 107.23.56.227 13.216.113.150
        client_ip 13.216.136.62 13.216.143.182 13.216.152.158 13.216.162.32 13.216.169.197 13.216.27.246
        client_ip 13.217.158.72 13.218.255.40 13.219.0.206 13.219.122.158 13.219.125.104 13.219.138.92
        client_ip 13.219.15.124 13.219.173.86 13.219.211.133 13.219.48.105 13.222.48.80 13.222.68.90
        client_ip 13.223.10.22 13.223.112.99 13.223.12.55 13.223.123.7 13.223.125.191 13.223.127.163
        client_ip 13.223.135.149 13.223.141.183 13.223.143.171 13.223.208.86 13.223.212.171 13.223.219.110
        client_ip 13.223.222.177 13.223.237.145 13.223.32.32 13.223.33.67 174.129.24.225 18.204.129.185
        client_ip 18.204.147.58 18.204.174.34 18.204.200.202 18.204.77.144 18.205.121.5 18.205.170.69
        client_ip 18.205.179.96 18.205.207.200 18.205.94.193 18.206.10.25 18.206.102.242 18.206.103.117
        client_ip 18.206.31.0 18.206.49.169 18.206.63.178 18.206.75.17 18.206.80.142 18.207.68.55
        client_ip 18.207.71.20 18.207.79.53 18.208.49.162 18.208.68.221 18.208.96.116 18.209.149.152
        client_ip 18.209.155.76 18.209.183.128 18.209.189.61 18.210.135.253 18.210.143.14 18.210.177.112
        client_ip 18.210.211.84 18.210.58.248 18.210.79.138 18.210.88.179 18.211.100.116 18.211.172.15
        client_ip 18.211.184.127 18.211.228.10 18.213.102.71 18.213.108.226 18.213.174.38 18.213.18.100
        client_ip 18.213.225.24 18.214.155.227 18.214.160.25 18.214.180.93 18.214.202.10 18.214.208.13
        client_ip 18.214.236.252 18.214.32.251 18.214.97.194 18.215.133.216 18.215.19.140 18.215.37.82
        client_ip 18.215.81.159 18.232.221.67 18.233.242.106 18.233.247.66 18.233.254.6 18.233.44.115
        client_ip 18.233.52.165 18.235.117.231 18.235.176.68 184.72.220.200 184.72.231.109 184.72.242.66
        client_ip 184.73.1.121 184.73.212.232 23.20.14.164 23.20.14.43 23.20.157.74 23.20.190.101
        client_ip 23.21.161.204 23.21.164.86 23.21.226.79 23.21.74.3 23.21.78.102 23.22.140.49
        client_ip 23.22.164.241 23.22.236.99 23.22.87.173 23.22.87.189 23.23.111.110 23.23.152.43
        client_ip 23.23.16.236 23.23.201.145 23.23.209.179 3.208.167.128 3.208.247.204 3.208.46.236
        client_ip 3.209.130.7 3.210.93.112 3.211.144.3 3.211.145.5 3.211.153.227 3.211.177.14
        client_ip 3.211.189.40 3.211.192.237 3.211.199.193 3.211.22.7 3.211.99.154 3.212.148.16
        client_ip 3.212.151.142 3.212.155.239 3.212.155.80 3.212.20.54 3.212.203.251 3.212.205.155
        client_ip 3.213.119.107 3.213.132.166 3.213.183.18 3.213.192.229 3.213.205.133 3.213.223.246
        client_ip 3.213.23.95 3.213.74.26 3.213.80.230 3.214.107.231 3.214.110.59 3.214.154.139
        client_ip 3.214.173.19 3.214.189.85 3.214.213.94 3.215.193.161 3.215.254.248 3.215.8.42
        client_ip 3.215.85.254 3.216.16.254 3.216.24.167 3.216.83.21 3.217.124.227 3.217.155.115
        client_ip 3.217.166.57 3.217.186.68 3.217.47.198 3.217.54.78 3.217.93.234 3.218.11.113
        client_ip 3.218.125.55 3.218.140.139 3.218.177.210 3.218.184.146 3.218.191.159 3.218.226.239
        client_ip 3.218.255.41 3.218.35.149 3.218.68.30 3.219.10.249 3.219.103.72 3.219.249.170
        client_ip 3.219.27.100 3.219.52.199 3.219.98.171 3.220.134.7 3.220.2.22 3.220.89.3
        client_ip 3.221.105.67 3.221.110.107 3.221.204.121 3.221.221.12 3.221.252.69 3.222.193.181
        client_ip 3.222.195.11 3.222.22.183 3.222.57.253 3.223.130.34 3.223.132.246 3.223.148.78
        client_ip 3.223.173.19 3.223.212.88 3.223.245.225 3.223.37.137 3.224.3.11 3.224.66.185
        client_ip 3.224.95.40 3.225.112.119 3.225.130.6 3.225.214.36 3.225.250.64 3.225.254.186
        client_ip 3.225.27.26 3.226.118.11 3.226.168.167 3.226.198.163 3.226.230.216 3.226.55.191
        client_ip 3.226.85.33 3.227.129.67 3.227.179.202 3.227.195.183 3.228.145.87 3.228.187.171
        client_ip 3.228.43.75 3.228.90.152 3.229.141.83 3.229.147.55 3.229.204.29 3.229.206.235
        client_ip 3.229.254.1 3.229.69.123 3.229.88.194 3.230.138.76 3.230.149.251 3.230.15.20
        client_ip 3.230.29.144 3.230.47.56 3.230.52.168 3.230.90.160 3.230.99.92 3.231.179.13
        client_ip 3.231.88.131 3.232.137.33 3.232.180.42 3.232.19.149 3.232.197.101 3.232.20.91
        client_ip 3.232.221.166 3.232.235.15 3.232.240.88 3.233.103.22 3.233.121.160 3.233.183.168
        client_ip 3.233.218.90 3.233.93.65 3.234.161.147 3.234.185.44 3.234.47.132 3.234.77.32
        client_ip 3.234.8.148 3.235.12.133 3.235.125.9 3.81.194.188 3.81.253.151 3.82.135.179
        client_ip 3.82.29.30 3.84.64.201 3.85.182.19 3.86.137.101 3.87.104.37 3.88.92.27
        client_ip 3.89.14.22 3.89.14.224 3.89.213.23 3.91.124.128 3.92.14.207 3.93.132.173
        client_ip 3.94.154.72 3.94.216.37 3.94.225.17 3.94.226.92 3.94.34.209 3.95.79.208
        client_ip 3.95.81.91 3.95.96.198 34.192.141.13 34.192.213.97 34.192.238.32 34.192.33.34
        client_ip 34.192.98.253 34.193.131.3 34.194.118.119 34.194.149.187 34.194.219.117 34.194.219.191
        client_ip 34.194.47.173 34.195.225.185 34.195.23.213 34.195.45.53 34.196.142.152 34.196.155.48
        client_ip 34.196.169.196 34.196.187.85 34.196.42.137 34.196.80.7 34.197.143.174 34.197.149.47
        client_ip 34.197.153.75 34.197.175.171 34.197.2.163 34.197.201.73 34.197.209.185 34.197.73.235
        client_ip 34.198.130.224 34.198.143.69 34.198.162.37 34.198.56.37 34.198.82.162 34.199.156.195
        client_ip 34.199.25.251 34.200.114.155 34.200.159.199 34.200.169.53 34.200.192.85 34.200.203.147
        client_ip 34.200.205.234 34.200.74.100 34.200.81.78 34.200.86.207 34.202.2.123 34.202.30.230
        client_ip 34.202.41.56 34.202.49.146 34.203.149.5 34.203.99.163 34.204.104.43 34.204.215.184
        client_ip 34.204.57.203 34.205.201.97 34.205.238.95 34.206.101.22 34.206.135.181 34.207.48.202
        client_ip 34.207.52.183 34.224.114.26 34.224.120.185 34.224.190.94 34.225.108.229 34.225.133.0
        client_ip 34.225.171.229 34.226.125.221 34.226.51.110 34.226.56.238 34.226.69.93 34.227.118.181
        client_ip 34.227.131.153 34.227.239.141 34.227.42.212 34.228.109.18 34.230.156.160 34.230.234.54
        client_ip 34.230.255.232 34.231.114.104 34.231.184.75 34.231.68.10 34.231.81.35 34.232.184.48
        client_ip 34.232.187.124 34.232.47.104 34.233.148.122 34.233.151.134 34.233.255.1 34.233.36.75
        client_ip 34.233.48.215 34.233.97.140 34.234.14.185 34.234.154.134 34.235.11.182 34.236.104.213
        client_ip 34.236.123.186 34.236.132.205 34.236.132.67 34.236.164.210 34.236.166.107 34.236.209.30
        client_ip 34.236.214.169 34.236.224.25 34.236.253.178 34.237.147.161 34.237.191.141 34.237.207.92
        client_ip 34.237.208.14 34.237.227.70 34.237.232.130 34.237.80.208 34.237.99.86 34.238.107.122
        client_ip 34.238.18.3 34.238.71.63 34.239.15.203 34.239.188.168 34.239.195.85 34.239.206.162
        client_ip 34.239.68.202 35.153.10.9 35.153.107.141 35.153.113.217 35.153.124.65 35.153.197.87
        client_ip 35.153.36.100 35.168.104.113 35.168.183.119 35.168.44.111 35.169.122.102 35.169.198.60
        client_ip 35.169.212.245 35.169.251.66 35.169.56.220 35.170.223.99 35.171.215.147 35.171.218.156
        client_ip 35.171.77.2 35.172.188.66 35.172.62.192 35.172.84.121 35.173.12.118 35.173.12.250
        client_ip 35.173.140.109 35.173.160.101 35.173.172.43 35.173.53.155 35.174.214.80 35.174.229.240
        client_ip 35.174.232.222 35.174.97.70 35.175.22.142 35.175.34.176 35.175.43.19 44.193.128.83
        client_ip 44.193.136.188 44.193.149.106 44.193.163.140 44.193.21.207 44.194.163.207 44.194.194.219
        client_ip 44.194.203.102 44.194.222.211 44.194.70.31 44.195.151.174 44.195.16.2 44.195.178.236
        client_ip 44.195.228.45 44.195.245.78 44.195.248.164 44.195.96.4 44.196.132.20 44.196.15.171
        client_ip 44.196.210.221 44.196.236.142 44.197.30.79 44.197.95.23 44.198.105.147 44.198.125.78
        client_ip 44.198.131.235 44.198.134.204 44.198.205.87 44.198.237.57 44.205.109.175 44.205.197.17
        client_ip 44.205.215.215 44.205.36.200 44.205.58.205 44.205.68.181 44.206.129.15 44.206.15.195
        client_ip 44.206.184.47 44.206.40.110 44.206.84.82 44.207.127.111 44.207.135.147 44.207.169.172
        client_ip 44.207.194.222 44.207.229.212 44.207.26.24 44.207.83.128 44.208.104.56 44.208.16.208
        client_ip 44.208.200.219 44.208.203.166 44.208.236.62 44.208.56.213 44.208.77.108 44.208.83.208
        client_ip 44.208.85.236 44.209.162.73 44.210.192.115 44.212.148.132 44.212.198.85 44.212.239.227
        client_ip 44.213.158.218 44.213.163.24 44.214.194.234 44.214.207.7 44.214.212.218 44.214.32.136
        client_ip 44.214.62.148 44.215.161.26 44.215.216.21 44.215.224.27 44.215.24.160 44.215.63.87
        client_ip 44.215.7.194 44.215.81.252 44.215.84.21 44.215.89.216 44.216.100.41 44.216.104.198
        client_ip 44.216.243.74 44.216.5.127 44.216.58.133 44.216.7.31 44.217.121.202 44.217.152.47
        client_ip 44.217.158.120 44.217.254.94 44.218.132.213 44.218.149.105 44.218.169.19 44.218.183.161
        client_ip 44.218.187.96 44.218.200.142 44.218.30.160 44.218.99.76 44.219.115.49 44.219.143.106
        client_ip 44.219.23.147 44.219.64.51 44.220.9.209 44.221.111.36 44.221.132.209 44.221.185.185
        client_ip 44.221.223.252 44.221.225.24 44.221.244.31 44.221.99.201 44.222.28.176 44.222.60.175
        client_ip 44.223.220.158 44.223.230.228 50.16.147.3 50.16.231.180 50.16.4.171 50.17.1.240
        client_ip 50.17.134.19 50.17.153.9 50.17.191.57 50.17.207.81 50.17.230.96 50.19.126.63
        client_ip 50.19.204.59 50.19.251.209 50.19.29.68 50.19.35.165 50.19.59.54 52.0.129.197
        client_ip 52.0.175.66 52.0.190.163 52.0.192.213 52.0.194.51 52.0.29.253 52.0.31.88
        client_ip 52.0.92.85 52.1.178.161 52.1.245.227 52.1.58.136 52.2.182.123 52.2.196.120
        client_ip 52.2.240.114 52.2.253.241 52.20.100.136 52.20.139.63 52.20.29.92 52.200.116.93
        client_ip 52.200.28.69 52.200.8.184 52.200.84.90 52.201.206.154 52.201.41.193 52.201.98.75
        client_ip 52.202.101.32 52.202.103.180 52.202.121.224 52.202.216.228 52.202.253.248 52.202.35.1
        client_ip 52.202.37.123 52.203.152.175 52.203.209.127 52.203.244.55 52.203.32.72 52.203.86.132
        client_ip 52.204.124.205 52.204.162.207 52.204.226.159 52.204.226.207 52.204.226.223 52.204.64.101
        client_ip 52.204.78.168 52.204.81.241 52.205.135.221 52.205.246.20 52.205.27.163 52.206.102.51
        client_ip 52.206.130.42 52.206.143.135 52.206.169.224 52.206.181.180 52.206.46.172 52.206.52.116
        client_ip 52.206.60.64 52.206.61.139 52.207.120.139 52.207.133.220 52.207.16.197 52.207.61.91
        client_ip 52.207.72.172 52.21.106.0 52.21.120.37 52.21.146.37 52.21.166.33 52.21.48.195
        client_ip 52.22.150.64 52.22.196.44 52.22.210.122 52.22.89.200 52.23.133.109 52.23.146.199
        client_ip 52.23.51.117 52.23.97.153 52.3.104.17 52.3.239.250 52.3.70.186 52.4.106.28
        client_ip 52.4.161.44 52.4.20.22 52.4.200.143 52.4.229.83 52.4.5.89 52.44.145.57
        client_ip 52.44.222.44 52.44.93.127 52.45.105.249 52.45.162.115 52.45.180.161 52.45.82.146
        client_ip 52.45.91.149 52.5.101.193 52.5.11.240 52.5.126.84 52.5.139.177 52.5.158.30
        client_ip 52.5.237.111 52.5.241.167 52.5.71.38 52.5.9.202 52.5.91.235 52.54.128.50
        client_ip 52.54.247.126 52.54.73.166 52.55.118.104 52.55.174.246 52.55.203.221 52.6.108.202
        client_ip 52.7.157.23 52.7.217.144 52.7.224.72 52.7.23.251 52.7.57.117 52.7.66.242
        client_ip 52.70.155.245 52.70.247.71 52.71.225.8 52.71.39.142 52.71.50.120 52.71.70.228
        client_ip 52.72.232.179 52.72.73.184 52.73.115.59 52.73.158.87 52.73.197.50 52.73.206.11
        client_ip 52.73.215.66 52.86.118.49 52.86.198.100 52.86.235.69 52.86.53.42 52.86.86.102
        client_ip 52.87.0.229 52.87.118.241 52.87.127.40 52.87.52.141 52.87.74.18 54.144.163.59
        client_ip 54.144.165.228 54.144.166.248 54.145.100.187 54.145.120.66 54.145.201.55 54.145.202.232
        client_ip 54.146.124.96 54.146.217.77 54.146.78.43 54.147.28.169 54.152.240.110 54.152.250.63
        client_ip 54.152.62.114 54.156.101.5 54.156.218.150 54.156.228.126 54.156.60.28 54.156.75.181
        client_ip 54.157.127.12 54.157.17.251 54.157.60.117 54.157.89.202 54.157.93.108 54.158.126.53
        client_ip 54.158.87.246 54.159.127.105 54.159.41.249 54.159.73.59 54.160.29.53 54.161.82.218
        client_ip 54.162.184.206 54.163.119.115 54.163.119.23 54.163.149.34 54.163.156.179 54.163.96.5
        client_ip 54.164.253.209 54.165.187.237 54.165.237.175 54.166.114.87 54.166.123.195 54.166.147.9
        client_ip 54.166.168.104 54.166.186.204 54.166.203.36 54.166.221.13 54.166.51.59 54.167.145.47
        client_ip 54.167.149.221 54.167.157.19 54.167.167.144 54.167.254.156 54.172.147.40 54.172.181.132
        client_ip 54.172.223.244 54.172.235.19 54.173.251.40 54.173.254.186 54.173.3.145 54.173.73.223
        client_ip 54.174.132.51 54.174.156.91 54.174.185.149 54.174.185.64 54.174.239.164 54.174.255.71
        client_ip 54.174.33.240 54.174.79.6 54.175.137.98 54.175.225.187 54.175.92.255 54.196.107.151
        client_ip 54.196.38.144 54.197.112.73 54.197.64.106 54.198.102.234 54.198.16.172 54.198.232.105
        client_ip 54.198.233.242 54.204.105.187 54.204.223.93 54.204.35.237 54.204.59.63 54.204.80.55
        client_ip 54.205.119.2 54.205.136.35 54.205.160.25 54.205.201.74 54.205.208.13 54.205.213.166
        client_ip 54.205.3.125 54.205.40.225 54.205.45.210 54.208.132.243 54.208.179.143 54.208.246.64
        client_ip 54.208.27.202 54.209.190.9 54.209.191.8 54.209.36.112 54.209.9.33 54.210.131.110
        client_ip 54.210.198.121 54.210.31.211 54.210.80.37 54.211.199.50 54.211.75.0 54.211.78.165
        client_ip 54.221.237.132 54.221.32.154 54.224.116.206 54.224.224.135 54.224.240.158 54.224.53.14
        client_ip 54.225.113.76 54.225.145.181 54.225.162.45 54.225.169.17 54.225.221.30 54.225.67.8
        client_ip 54.225.71.221 54.226.73.182 54.227.13.229 54.227.28.87 54.234.167.100 54.235.211.99
        client_ip 54.235.213.173 54.236.112.173 54.236.158.242 54.236.167.56 54.236.239.164 54.237.184.17
        client_ip 54.237.29.9 54.242.10.253 54.242.167.254 54.243.110.227 54.243.144.14 54.243.201.33
        client_ip 54.243.209.16 54.243.211.8 54.80.175.67 54.80.198.127 54.80.234.89 54.80.243.130
        client_ip 54.80.45.194 54.80.71.176 54.80.74.44 54.81.154.68 54.81.165.33 54.81.246.115
        client_ip 54.82.11.240 54.82.116.145 54.82.165.97 54.82.184.206 54.82.79.140 54.83.14.168
        client_ip 54.83.178.173 54.83.238.70 54.83.29.252 54.83.61.93 54.84.247.173 54.84.255.139
        client_ip 54.84.42.70 54.84.58.86 54.84.96.236 54.85.116.136 54.85.13.251 54.85.152.251
        client_ip 54.85.173.232 54.85.182.11 54.85.182.74 54.85.183.163 54.85.42.248 54.86.102.52
        client_ip 54.86.113.36 54.86.128.12 54.86.173.205 54.86.200.206 54.86.235.24 54.86.41.234
        client_ip 54.87.147.32 54.87.230.73 54.87.231.234 54.87.82.164 54.88.17.4 54.88.231.214
        client_ip 54.89.1.163 54.89.197.100 54.89.37.100 54.89.57.217 54.90.15.96 54.90.160.213
        client_ip 54.90.251.223 54.91.222.113 54.91.68.167 54.91.90.149 54.92.230.27 67.202.14.197
        client_ip 75.101.211.35 98.80.55.141 98.82.243.141 98.82.255.249 98.82.55.41 98.83.170.172
        client_ip 98.83.18.54 98.83.191.241 98.83.248.195 98.83.46.92 98.83.70.133 98.83.89.12
        client_ip 98.84.242.231 98.85.106.40 98.85.137.77 98.85.140.218 98.85.146.158 98.85.211.76
        client_ip 98.85.214.32 98.85.218.4 98.85.238.47 98.85.246.245 98.86.129.100 98.86.184.138
        client_ip 98.86.187.75 98.86.188.104 98.86.192.5 98.86.205.54 98.86.207.121 98.86.207.186
        client_ip 98.86.212.136 98.86.212.35 98.86.214.58 98.86.218.208 98.86.24.23 98.86.249.175
        client_ip 98.86.25.36 98.86.27.21 98.86.29.203 98.86.4.188 98.86.50.127 98.86.51.12
        client_ip 98.86.54.86 98.86.60.7 98.86.78.84 98.86.80.106 98.87.100.94 98.87.110.161
        client_ip 98.87.115.179 98.87.119.92 98.87.125.106 98.87.130.228 98.87.132.166 98.87.141.217
        client_ip 98.87.145.207 98.87.177.122 98.87.178.41 98.87.179.143 98.87.179.166 98.87.179.77
        client_ip 98.87.180.162 98.87.180.251 98.87.180.82 98.87.182.201 98.87.182.37 98.87.182.62
        client_ip 98.87.183.122 98.87.183.61 98.87.184.100 98.87.184.28 98.87.30.184 98.87.36.115
        client_ip 98.87.39.1 98.87.44.13 98.87.48.159 98.87.52.210 98.87.54.118 98.87.63.1
        client_ip 98.87.68.53 98.87.69.247 98.87.70.113 98.87.73.104 98.87.83.39 98.87.91.253
        client_ip 98.87.92.12 98.87.95.193 98.87.95.44
    }
}
respond @fake-amzn-user 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 Amzn-User

Expression of a custom rule; action Block

(http.user_agent contains "Amzn-User")

To allow only the real one: refuse Amzn-User claims from outside Amazon's list

Expression of a custom rule; action Block

(http.user_agent contains "Amzn-User" and not ip.src in $amzn_user_ips)

Too long for one rule. With all 1023 ranges written in, this expression is 14,035 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 amzn_user_ips holding the ranges below. List names can only include lowercase letters, numbers, and the underscore (_) character. (Cloudflare docs)

The 1023 ranges, one per line
100.24.86.21
100.24.94.158
100.25.233.255
100.26.69.34
100.27.118.106
100.27.157.160
100.27.158.82
100.27.169.147
100.27.91.246
100.28.104.194
100.28.113.237
100.28.151.241
100.28.33.208
100.29.104.31
100.29.106.130
100.29.122.28
100.29.92.161
107.20.201.23
107.20.42.162
107.21.114.117
107.21.229.211
107.22.218.90
107.22.241.68
107.22.255.3
107.22.55.149
107.22.87.58
107.23.190.53
107.23.242.35
107.23.56.227
13.216.113.150
13.216.136.62
13.216.143.182
13.216.152.158
13.216.162.32
13.216.169.197
13.216.27.246
13.217.158.72
13.218.255.40
13.219.0.206
13.219.122.158
13.219.125.104
13.219.138.92
13.219.15.124
13.219.173.86
13.219.211.133
13.219.48.105
13.222.48.80
13.222.68.90
13.223.10.22
13.223.112.99
13.223.12.55
13.223.123.7
13.223.125.191
13.223.127.163
13.223.135.149
13.223.141.183
13.223.143.171
13.223.208.86
13.223.212.171
13.223.219.110
13.223.222.177
13.223.237.145
13.223.32.32
13.223.33.67
174.129.24.225
18.204.129.185
18.204.147.58
18.204.174.34
18.204.200.202
18.204.77.144
18.205.121.5
18.205.170.69
18.205.179.96
18.205.207.200
18.205.94.193
18.206.10.25
18.206.102.242
18.206.103.117
18.206.31.0
18.206.49.169
18.206.63.178
18.206.75.17
18.206.80.142
18.207.68.55
18.207.71.20
18.207.79.53
18.208.49.162
18.208.68.221
18.208.96.116
18.209.149.152
18.209.155.76
18.209.183.128
18.209.189.61
18.210.135.253
18.210.143.14
18.210.177.112
18.210.211.84
18.210.58.248
18.210.79.138
18.210.88.179
18.211.100.116
18.211.172.15
18.211.184.127
18.211.228.10
18.213.102.71
18.213.108.226
18.213.174.38
18.213.18.100
18.213.225.24
18.214.155.227
18.214.160.25
18.214.180.93
18.214.202.10
18.214.208.13
18.214.236.252
18.214.32.251
18.214.97.194
18.215.133.216
18.215.19.140
18.215.37.82
18.215.81.159
18.232.221.67
18.233.242.106
18.233.247.66
18.233.254.6
18.233.44.115
18.233.52.165
18.235.117.231
18.235.176.68
184.72.220.200
184.72.231.109
184.72.242.66
184.73.1.121
184.73.212.232
23.20.14.164
23.20.14.43
23.20.157.74
23.20.190.101
23.21.161.204
23.21.164.86
23.21.226.79
23.21.74.3
23.21.78.102
23.22.140.49
23.22.164.241
23.22.236.99
23.22.87.173
23.22.87.189
23.23.111.110
23.23.152.43
23.23.16.236
23.23.201.145
23.23.209.179
3.208.167.128
3.208.247.204
3.208.46.236
3.209.130.7
3.210.93.112
3.211.144.3
3.211.145.5
3.211.153.227
3.211.177.14
3.211.189.40
3.211.192.237
3.211.199.193
3.211.22.7
3.211.99.154
3.212.148.16
3.212.151.142
3.212.155.239
3.212.155.80
3.212.20.54
3.212.203.251
3.212.205.155
3.213.119.107
3.213.132.166
3.213.183.18
3.213.192.229
3.213.205.133
3.213.223.246
3.213.23.95
3.213.74.26
3.213.80.230
3.214.107.231
3.214.110.59
3.214.154.139
3.214.173.19
3.214.189.85
3.214.213.94
3.215.193.161
3.215.254.248
3.215.8.42
3.215.85.254
3.216.16.254
3.216.24.167
3.216.83.21
3.217.124.227
3.217.155.115
3.217.166.57
3.217.186.68
3.217.47.198
3.217.54.78
3.217.93.234
3.218.11.113
3.218.125.55
3.218.140.139
3.218.177.210
3.218.184.146
3.218.191.159
3.218.226.239
3.218.255.41
3.218.35.149
3.218.68.30
3.219.10.249
3.219.103.72
3.219.249.170
3.219.27.100
3.219.52.199
3.219.98.171
3.220.134.7
3.220.2.22
3.220.89.3
3.221.105.67
3.221.110.107
3.221.204.121
3.221.221.12
3.221.252.69
3.222.193.181
3.222.195.11
3.222.22.183
3.222.57.253
3.223.130.34
3.223.132.246
3.223.148.78
3.223.173.19
3.223.212.88
3.223.245.225
3.223.37.137
3.224.3.11
3.224.66.185
3.224.95.40
3.225.112.119
3.225.130.6
3.225.214.36
3.225.250.64
3.225.254.186
3.225.27.26
3.226.118.11
3.226.168.167
3.226.198.163
3.226.230.216
3.226.55.191
3.226.85.33
3.227.129.67
3.227.179.202
3.227.195.183
3.228.145.87
3.228.187.171
3.228.43.75
3.228.90.152
3.229.141.83
3.229.147.55
3.229.204.29
3.229.206.235
3.229.254.1
3.229.69.123
3.229.88.194
3.230.138.76
3.230.149.251
3.230.15.20
3.230.29.144
3.230.47.56
3.230.52.168
3.230.90.160
3.230.99.92
3.231.179.13
3.231.88.131
3.232.137.33
3.232.180.42
3.232.19.149
3.232.197.101
3.232.20.91
3.232.221.166
3.232.235.15
3.232.240.88
3.233.103.22
3.233.121.160
3.233.183.168
3.233.218.90
3.233.93.65
3.234.161.147
3.234.185.44
3.234.47.132
3.234.77.32
3.234.8.148
3.235.12.133
3.235.125.9
3.81.194.188
3.81.253.151
3.82.135.179
3.82.29.30
3.84.64.201
3.85.182.19
3.86.137.101
3.87.104.37
3.88.92.27
3.89.14.22
3.89.14.224
3.89.213.23
3.91.124.128
3.92.14.207
3.93.132.173
3.94.154.72
3.94.216.37
3.94.225.17
3.94.226.92
3.94.34.209
3.95.79.208
3.95.81.91
3.95.96.198
34.192.141.13
34.192.213.97
34.192.238.32
34.192.33.34
34.192.98.253
34.193.131.3
34.194.118.119
34.194.149.187
34.194.219.117
34.194.219.191
34.194.47.173
34.195.225.185
34.195.23.213
34.195.45.53
34.196.142.152
34.196.155.48
34.196.169.196
34.196.187.85
34.196.42.137
34.196.80.7
34.197.143.174
34.197.149.47
34.197.153.75
34.197.175.171
34.197.2.163
34.197.201.73
34.197.209.185
34.197.73.235
34.198.130.224
34.198.143.69
34.198.162.37
34.198.56.37
34.198.82.162
34.199.156.195
34.199.25.251
34.200.114.155
34.200.159.199
34.200.169.53
34.200.192.85
34.200.203.147
34.200.205.234
34.200.74.100
34.200.81.78
34.200.86.207
34.202.2.123
34.202.30.230
34.202.41.56
34.202.49.146
34.203.149.5
34.203.99.163
34.204.104.43
34.204.215.184
34.204.57.203
34.205.201.97
34.205.238.95
34.206.101.22
34.206.135.181
34.207.48.202
34.207.52.183
34.224.114.26
34.224.120.185
34.224.190.94
34.225.108.229
34.225.133.0
34.225.171.229
34.226.125.221
34.226.51.110
34.226.56.238
34.226.69.93
34.227.118.181
34.227.131.153
34.227.239.141
34.227.42.212
34.228.109.18
34.230.156.160
34.230.234.54
34.230.255.232
34.231.114.104
34.231.184.75
34.231.68.10
34.231.81.35
34.232.184.48
34.232.187.124
34.232.47.104
34.233.148.122
34.233.151.134
34.233.255.1
34.233.36.75
34.233.48.215
34.233.97.140
34.234.14.185
34.234.154.134
34.235.11.182
34.236.104.213
34.236.123.186
34.236.132.205
34.236.132.67
34.236.164.210
34.236.166.107
34.236.209.30
34.236.214.169
34.236.224.25
34.236.253.178
34.237.147.161
34.237.191.141
34.237.207.92
34.237.208.14
34.237.227.70
34.237.232.130
34.237.80.208
34.237.99.86
34.238.107.122
34.238.18.3
34.238.71.63
34.239.15.203
34.239.188.168
34.239.195.85
34.239.206.162
34.239.68.202
35.153.10.9
35.153.107.141
35.153.113.217
35.153.124.65
35.153.197.87
35.153.36.100
35.168.104.113
35.168.183.119
35.168.44.111
35.169.122.102
35.169.198.60
35.169.212.245
35.169.251.66
35.169.56.220
35.170.223.99
35.171.215.147
35.171.218.156
35.171.77.2
35.172.188.66
35.172.62.192
35.172.84.121
35.173.12.118
35.173.12.250
35.173.140.109
35.173.160.101
35.173.172.43
35.173.53.155
35.174.214.80
35.174.229.240
35.174.232.222
35.174.97.70
35.175.22.142
35.175.34.176
35.175.43.19
44.193.128.83
44.193.136.188
44.193.149.106
44.193.163.140
44.193.21.207
44.194.163.207
44.194.194.219
44.194.203.102
44.194.222.211
44.194.70.31
44.195.151.174
44.195.16.2
44.195.178.236
44.195.228.45
44.195.245.78
44.195.248.164
44.195.96.4
44.196.132.20
44.196.15.171
44.196.210.221
44.196.236.142
44.197.30.79
44.197.95.23
44.198.105.147
44.198.125.78
44.198.131.235
44.198.134.204
44.198.205.87
44.198.237.57
44.205.109.175
44.205.197.17
44.205.215.215
44.205.36.200
44.205.58.205
44.205.68.181
44.206.129.15
44.206.15.195
44.206.184.47
44.206.40.110
44.206.84.82
44.207.127.111
44.207.135.147
44.207.169.172
44.207.194.222
44.207.229.212
44.207.26.24
44.207.83.128
44.208.104.56
44.208.16.208
44.208.200.219
44.208.203.166
44.208.236.62
44.208.56.213
44.208.77.108
44.208.83.208
44.208.85.236
44.209.162.73
44.210.192.115
44.212.148.132
44.212.198.85
44.212.239.227
44.213.158.218
44.213.163.24
44.214.194.234
44.214.207.7
44.214.212.218
44.214.32.136
44.214.62.148
44.215.161.26
44.215.216.21
44.215.224.27
44.215.24.160
44.215.63.87
44.215.7.194
44.215.81.252
44.215.84.21
44.215.89.216
44.216.100.41
44.216.104.198
44.216.243.74
44.216.5.127
44.216.58.133
44.216.7.31
44.217.121.202
44.217.152.47
44.217.158.120
44.217.254.94
44.218.132.213
44.218.149.105
44.218.169.19
44.218.183.161
44.218.187.96
44.218.200.142
44.218.30.160
44.218.99.76
44.219.115.49
44.219.143.106
44.219.23.147
44.219.64.51
44.220.9.209
44.221.111.36
44.221.132.209
44.221.185.185
44.221.223.252
44.221.225.24
44.221.244.31
44.221.99.201
44.222.28.176
44.222.60.175
44.223.220.158
44.223.230.228
50.16.147.3
50.16.231.180
50.16.4.171
50.17.1.240
50.17.134.19
50.17.153.9
50.17.191.57
50.17.207.81
50.17.230.96
50.19.126.63
50.19.204.59
50.19.251.209
50.19.29.68
50.19.35.165
50.19.59.54
52.0.129.197
52.0.175.66
52.0.190.163
52.0.192.213
52.0.194.51
52.0.29.253
52.0.31.88
52.0.92.85
52.1.178.161
52.1.245.227
52.1.58.136
52.2.182.123
52.2.196.120
52.2.240.114
52.2.253.241
52.20.100.136
52.20.139.63
52.20.29.92
52.200.116.93
52.200.28.69
52.200.8.184
52.200.84.90
52.201.206.154
52.201.41.193
52.201.98.75
52.202.101.32
52.202.103.180
52.202.121.224
52.202.216.228
52.202.253.248
52.202.35.1
52.202.37.123
52.203.152.175
52.203.209.127
52.203.244.55
52.203.32.72
52.203.86.132
52.204.124.205
52.204.162.207
52.204.226.159
52.204.226.207
52.204.226.223
52.204.64.101
52.204.78.168
52.204.81.241
52.205.135.221
52.205.246.20
52.205.27.163
52.206.102.51
52.206.130.42
52.206.143.135
52.206.169.224
52.206.181.180
52.206.46.172
52.206.52.116
52.206.60.64
52.206.61.139
52.207.120.139
52.207.133.220
52.207.16.197
52.207.61.91
52.207.72.172
52.21.106.0
52.21.120.37
52.21.146.37
52.21.166.33
52.21.48.195
52.22.150.64
52.22.196.44
52.22.210.122
52.22.89.200
52.23.133.109
52.23.146.199
52.23.51.117
52.23.97.153
52.3.104.17
52.3.239.250
52.3.70.186
52.4.106.28
52.4.161.44
52.4.20.22
52.4.200.143
52.4.229.83
52.4.5.89
52.44.145.57
52.44.222.44
52.44.93.127
52.45.105.249
52.45.162.115
52.45.180.161
52.45.82.146
52.45.91.149
52.5.101.193
52.5.11.240
52.5.126.84
52.5.139.177
52.5.158.30
52.5.237.111
52.5.241.167
52.5.71.38
52.5.9.202
52.5.91.235
52.54.128.50
52.54.247.126
52.54.73.166
52.55.118.104
52.55.174.246
52.55.203.221
52.6.108.202
52.7.157.23
52.7.217.144
52.7.224.72
52.7.23.251
52.7.57.117
52.7.66.242
52.70.155.245
52.70.247.71
52.71.225.8
52.71.39.142
52.71.50.120
52.71.70.228
52.72.232.179
52.72.73.184
52.73.115.59
52.73.158.87
52.73.197.50
52.73.206.11
52.73.215.66
52.86.118.49
52.86.198.100
52.86.235.69
52.86.53.42
52.86.86.102
52.87.0.229
52.87.118.241
52.87.127.40
52.87.52.141
52.87.74.18
54.144.163.59
54.144.165.228
54.144.166.248
54.145.100.187
54.145.120.66
54.145.201.55
54.145.202.232
54.146.124.96
54.146.217.77
54.146.78.43
54.147.28.169
54.152.240.110
54.152.250.63
54.152.62.114
54.156.101.5
54.156.218.150
54.156.228.126
54.156.60.28
54.156.75.181
54.157.127.12
54.157.17.251
54.157.60.117
54.157.89.202
54.157.93.108
54.158.126.53
54.158.87.246
54.159.127.105
54.159.41.249
54.159.73.59
54.160.29.53
54.161.82.218
54.162.184.206
54.163.119.115
54.163.119.23
54.163.149.34
54.163.156.179
54.163.96.5
54.164.253.209
54.165.187.237
54.165.237.175
54.166.114.87
54.166.123.195
54.166.147.9
54.166.168.104
54.166.186.204
54.166.203.36
54.166.221.13
54.166.51.59
54.167.145.47
54.167.149.221
54.167.157.19
54.167.167.144
54.167.254.156
54.172.147.40
54.172.181.132
54.172.223.244
54.172.235.19
54.173.251.40
54.173.254.186
54.173.3.145
54.173.73.223
54.174.132.51
54.174.156.91
54.174.185.149
54.174.185.64
54.174.239.164
54.174.255.71
54.174.33.240
54.174.79.6
54.175.137.98
54.175.225.187
54.175.92.255
54.196.107.151
54.196.38.144
54.197.112.73
54.197.64.106
54.198.102.234
54.198.16.172
54.198.232.105
54.198.233.242
54.204.105.187
54.204.223.93
54.204.35.237
54.204.59.63
54.204.80.55
54.205.119.2
54.205.136.35
54.205.160.25
54.205.201.74
54.205.208.13
54.205.213.166
54.205.3.125
54.205.40.225
54.205.45.210
54.208.132.243
54.208.179.143
54.208.246.64
54.208.27.202
54.209.190.9
54.209.191.8
54.209.36.112
54.209.9.33
54.210.131.110
54.210.198.121
54.210.31.211
54.210.80.37
54.211.199.50
54.211.75.0
54.211.78.165
54.221.237.132
54.221.32.154
54.224.116.206
54.224.224.135
54.224.240.158
54.224.53.14
54.225.113.76
54.225.145.181
54.225.162.45
54.225.169.17
54.225.221.30
54.225.67.8
54.225.71.221
54.226.73.182
54.227.13.229
54.227.28.87
54.234.167.100
54.235.211.99
54.235.213.173
54.236.112.173
54.236.158.242
54.236.167.56
54.236.239.164
54.237.184.17
54.237.29.9
54.242.10.253
54.242.167.254
54.243.110.227
54.243.144.14
54.243.201.33
54.243.209.16
54.243.211.8
54.80.175.67
54.80.198.127
54.80.234.89
54.80.243.130
54.80.45.194
54.80.71.176
54.80.74.44
54.81.154.68
54.81.165.33
54.81.246.115
54.82.11.240
54.82.116.145
54.82.165.97
54.82.184.206
54.82.79.140
54.83.14.168
54.83.178.173
54.83.238.70
54.83.29.252
54.83.61.93
54.84.247.173
54.84.255.139
54.84.42.70
54.84.58.86
54.84.96.236
54.85.116.136
54.85.13.251
54.85.152.251
54.85.173.232
54.85.182.11
54.85.182.74
54.85.183.163
54.85.42.248
54.86.102.52
54.86.113.36
54.86.128.12
54.86.173.205
54.86.200.206
54.86.235.24
54.86.41.234
54.87.147.32
54.87.230.73
54.87.231.234
54.87.82.164
54.88.17.4
54.88.231.214
54.89.1.163
54.89.197.100
54.89.37.100
54.89.57.217
54.90.15.96
54.90.160.213
54.90.251.223
54.91.222.113
54.91.68.167
54.91.90.149
54.92.230.27
67.202.14.197
75.101.211.35
98.80.55.141
98.82.243.141
98.82.255.249
98.82.55.41
98.83.170.172
98.83.18.54
98.83.191.241
98.83.248.195
98.83.46.92
98.83.70.133
98.83.89.12
98.84.242.231
98.85.106.40
98.85.137.77
98.85.140.218
98.85.146.158
98.85.211.76
98.85.214.32
98.85.218.4
98.85.238.47
98.85.246.245
98.86.129.100
98.86.184.138
98.86.187.75
98.86.188.104
98.86.192.5
98.86.205.54
98.86.207.121
98.86.207.186
98.86.212.136
98.86.212.35
98.86.214.58
98.86.218.208
98.86.24.23
98.86.249.175
98.86.25.36
98.86.27.21
98.86.29.203
98.86.4.188
98.86.50.127
98.86.51.12
98.86.54.86
98.86.60.7
98.86.78.84
98.86.80.106
98.87.100.94
98.87.110.161
98.87.115.179
98.87.119.92
98.87.125.106
98.87.130.228
98.87.132.166
98.87.141.217
98.87.145.207
98.87.177.122
98.87.178.41
98.87.179.143
98.87.179.166
98.87.179.77
98.87.180.162
98.87.180.251
98.87.180.82
98.87.182.201
98.87.182.37
98.87.182.62
98.87.183.122
98.87.183.61
98.87.184.100
98.87.184.28
98.87.30.184
98.87.36.115
98.87.39.1
98.87.44.13
98.87.48.159
98.87.52.210
98.87.54.118
98.87.63.1
98.87.68.53
98.87.69.247
98.87.70.113
98.87.73.104
98.87.83.39
98.87.91.253
98.87.92.12
98.87.95.193
98.87.95.44

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: Amazon's list developer.amazon.com/amazonbot/live-ip-addresses/, 1023 ranges, fetched 8 Oct 2026, list dated 4 Nov 2025. 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 /. 8 block Amzn-User from the whole site by name, 36 block it through their User-agent: * group, and 3 name it with partial rules (some paths closed, the home page open). 1 more name it only to let it in.

8

block it by name 1.6%

36

block it through * 7.1%

3

name it, partial rules 0.6%

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

Highest-ranked sites that block Amzn-User by name

  1. cnn.com rank 205
  2. bbc.com rank 221
  3. bbc.co.uk rank 230
  4. usatoday.com rank 603
  5. elpais.com rank 678
  6. cnet.com rank 734
  7. people.com rank 822
  8. onet.pl rank 963

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
Amazon
Purpose
User-requested fetch
Obeys robots.txt
Not always. Amazon says that because Amzn-User's actions can be initiated by a user, it may not follow all robots.txt directives.
In your server logs
The user-agent string contains "Amzn-User/0.1".
How to verify it
Match the request's IP address against Amazon's published Amzn-User IP list.

Published list: developer.amazon.com/amazonbot/live-ip-addresses/ — 1023 IPv4 ranges when we fetched it, list dated 4 Nov 2025. Always match against the live list; operators update them. To count real and fake Amzn-User requests in your own server log against this list, drop the log into the log reader.

What Amazon says

Quoted word for word from the operator's documentation.

“Amzn-User supports user actions, such as responding to Alexa queries that require up-to-date information. For example, when a customer asks a question, Amzn-User may fetch live information from the web to provide accurate answers on the user’s behalf. Because actions taken by Amzn-User can be initiated by a user, it may not follow all robots.txt directives.Amzn-User does not crawl content for generative AI model training.”

“Example User Agent String: Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; Amzn-User/0.1) Chrome/W.X.Y.Z Safari/537.36”

“Published IP Addresses:”

Sources

Other crawlers from Amazon

Same purpose, other operators

← All 49 AI crawlers

Made with AI tools. · Privacy