Forum Moderators: open
(my tests...)
IP: 40.77.167.46 20210507 19:01:23 403 443 TLSv1.2
Host: www.example.co.uk Page: /errdoc.php URL: /robots.txt
(bot headers...)
Cache-Control: no-cache
Connection: Keep-Alive
Pragma: no-cache
Accept: */*
Accept-Encoding: gzip, deflate
From: bingbot(at)microsoft.com
User-Agent: Mozilla/5.0 (compatible; bingbot/2.0; +http://www.bing.com/bingbot.htm) (my tests...)
IP: 207.46.13.64 20210508 0:04:01 200 443 TLSv1.2
Host: www.example.co.uk Page: /eye-07.php
bot: bing
ips: bing:207.46.13.64
http: ok:HTTP/1.1
browser: Safari:Safari/953
(bot headers...)
Cache-Control: no-cache
Connection: Keep-Alive
Pragma: no-cache
Accept: */*
Accept-Encoding: gzip, deflate
From: bingbot(at)microsoft.com
User-Agent: Mozilla/5.0 (iPhone; CPU iPhone OS 7_0 like Mac OS X) AppleWebKit/537.51.1 (KHTML, like Gecko) Version/7.0 Mobile/11A465 Safari/9537.53 (compatible; bingbot/2.0; +http://www.bing.com/bingbot.htm) <if "! (%{REQUEST_URI} =~ m#robots\.txt#i) || ! (%{HTTP_USER_AGENT} =~ m#bingbot#i) ">
SetEnvIf Request_Protocol HTTP/(0\.9|1\.0) proto=too_low:$0 http=bad:$0
</if>
bingbot (and only bingbot) asks for robots.txt without providing ANY protocol (eg http/1.2)What does this look like in access logs?
40.77.167.51 - - [09/May/2021:09:39:29 +0100] "GET /robots.txt HTTP/1.1" 403 3500 "-" "Mozilla/5.0 (compatible; bingbot/2.0; +http://www.bing.com/bingbot.htm)"
40.77.167.51 - - [09/May/2021:09:39:30 +0100] "GET /robots.txt HTTP/1.1" 200 5124 "-" "Mozilla/5.0 (compatible; bingbot/2.0; +http://www.bing.com/bingbot.htm)" bingbot started using HTTP/2.0
two consecutive hits this morningAs I was saying ... ;)
You must enable HTTP/2 via Protocols in order to use the functionality described in this document.where “Protocols” is a Core directive.