fix[domains]: Add CDN provider detection with dynamic display names

Implements generic CDN detection service supporting Cloudflare, Fastly,
and Bunny CDN. Replaces hardcoded "Behind Cloudflare" text with
dynamic provider names and adds IP range validation for comprehensive
CDN detection.
This commit is contained in:
Torsten Dittmann
2025-06-01 23:03:00 +02:00
parent 2619cb49d1
commit 88e862544b
3 changed files with 645 additions and 30 deletions

View File

@@ -119,6 +119,7 @@ export const ShowDomains = ({ id, type }: Props) => {
isValid: result.isValid,
error: result.error,
resolvedIp: result.resolvedIp,
cdnProvider: result.cdnProvider,
message: result.error && result.isValid ? result.error : undefined,
},
}));
@@ -355,7 +356,7 @@ export const ShowDomains = ({ id, type }: Props) => {
<>
<CheckCircle2 className="size-3 mr-1" />
{validationState.message
? "Behind Cloudflare"
? `Behind ${validationState.cdnProvider}`
: "DNS Valid"}
</>
) : validationState?.error ? (