Http://1.0.0.1/cdn-cgi/trace no longer returns trace info

Hi,

I’ve been using “http://1.0.0.1/cdn-cgi/trace” as a quick test for IP and Cloudflare colo information. However, it stopped working and now returns 301 to HTTPS which won’t do the trick in my case.

Interestingly, 1.1.1.1 and most other Cloudflare IP addresses I tested against still returns trace info over HTTP.

I’m just documenting this change and wondering if anyone knows whether cdn-cgi/trace will stop working over HTTP on 1.1.1.1 and other IP.

My results:

fl=114f114
h=1.0.0.1
ip=MY_IPv4_HERE
ts=1636042654.697
visit_scheme=https
uag=Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:94.0) Gecko/20100101 Firefox/94.0
colo=VIE
http=http/2
loc=HR
tls=TLSv1.3
sni=off
warp=off
gateway=off

fl=114f76
h=1.1.1.1
ip=MY_IPv4_HERE
ts=1636042722.778
visit_scheme=https
uag=Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:94.0) Gecko/20100101 Firefox/94.0
colo=VIE
http=http/2
loc=HR
tls=TLSv1.3
sni=off
warp=off
gateway=off

Which is caused by Web browser (HTTPS-only) or an actual HTTP to HTTPS redirection at Cloudflare?

My https://1.1.1.1/help results here.

While https://1.0.0.1/help get’s me this (dark mode due to Web browser extension DarkReader):

Maybe because one is primary, while the other one is secondary?

I noticed the same, that’s also why https://1.1.1.1/help was failing the test for the 1.0.0.1 server for me. The https redirect seems to be broken. http://1.0.0.1 does not work, http://1.1.1.1 does.

For me https://1.1.1.1/help and https://1.0.0.1/help give the same test page. Weird that you are being redirected to the homepage. Perhaps an update is not propagated everywhere yet?

https://1.0.0.1/help tested again and go the same result as 1.1.1.1/help, maybe I copied something wrong :grin:

It’s not caused by the browser or HSTS. I’ve been using cURL and it’s an actual 301 from Cloudflare.

curl -v 1.0.0.1/cdn-cgi/trace
*   Trying 1.0.0.1:80...
* Connected to 1.0.0.1 (1.0.0.1) port 80 (#0)
> GET /cdn-cgi/trace HTTP/1.1
> Host: 1.0.0.1
> User-Agent: curl/7.79.1
> Accept: */*
>
* Mark bundle as not supporting multiuse
< HTTP/1.1 301 Moved Permanently
< Server: cloudflare
< Date: Fri, 05 Nov 2021 01:51:15 GMT
< Content-Type: text/html
< Content-Length: 167
< Connection: keep-alive
< Location: https://1.0.0.1/cdn-cgi/trace
< CF-RAY: 6a926f97fde91277-MIA
<
<html>
<head><title>301 Moved Permanently</title></head>
<body>
<center><h1>301 Moved Permanently</h1></center>
<hr><center>cloudflare</center>
</body>
</html>

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.