ShieldX Toolly
Open a tool Donate
Home Home
Blog Blog
FAQ FAQ
Open a tool Donate
Back to cheatsheets
Developer

Domain Age & Trust Assessment

Check domain registration age from WHOIS/RDAP data — useful for trust and fraud assessment.

2 snippets Beginner domain-age-checker
domain ageRDAPWHOIStrustfraud

What you'll learn

  • Calculate domain age
  • Trust indicators

How to use these snippets

  1. Click the Copy button next to any snippet to copy it to your clipboard.
  2. Paste the code into your project, IDE, or terminal.
  3. Replace placeholder values (like example.com or your-secret) with your actual data.
  4. Review the code comments for important security notes and caveats.
  5. Try the interactive related tool to see the concept in action.
Code Snippets

Copy-paste code snippets

2 ready-to-use snippets for domain age & trust assessment. Click copy and paste into your project.

Calculate domain age
                async function getDomainAge(domain) {
  // Query RDAP for registration date
  const res = await fetch(
    `https://rdap.org/domain/${domain}`
  );
  const data = await res.json();

  const registration = data.events?.find(
    e => e.eventAction === 'registration'
  );

  if (!registration?.eventDate) return null;

  const created = new Date(registration.eventDate);
  const now = new Date();
  const ageInDays = Math.floor(
    (now - created) / (1000 * 60 * 60 * 24)
  );

  return {
    createdDate: created.toISOString().split('T')[0],
    ageInDays,
    ageInYears: (ageInDays / 365).toFixed(1),
    isRecent: ageInDays < 90,  // < 3 months = suspicious
  };
}
              
Trust indicators
                // Domain trust assessment factors
const TRUST_FACTORS = {
  ageThreshold: 365,        // > 1 year = more trustworthy
  recentThreshold: 90,      // < 3 months = suspicious
  expiryWarning: 30,        // < 30 days to expiry = risk
  minRegistrationYears: 2,  // Multi-year registration = legit
};

// Suspicious indicators:
// - Registered in last 90 days
// - Short registration period (1 year)
// - Expiring soon
// - Privacy protection on WHOIS
// - Country mismatch with claimed business location
// - No DNSSEC
              
Tool

Try this concept hands-on with the interactive tool.

100% Free · No signup · No cost

Generate something unguessable right now

148 bits of entropy, a crack-time estimate you can trust, and a clipboard that clears itself after 30 seconds.

Open the toolkit

Part of the Toolly ecosystem · secure.toolly.site