Also open-source and self-hostable: https://github.com/httptoolkit/testserver. Lots of other endpoints too, full docs here: https://testserver.host/
Example.com just launched the biggest redesign in decades (debugbear.com)
pimterry 15 hours ago
oneeyedpigeon 14 hours ago
voidUpdate 14 hours ago
As an example, depending on "man -w" not outputting anything to stderr: https://unix.stackexchange.com/questions/405783/why-does-man...
madeofpalk 13 hours ago
We removed the version and a few customers complained we broke their stuff.
bonesss 11 hours ago
Our back clapping was interrupted by an angry customer phone call. One of our customers had gotten access to our internal schema and had a massive reporting setup in Access solving most of his needs.
I ended up converting his reports using some internal tools we had. Customers will grab anything to give them.
[The caliber and depth of his reports were such I wish we would have bought them instead of making me spend months building out our own reports.]
eru 11 hours ago
Learning from customers is some of the best learning you can do. :)
sumtechguy 2 hours ago
datsci_est_2015 11 hours ago
This is probably an even more important principle in the age of LLMs.
Topfi 13 hours ago
cbm-vic-20 7 hours ago
BoxOfRain 6 hours ago
egorfine 13 hours ago
/s
aghuang 13 hours ago
Cthulhu_ 12 hours ago
simoncion 13 hours ago
The web page at example.com is maintained as a courtesy by IANA in order to explain the purpose of the example.com domain to wayward humans.
In the nomenclature of RFC 2119, one MUST NOT design computer systems that rely on the correct operation of an HTTP server at that domain. [0] Plus, it's _really_ rude to pound on a small-scale service being provided as a courtesy... go hit the home page of a tech megacorp (such as Microsoft or Google) or the status page for a major CDN (such as Cloudflare or Akamai) instead!
[0] I expect that someone here will want to pop up with a "gotcha" where they say something like "Oh, but IANA's email says that automated use is strongly recommended against, rather than prohibited and besides, they can't actually stop me from doing it!". To that, I reply "Sure, and standards-writers can't actually stop implementers that do the profoundly antisocial thing and do the things they MUST NOT. As any adult who's been paying attention to the world around them throughout their lives knows, there's only so much you can do to stop people who are very determined to be enormous assholes.".
Nnnes 10 hours ago
Would you settle for any old static page served by Cloudflare? For instance, example.com? https://bgp.tools/dns/example.com
simoncion 10 hours ago
In the nomenclature of RFC 2119, one MUST NOT design computer systems that rely on the correct operation of an HTTP server at [example.com.] Plus, it's *_really_* rude to pound on a small-scale service being provided as a courtesy.mixdup 6 hours ago
Maybe Cloudflare gives them a good rate, or is donating service, but it's also possible or even likely that IANA is just using Cloudflare as a vendor, and therefore is paying for all the traffic, which is why they don't want people relying on it or hammering it all the time
lxgr 5 hours ago
Much too big for metered data, full of ads, and importantly they all mandate HTTPS these days, which breaks my use case of forcing a captive portal on paid/login-gated Wi-Fi to render.
example.com is (unfortunately for the IATA) the almost perfect "can I reach the Internet" service: It's unlikely to go away, supports HTTP, is fairly small, easy to remember, and I don't care if a captive portal poisons my DNS cache with a fake response temporarily.
Cthulhu_ 12 hours ago
> This is not a service; avoid relying on it for testing and monitoring purposes.
SamuelAdams 10 hours ago
nemomarx 10 hours ago
So yeah I would pick something simpler for a network access test probably?
patmorgan23 8 hours ago
ceejayoz 8 hours ago
It's a static page that every Apple device relies on saying only:
<HTML><HEAD><TITLE>Success</TITLE></HEAD><BODY>Success</BODY></HTML>mixdup 6 hours ago
encom 5 hours ago
~$ ping -c1 1.1
PING 1.1 (1.0.0.1) 56(84) bytes of data.
64 bytes from 1.0.0.1: icmp_seq=1 ttl=56 time=7.89 ms
--- 1.1 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 7.888/7.888/7.888/0.000 msnhecker 2 hours ago
TowerTall 6 hours ago
lxgr 5 hours ago
It's a shame that we don't have any standards for the concerns of canonically testing Internet reachability and for authoritatively redirecting network users to a captive payment portal (without having to resort to ugly hacks that often break with TLS).
Ajedi32 5 hours ago
lxgr 4 hours ago
But even just having an RFC to yell about is great, thank you :)
98codes 2 hours ago
smashed 9 hours ago
I caught it in review but thousands of others won't.
That ship has sailed I would say.
nemomarx 7 hours ago
vikramkr 6 hours ago
bevr1337 4 hours ago
zahlman 3 hours ago
wildzzz 6 hours ago
pimterry 6 hours ago
Also as a _long_ list of other specialist TLS endpoint configurations if you're interested, which can be arbitrarily combined, see https://testserver.host/#tls-endpoints.
That gives neat tricks like https://tls-v1-2--expired--incomplete-chain--http2.testserve...: only accepts TLS 1.2, then sends an expired certificate but fails to send the intermediate cert for the chain (so the client must infer it) and then negotiates HTTP/2 for the connection on top. Fun!
willismonroe 6 hours ago
skrtskrt 2 hours ago
selcuka 21 hours ago
Yes, I know it's not the example.com's fault, and it's a side effect of Hyrum's Law:
> This is not a service, avoid relying on it for testing and monitoring purposes.
Don't we all have a few fragile tests?
chews 21 hours ago
brookst 19 hours ago
ButlerianJihad 17 hours ago
Pinging such an address is inherently a troublesome practice. This address, like many public DNS servers (resolvers as well as root and authoritative ones), uses "anycast" routing methodology.
https://en.wikipedia.org/wiki/Anycast
Pinging an anycast address will yield a cornucopia of different results. Of course, people who naïvely "ping" a recognizable or easy-to-type IPv4 address get what they deserve, especially when they enshrine it into software, unit tests, or the LLM coughs up such tokens on their behalf.
Fundamentally, the question is "what do you really want to test?" by pinging a particular IPv4? Do you want to test Layer 3 connectivity? Test your ISP's backbone and connectivity? Test only your upstream router? Test the existence of ICMP in your stack and theirs?
... the possibilities are endless. Your router can do anything. Ping zombo.com.
QuantumNomad_ 17 hours ago
frizlab 17 hours ago
M4v3R 16 hours ago
justinator 15 hours ago
JdeBP 9 hours ago
jasongill 2 hours ago
zettabomb 15 hours ago
Pinging a domain name could fail for a variety of other reasons, particularly if it's not a reliable site. Cloudflare's business is being reliable; few sites would be a better choice.
its-summertime 15 hours ago
mcapodici 15 hours ago
account42 14 hours ago
zettabomb 14 hours ago
brookst 9 hours ago
But it’s a good “is traffic making it past my router with some semblance of connectivity” sanity check, and easier than finding the provider-side next hop address.
ButlerianJihad 9 hours ago
Hikikomori 15 hours ago
ButlerianJihad 15 hours ago
Hikikomori 12 hours ago
ffaccount2 14 hours ago
[0]: https://stackoverflow.com/questions/1672338/how-to-sleep-for...
itintheory 9 hours ago
The thread you linked to suggests 'timeout'[0]
[0] https://learn.microsoft.com/en-us/windows-server/administrat...
fingerlocks 2 hours ago
vlyan 12 hours ago
Look what happened because of what you did, what it led to! Two microservices are in critical condition and you're laughing. You're laughing.
alibarber 10 hours ago
I don't think people are using `ping 1.1.1.1` as a stable API, rather as a yes/no test of the network segment that they control.
anyfoo 15 hours ago
Likely for good reason, even back then there would have bound to be lots of misconfigured endpoints trying to access 1.1.1.1, so just blocking it at the earliest point possible kept at lot of the annoyance away. Nowadays, it’s an anycast address, so it’s slightly less bad.
But for me, old habits die hard.
tesnorindian 14 hours ago
folmar 10 hours ago
JdeBP 9 hours ago
Just before COVID, a random unidentifiable person reported that 1.1.1.1 saw 60Mb/s of ICMP echo traffic. When APNIC first experimented with making it a valid network almost a decade before that, it was being sent 50Mb/s of general IP traffic. Amusingly, a side-effect of what CloudFlare has done is that it has stopped all of that traffic leaving the edges of the Internet, and funnelling in to one big central place.
There are those who remember the risks of 'just use 1.1.1.1' and how the people who did that used be characterized as 'bad Internet citizens'. The ServerFault answer (q.v.) is from 2011.
* https://labs.ripe.net/author/franz/pollution-in-18/
mitxela 6 hours ago
teraflop 18 hours ago
hanibrel 11 hours ago
eru 11 hours ago
dilap 8 hours ago
danielmeskin 24 minutes ago
I went and checked and in fact it is already serving a script s.js so I guess you’re right!
jamdav16 a day ago
Looks like they removed this and instead just show all languages with no CSS animation now.
johnnyanmac 21 hours ago
It still probably is as it is now. But there's better arguments to support localization than transitions.
p-t 20 hours ago
thaumasiotes 18 hours ago
Well, no. The purpose of the redesign is to move as much of the page content as possible into an external javascript file. There's no question of what parts of the page require javascript; the question is what parts of the page can be moved into javascript.
kijeda 18 hours ago
ChrisRR 11 hours ago
sea-gold a day ago
dang 19 hours ago
IANA's email about why example.com changed - https://news.ycombinator.com/item?id=49915060 - Sept 2026 (20 comments)
frogulis 19 hours ago
creatonez 16 hours ago
frogulis 15 hours ago
ButlerianJihad 9 hours ago
McCarthy of DebugBear clearly noticed this admonition and perhaps the mistake as well, because they have carefully highlighted "example.com" without linking to it, although they apparently have visited the site in order to copy and cite screenshots and unpack the CSS, and describe an extensive history of it.
hannob 2 hours ago
Ultimately, the example.com domain is just there so you can use it in documentation or code examples. Your expectation about the actual example.com domain should basically be none at all, maybe with the exception that it's hopefully not doing actively malicious things like serving malware or running a catchall mailbox feeding spammers.
Whatever HTML they server or if they serve anything at all... shouldn't matter.
VVilhelmsen 9 hours ago
I am devastated.
skipants 9 hours ago
PurpleRamen 8 hours ago
ceejayoz 8 hours ago
I kinda expected this to be Ford Model T "Any color the customer wants, as long as it’s black" joke.
jmaw 8 hours ago
TazeTSchnitzel 7 hours ago
pwython 5 hours ago
bigstrat2003 an hour ago
kbolino an hour ago
data:text/html,<body%20bgcolor="white">adithyassekhar a day ago
arcanemachiner 21 hours ago
oneeyedpigeon 14 hours ago
(I actually tried the select, share [sic], open in browser route, but for some reason I only saw opera as an option, not chrome, the browser I actually use for everything. Links still rule.)
user19282 5 hours ago
ndriscoll 21 hours ago
adithyassekhar 20 hours ago
mitxela 6 hours ago
kccqzy 9 hours ago
zahrevsky a day ago
I guess this is also done to prevent bad actors from abusing the fact that this domain is hit by people who might not know what they're doing (the ones copy-pasting code without reading it)
jgx0 a day ago
krackers a day ago
dylan604 21 hours ago
altermetax 21 hours ago
dylan604 20 hours ago
valleyer 18 hours ago
pests 18 hours ago
dofm 14 hours ago
notpushkin 16 hours ago
> Someone else could
When you own a domain, you can choose not to serve anything on HTTP/S, and still nobody can come and serve some other website on your domain, because they don’t control the DNS records.
zamadatix a day ago
philo23 12 hours ago
I remember getting my start with web development by simply reading the source code of sites I found interesting and trying to recreate them. example.com isn't exactly very interesting but it feels like compressing the HTML isn't in the spirit of things either.
On a side note I'd love to see how complicated (or maybe simple) the hosting setup for this site actually is behind the scenes.
itintheory 9 hours ago
But beyond that, what are you referring to as compression? When I look at the source I see a VERY short easily human-readable HTML page. It doesn't have newlines, but I wouldn't consider that compression. It also references a short, but non-obfuscated javascript file at https://example.com/s.js .
Maybe I misunderstood what you're referring to...
kjellsbells 8 hours ago
separate shower thought: Microsoft have used contoso.com as the example domain in their docs for 25+ years. I bet the logs for that domain are absolutely wild.
slipfold a day ago
lxgr 5 hours ago
Well, IATA – give me api.example.com or sniff my user agent and I'll be out of your hair :)
accountrequired 16 hours ago
xigoi 15 hours ago
Lightbody a day ago
notatoad 21 hours ago
which does appear to say that yes, IANA hosts this
jonah-archive 19 hours ago
danhite 18 hours ago
Given that they have gotten spiked by automated requests lately, aka agents, wouldn't this at least be respected by the big players?
Also, as they are using Cloudflare, wouldn't a discussion (or a note from IANA or CF) about how they configured CF request rejection and how one should love CF's flat rate static serving be appropriate?
Am I missing something?
etatester 14 hours ago
bmarch 14 hours ago
explain 12 hours ago
mitxela 6 hours ago
tty456 17 hours ago
gavino 21 hours ago
soltanov 14 hours ago
Gualdrapo a day ago
Wait - using JS for dynamic content is understandable, but why using it for inserting a static SVG?
afavour a day ago
The whole article reads like something put together with AI, so maybe it’s not too surprising.
ajcp a day ago
0
```
var B = document.body, P, p; B.children[0].insertAdjacentHTML("afterend", "<p lang=ar dir=rtl>هذا النطاق مُخصص للاستخدام في أمثلة التوثيق دون الحاجة إلى إذن. هذه ليست خدمة، يُرجى تجنب الاعتماد عليها لأغراض الاختبار والمراقبة.</p><p lang=zh>该域名仅用于文档示例,无需获得许可。这并非一项服务,请勿将其用于测试和监控目的。</p><p lang=fr>L’usage de ce domaine est réservé à des exemples de documentation, sans autorisation préalable. Il ne s’agit pas d’un service ; son utilisation à des fins de test ou de surveillance est à éviter.</p><p lang=ru>Данный домен предназначен для использования в примерах документации без необходимости получения предварительного разрешения. Это не сервис; не рекомендуется его использование для тестирования и мониторинга.</p><p lang=es>Este dominio está destinado al uso en ejemplos de documentación sin necesidad de permiso. Esto no es un servicio; evitar utilizarlo para realizar pruebas o monitoreos.</p><a href=https://iana.org/help/example-domains>Learn more</a>"); P = [...B.querySelectorAll("p")]; P[0].lang = "en"; navigator.languages.some(l => p = P.find(p => p.lang == l.split("-")[0])); p = p || P[0]; B.prepend(p); B.insertAdjacentHTML("afterbegin", '<style>svg{display:block;margin:-2.75em auto 0;opacity:.55}p+p{font-size:.875em;opacity:.6}</style><svg viewBox=0,0,20,20 width=44 height=44 fill=currentColor aria-hidden=true><path fill=none stroke=currentColor stroke-width=1.3 stroke-linejoin=round d="M6 4H3v12q4 0 7 1.5-1-3.5-4-4.5V2q3.5 1 4 3v12.5q3-1.5 7-1.5V4q-4.5 0-7 1"/><g transform=rotate(-6,13.6,8.3)><path id=q d="M11.5 6.6h1.8v1.8l-1 1.6-.6-.3.8-1.3h-1z"/><use href=#q x=2.4 /></g></svg>')
```
1
```
<!doctype html> <html lang=en> <head> <meta charset=utf-8> <link rel=icon href=data:,> <meta name=viewport content="width=device-width,initial-scale=1"> <title>Example Domain</title> <style> html { color-scheme: light dark; background: light-dark(#eee,#222) }
body {
font: 16px/1.6 system-ui,sans-serif;
max-width: 26em;
margin: auto;
padding: 25vh 2em 2em;
text-align: center
}
</style>
</head>
<body>
<p>This domain is for use in documentation examples without needing permission. This is not a service; avoid relying on it for testing and monitoring purposes.</p>
<script src=/s.js></script>
</body>
</html>```
notpushkin 15 hours ago
Regardless, it’s a lot of code, so maybe better move it out to a pastebin/gist?
zamadatix a day ago
worg 21 hours ago
autoexec 21 hours ago
schiffern 19 hours ago
>pointless SVG image
Why aren't we all eating inexpensive gruel instead of "pointless" food? Same reason.It's good to have a little color/flavor/spice in life.
account42 14 hours ago
schiffern 8 hours ago
Good for them, and it's still better than nothing. Without it the page would almost looked broken it's so bare.
domh 11 hours ago
hiccuphippo 2 hours ago
dfox 13 hours ago
pona-a 17 hours ago
(This was when it had the language scroll though, I think moving the extras to JS should have resolved that issue; maybe I was misremembering the details too.)
example.com is not a user-facing service. I don't want to disparage the designer, but it's not meant to be pretty. It's meant to be small so you can copy its response to an automated test or visually verify its correctness, or just out of the bandwidth consideration you'd still be serving it to billions of requestors, even if you insist it's not meant to be used that way.
eugenekolo 16 hours ago
example.com is meant to be legally allowed to be used in text such as "You visit a website (example.com) to browse the internet"
It is not meant to be queried by automated tests or used as a service.
pona-a 12 hours ago
scubbo 16 hours ago
It is not, in fact, _meant_ to be used that way.
creatonez 15 hours ago
It's 4.5x the size of the original. Which sounds bad, until you notice this means it's 2540 bytes and serves the explanatory text in 6x the number of languages. And it's now served with brotli compression, for a total of 1713 bytes. Or 334 bytes if you only request the HTML (which still has a usable page with the full English version of the explanatory text), like a basic scraper or a health check would. So for the vast majority of traffic, it's now half the size of the old version.
I notice it's been through several revisions, the pre-2025 version of the site most people are familiar with is 1270 bytes because it didn't make use of any minification, and it also triggered an unnecessary `/favicon.ico` request because it didn't use the trick to cancel the request.
pipes 13 hours ago
hayleox 11 hours ago
Apple operates http://captive.apple.com, which returns `<HTML><HEAD><TITLE>Success</TITLE></HEAD><BODY>Success</BODY></HTML>`.
Microsoft operates http://www.msftconnecttest.com/connecttest.txt, which returns `Microsoft Connect Test`.
Mozilla operates http://detectportal.firefox.com, which returns `success`.
These are what these companies' respective browsers/operating systems use to check if they have an internet connection and are not stuck behind a captive portal. Given the enormous quantity of devices out in the world that are relying on these URLs to stay up, you can probably feel comfortable using these in your tests. If they do go down, good chance you'll see news articles about it before you notice your tests failing.
absynth 15 hours ago
eg If they put DNS, NTP etc on it... Likely billions per hour or something equally ludicrous.
Deluge is likely an exponential understatement.
ErroneousBosh 2 hours ago
monskov a day ago
failbuffer a day ago
johnnyanmac 21 hours ago
efilife 16 hours ago