{
    "ok": true,
    "domain": "bcn.cat",
    "generated_at": "2026-08-10T10:57:55-05:00",
    "cache": {
        "hit": true,
        "ttl": 0
    },
    "score": {
        "total": 77,
        "label": "Good",
        "categories": {
            "dns": 70,
            "mail": 90,
            "security": 77,
            "network": 20,
            "availability": 100
        },
        "category_weights": {
            "dns": 25,
            "mail": 20,
            "security": 25,
            "network": 10,
            "availability": 20
        },
        "items": [
            {
                "category": "dns",
                "title": "IPv4 (A)",
                "max_points": 30,
                "earned_points": 30,
                "lost_points": 0,
                "detail": "1 IPv4 address(es) detected."
            },
            {
                "category": "dns",
                "title": "IPv6 (AAAA)",
                "max_points": 10,
                "earned_points": 0,
                "lost_points": 10,
                "detail": "0 IPv6 address(es) detected."
            },
            {
                "category": "dns",
                "title": "Name server redundancy",
                "max_points": 20,
                "earned_points": 20,
                "lost_points": 0,
                "detail": "3 NS record(s); 2 or more required."
            },
            {
                "category": "dns",
                "title": "SOA record",
                "max_points": 10,
                "earned_points": 10,
                "lost_points": 0,
                "detail": "Authoritative zone record."
            },
            {
                "category": "dns",
                "title": "DNSSEC chain",
                "max_points": 15,
                "earned_points": 0,
                "lost_points": 15,
                "detail": "Both DS and DNSKEY are required."
            },
            {
                "category": "dns",
                "title": "CAA policy",
                "max_points": 5,
                "earned_points": 0,
                "lost_points": 5,
                "detail": "Certificate authority restriction."
            },
            {
                "category": "dns",
                "title": "DNS propagation",
                "max_points": 10,
                "earned_points": 10,
                "lost_points": 0,
                "detail": "Agreement between public resolvers."
            },
            {
                "category": "mail",
                "title": "MX records",
                "max_points": 20,
                "earned_points": 20,
                "lost_points": 0,
                "detail": "1 MX record(s)."
            },
            {
                "category": "mail",
                "title": "SPF",
                "max_points": 25,
                "earned_points": 25,
                "lost_points": 0,
                "detail": "SPF policy published."
            },
            {
                "category": "mail",
                "title": "DMARC",
                "max_points": 25,
                "earned_points": 25,
                "lost_points": 0,
                "detail": "DMARC policy published."
            },
            {
                "category": "mail",
                "title": "DKIM",
                "max_points": 20,
                "earned_points": 20,
                "lost_points": 0,
                "detail": "A DKIM selector was verified."
            },
            {
                "category": "mail",
                "title": "MTA-STS",
                "max_points": 5,
                "earned_points": 0,
                "lost_points": 5,
                "detail": "Mail transport policy."
            },
            {
                "category": "mail",
                "title": "TLS-RPT",
                "max_points": 5,
                "earned_points": 0,
                "lost_points": 5,
                "detail": "TLS reporting policy."
            },
            {
                "category": "security",
                "title": "Valid TLS certificate",
                "max_points": 55,
                "earned_points": 55,
                "lost_points": 0,
                "detail": "91 day(s) remaining."
            },
            {
                "category": "security",
                "title": "Certificate lifetime",
                "max_points": 10,
                "earned_points": 10,
                "lost_points": 0,
                "detail": "Full points require at least 30 days remaining."
            },
            {
                "category": "security",
                "title": "HTTP security headers",
                "max_points": 35,
                "earned_points": 12,
                "lost_points": 23,
                "detail": "3 of 9 evaluated headers detected."
            },
            {
                "category": "network",
                "title": "PTR reverse DNS",
                "max_points": 30,
                "earned_points": 0,
                "lost_points": 30,
                "detail": "PTR not detected."
            },
            {
                "category": "network",
                "title": "IPv4 diversity",
                "max_points": 35,
                "earned_points": 20,
                "lost_points": 15,
                "detail": "Two or more IPv4 addresses receive full points."
            },
            {
                "category": "network",
                "title": "IPv6 connectivity",
                "max_points": 35,
                "earned_points": 0,
                "lost_points": 35,
                "detail": "AAAA availability."
            },
            {
                "category": "availability",
                "title": "DNS resolution",
                "max_points": 40,
                "earned_points": 40,
                "lost_points": 0,
                "detail": "At least one address family must resolve."
            },
            {
                "category": "availability",
                "title": "HTTP response",
                "max_points": 40,
                "earned_points": 40,
                "lost_points": 0,
                "detail": "HTTP/2 200 "
            },
            {
                "category": "availability",
                "title": "HTTPS final URL",
                "max_points": 20,
                "earned_points": 20,
                "lost_points": 0,
                "detail": "Final URL uses HTTPS."
            }
        ],
        "methodology": "Each category is normalized to 100. The total is the weighted sum: DNS 25%, Email 20%, Security 25%, Network 10%, Availability 20%.",
        "diagnostics": [
            {
                "level": "ok",
                "title": "IPv4 (A)",
                "detail": "1 IPv4 address(es) detected.",
                "category": "dns",
                "max_points": 30,
                "earned_points": 30,
                "lost_points": 0
            },
            {
                "level": "error",
                "title": "IPv6 (AAAA)",
                "detail": "0 IPv6 address(es) detected.",
                "category": "dns",
                "max_points": 10,
                "earned_points": 0,
                "lost_points": 10
            },
            {
                "level": "ok",
                "title": "Name server redundancy",
                "detail": "3 NS record(s); 2 or more required.",
                "category": "dns",
                "max_points": 20,
                "earned_points": 20,
                "lost_points": 0
            },
            {
                "level": "ok",
                "title": "SOA record",
                "detail": "Authoritative zone record.",
                "category": "dns",
                "max_points": 10,
                "earned_points": 10,
                "lost_points": 0
            },
            {
                "level": "error",
                "title": "DNSSEC chain",
                "detail": "Both DS and DNSKEY are required.",
                "category": "dns",
                "max_points": 15,
                "earned_points": 0,
                "lost_points": 15
            },
            {
                "level": "error",
                "title": "CAA policy",
                "detail": "Certificate authority restriction.",
                "category": "dns",
                "max_points": 5,
                "earned_points": 0,
                "lost_points": 5
            },
            {
                "level": "ok",
                "title": "DNS propagation",
                "detail": "Agreement between public resolvers.",
                "category": "dns",
                "max_points": 10,
                "earned_points": 10,
                "lost_points": 0
            },
            {
                "level": "ok",
                "title": "MX records",
                "detail": "1 MX record(s).",
                "category": "mail",
                "max_points": 20,
                "earned_points": 20,
                "lost_points": 0
            },
            {
                "level": "ok",
                "title": "SPF",
                "detail": "SPF policy published.",
                "category": "mail",
                "max_points": 25,
                "earned_points": 25,
                "lost_points": 0
            },
            {
                "level": "ok",
                "title": "DMARC",
                "detail": "DMARC policy published.",
                "category": "mail",
                "max_points": 25,
                "earned_points": 25,
                "lost_points": 0
            },
            {
                "level": "ok",
                "title": "DKIM",
                "detail": "A DKIM selector was verified.",
                "category": "mail",
                "max_points": 20,
                "earned_points": 20,
                "lost_points": 0
            },
            {
                "level": "error",
                "title": "MTA-STS",
                "detail": "Mail transport policy.",
                "category": "mail",
                "max_points": 5,
                "earned_points": 0,
                "lost_points": 5
            },
            {
                "level": "error",
                "title": "TLS-RPT",
                "detail": "TLS reporting policy.",
                "category": "mail",
                "max_points": 5,
                "earned_points": 0,
                "lost_points": 5
            },
            {
                "level": "ok",
                "title": "Valid TLS certificate",
                "detail": "91 day(s) remaining.",
                "category": "security",
                "max_points": 55,
                "earned_points": 55,
                "lost_points": 0
            },
            {
                "level": "ok",
                "title": "Certificate lifetime",
                "detail": "Full points require at least 30 days remaining.",
                "category": "security",
                "max_points": 10,
                "earned_points": 10,
                "lost_points": 0
            },
            {
                "level": "warning",
                "title": "HTTP security headers",
                "detail": "3 of 9 evaluated headers detected.",
                "category": "security",
                "max_points": 35,
                "earned_points": 12,
                "lost_points": 23
            },
            {
                "level": "error",
                "title": "PTR reverse DNS",
                "detail": "PTR not detected.",
                "category": "network",
                "max_points": 30,
                "earned_points": 0,
                "lost_points": 30
            },
            {
                "level": "warning",
                "title": "IPv4 diversity",
                "detail": "Two or more IPv4 addresses receive full points.",
                "category": "network",
                "max_points": 35,
                "earned_points": 20,
                "lost_points": 15
            },
            {
                "level": "error",
                "title": "IPv6 connectivity",
                "detail": "AAAA availability.",
                "category": "network",
                "max_points": 35,
                "earned_points": 0,
                "lost_points": 35
            },
            {
                "level": "ok",
                "title": "DNS resolution",
                "detail": "At least one address family must resolve.",
                "category": "availability",
                "max_points": 40,
                "earned_points": 40,
                "lost_points": 0
            },
            {
                "level": "ok",
                "title": "HTTP response",
                "detail": "HTTP/2 200 ",
                "category": "availability",
                "max_points": 40,
                "earned_points": 40,
                "lost_points": 0
            },
            {
                "level": "ok",
                "title": "HTTPS final URL",
                "detail": "Final URL uses HTTPS.",
                "category": "availability",
                "max_points": 20,
                "earned_points": 20,
                "lost_points": 0
            }
        ]
    },
    "dns": {
        "records": {
            "A": [
                "212.15.224.34"
            ],
            "AAAA": [],
            "CNAME": [],
            "MX": [
                "10 bcn-cat.mail.protection.outlook.com."
            ],
            "TXT": [
                ";; communications error to 69.64.44.20#53: timed out",
                "\"adobe-idp-site-verification=2e93eb1b-77c4-4b84-8afd-0495b23c123c\"",
                "\"Tj88ERRLU4jvZNWX6ThB+Ew5vc94CE9yOCksOnXQmNATxuasilo8cyNe/RlLORrYIANeZijaUnbqNptOlGEFkQ==\"",
                "\"MS=ms28480867\"",
                "\"google-site-verification=-x1APsq4vXwgFPzhAoRE0ZKk2XZsVDyiEgWFhVTgaCo\"",
                "\"9s299h26d4q91g0yb29mxhjrk5kgrrg9\"",
                "\"tmes=7c929828cc4fe870c936ec8c5354f91d\"",
                "\"v=spf1 include:%{ir}.%{v}.%{d}.spf.has.pphosted.com a mx ip4:212.15.224.0/24 ip4:212.15.228.0/24 ip4:212.15.230.0/24 ip4:213.171.253.194/32 ip4:212.170.51.17/32 ip4:46.31.59.60/32 ip4:80.169.246.130/32 ip4:195.88.152.47/32 ip4:212.15.233.81/32 include:spf\" \".protection.outlook.com -all\"",
                "\"B137-A6F6-BAFC-157E-0CD3-DDB4-69FC-9849\"",
                "\"nQd0OLJNvArF203dpitK5CFtROfXyZtFydYtDITPp3LOoHJcXQAkYb+/MrMa3Qs7B5Xg7azp+UQgXN7mZB8wXA==\"",
                "\"google-site-verification=myknkTyJA71ynyX8zneVE1xXV6AIWhfzpj3jvHVOF44\"",
                "\"7f859b29892c2f62691c7a39f1b9b291174d4c2c2f2675e3fbc43945f5b844bd\"",
                "\"b754c867-ec4c-4576-bfcd-5cc911e2abee\"",
                "\"_x9kepa59xts6y9yafglnxdsxcabrx6e\"",
                "\"e7bcf1e0-f476-445f-980c-bb9c84342289\"",
                "\"529b54dc-2d6c-4e6e-955e-f341132011b2\"",
                "\"eC7vaoxaOEl8r609PcDQrPCYsEc:1D1F-A6B7-85C2-52AF-0AE3-E836-2D60-F031\"",
                "\"ibmid=9b5858a8-00ac-485f-a377-80374f713de2\""
            ],
            "NS": [
                "ns1.bcn.cat.",
                "ns3bcn.entorno.es.",
                "ns2.bcn.cat."
            ],
            "SOA": [
                "ns2.bcn.cat. jnunez.bcn.cat. 2015063956 600 300 1296000 900"
            ],
            "CAA": [],
            "DS": [],
            "DNSKEY": [],
            "RRSIG": [],
            "NSEC": [],
            "NSEC3": [],
            "SRV": [],
            "NAPTR": [],
            "TLSA": [],
            "SSHFP": []
        },
        "ipv4": [
            "212.15.224.34"
        ],
        "ipv6": []
    },
    "mail": {
        "spf": "v=spf1 include:%{ir}.%{v}.%{d}.spf.has.pphosted.com a mx ip4:212.15.224.0/24 ip4:212.15.228.0/24 ip4:212.15.230.0/24 ip4:213.171.253.194/32 ip4:212.170.51.17/32 ip4:46.31.59.60/32 ip4:80.169.246.130/32 ip4:195.88.152.47/32 ip4:212.15.233.81/32 include:spf.protection.outlook.com -all",
        "dmarc": "v=DMARC1; p=none; fo=1; rua=mailto:dmarc_rua@emaildefense.proofpoint.com; ruf=mailto:dmarc_ruf@emaildefense.proofpoint.com",
        "dkim_selector": "selector1",
        "dkim_host": "selector1._domainkey.bcn.cat",
        "dkim": "v=DKIM1; k=rsa; p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCnbfW5IhdHb7mK13R4pH292VdA49+TAvHJ1crHXClklv+qxuwSysxadyQxF0Nspm81DOAhKhf0sDwUmQRs94o90A9O9eyvUOuuloBhO8bGwTGxkKn6dgx0mTEsBrmDXdx78Zh//IXVGFTN1OhndHcLUV7I8O3ihr8q0Z+UtG+8UQIDAQAB; n=1024,1453664996,1469389796",
        "spf_analysis": {
            "valid": true,
            "lookups": 4,
            "final": "-all",
            "message": "Within the estimated limit"
        },
        "dmarc_analysis": {
            "valid": true,
            "policy": "none"
        },
        "bimi": "",
        "mta_sts": "",
        "tls_rpt": ""
    },
    "advanced": {
        "ptr": "",
        "propagation": {
            "consistent": true,
            "results": [
                {
                    "provider": "Google",
                    "server": "8.8.8.8",
                    "result": [
                        "212.15.224.34"
                    ],
                    "time_ms": 190.55
                },
                {
                    "provider": "Cloudflare",
                    "server": "1.1.1.1",
                    "result": [
                        "212.15.224.34"
                    ],
                    "time_ms": 172.95
                },
                {
                    "provider": "Quad9",
                    "server": "9.9.9.9",
                    "result": [
                        "212.15.224.34"
                    ],
                    "time_ms": 190.58
                },
                {
                    "provider": "OpenDNS",
                    "server": "208.67.222.222",
                    "result": [
                        "212.15.224.34"
                    ],
                    "time_ms": 900.06
                },
                {
                    "provider": "AdGuard",
                    "server": "94.140.14.14",
                    "result": [
                        "212.15.224.34"
                    ],
                    "time_ms": 156.07
                }
            ]
        }
    },
    "ssl": {
        "available": true,
        "issuer": "Firmaprofesional S.A.",
        "subject": "*.bcn.cat",
        "valid_from": "2026-01-12T19:15:03-06:00",
        "valid_to": "2026-11-10T08:25:53-06:00",
        "days_remaining": 91,
        "san": [
            "*.bcn.cat",
            "bcn.cat",
            "www.bcn.cat"
        ],
        "protocol": "TLSv1.2",
        "cipher": "ECDHE-RSA-AES128-GCM-SHA256"
    },
    "http": {
        "url": "https://www.barcelona.cat/ca",
        "status": "HTTP/2 200 ",
        "http_version": "3",
        "headers": {
            "location": "https://www.barcelona.cat/ca",
            "server": "nginx",
            "connection": "Keep-Alive",
            "content-length": "0",
            "content-type": "text/html; charset=UTF-8",
            "date": "Mon, 10 Aug 2026 15:57:46 GMT",
            "strict-transport-security": "max-age=300; includeSubDomains; preload",
            "x-cache": "Miss from cloudfront",
            "via": "1.1 2cd8d4852079d6c5e6bb88ce998771c2.cloudfront.net (CloudFront)",
            "x-amz-cf-pop": "ORD51-P2",
            "alt-svc": "h3=\":443\"; ma=86400",
            "x-amz-cf-id": "Hkd67M8beyvYgEGyAWuKNZX9FfF_85jItU7L4--7sOWont3DLIKF6Q==",
            "x-drupal-route-normalizer": "1",
            "content-language": "ca",
            "x-content-type-options": "nosniff",
            "x-frame-options": "SAMEORIGIN",
            "expires": "Sun, 19 Nov 1978 05:00:00 GMT",
            "cache-control": "max-age=300, public",
            "x-generator": "Drupal 10 (https://www.drupal.org)",
            "last-modified": "Mon, 10 Aug 2026 15:57:46 GMT",
            "etag": "\"1786377466\"",
            "vary": "Cookie"
        },
        "security_checks": {
            "strict-transport-security": true,
            "content-security-policy": false,
            "x-content-type-options": true,
            "x-frame-options": true,
            "referrer-policy": false,
            "permissions-policy": false,
            "cross-origin-opener-policy": false,
            "cross-origin-embedder-policy": false,
            "cross-origin-resource-policy": false
        },
        "server": "nginx",
        "powered_by": ""
    },
    "webpage": {
        "url": "https://www.barcelona.cat/ca",
        "title": "El portal web oficial de Barcelona | Ajuntament de Barcelona",
        "description": "Portal oficial de Barcelona. Accediu als tràmits de l'administració, actualitat de serveis municipals, mobilitat, agenda cultural i recursos per viure i treballar a la ciutat.",
        "success": true,
        "error": "",
        "status": 206
    },
    "network": {
        "212.15.224.34": {
            "success": false,
            "country": "",
            "region": "",
            "city": "",
            "asn": "",
            "organization": "",
            "isp": ""
        }
    },
    "smtp": {
        "host": "bcn-cat.mail.protection.outlook.com",
        "ports": [
            {
                "port": 25,
                "open": false,
                "time_ms": 27.5,
                "banner": "",
                "error": "Network is unreachable"
            },
            {
                "port": 465,
                "open": false,
                "time_ms": 4019.6,
                "banner": "",
                "error": "Connection timed out"
            },
            {
                "port": 587,
                "open": false,
                "time_ms": 4032.6,
                "banner": "",
                "error": "Connection timed out"
            }
        ]
    },
    "visitor": {
        "ip": "216.73.217.62",
        "reverse": "",
        "country": "",
        "country_code": "",
        "region": "",
        "city": "",
        "latitude": null,
        "longitude": null,
        "isp": "",
        "organization": "",
        "asn": "",
        "timezone": "",
        "browser": "Other",
        "os": "Other",
        "language": "",
        "user_agent": "Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)",
        "is_bot": true,
        "cloudflare": false
    },
    "analysis_time_ms": 135.32
}