Allowing */.well-known/* allows Let's Encrypt (and likely
similar) services to access static files for ACME validation
during the automated TLS certificate renewal process.
my $ua = $env->{HTTP_USER_AGENT} // '';
return [ 403, [], [] ] if $ua =~ /$bad_ua/o;
my $uri;
- if ($env->{PATH_INFO} !~ /\.css\z/ &&
+ if ($env->{PATH_INFO} !~ m!(?:/\.well-known/|\.css\z)! &&
$ua =~ m!\A(?:Mozilla|Opera)/! &&
defined($uri = $env->{REQUEST_URI}) &&
($env->{HTTP_REFERER} // '') !~ /\Q$uri\E\z/ &&