Skip to main content
Enterprise|Brand Protection / Legal

Domain Portfolio Protection

Investigate lookalike domains and changes to domains you own

Investigate lookalike domains and changes to domains you own. Use the API workflow below to collect dated findings, review their scope, and decide which follow-up checks your team needs.

Implementation example by the EdgeDNS team · Updated

The Challenge

Lookalike registrations and unexpected changes need contextual review before escalation.

The Solution

Generate candidate lookalikes with the typosquat endpoint, then inspect selected candidates using registration, threat, DNS, and certificate checks. Use separate watches for supported endpoints on domains in your monitoring scope. Candidate scans are bounded and do not cover every new registration.

Endpoints Used

Combine these EdgeDNS endpoints to build this solution.

GET
/v1/domain/typosquatsAPI reference

Typosquatting Detection: Detect typosquat domains that could impersonate your brand

GET
/v1/domain/whoisAPI reference

WHOIS Lookup: Get domain registration data via RDAP — the post-WHOIS standard. Detects privacy-proxy registrants and GDPR redactions.

GET
/v1/domain/sslAPI reference

SSL Certificates: Analyze active SSL/TLS certificate details

GET
/v1/score/trustAPI reference

Trust Score: Evaluate domain trustworthiness from 7 signals

GET
/v1/dns/lookupAPI reference

DNS Lookup: Query any of 22 DNS record types or ALL at once with DNSSEC validation

POST

Create Watch: Create separate endpoint watches for DNS, registration, or certificate changes

GET
/v1/watches/:id/alertsMonitoring API reference

Watch Alerts: Get alerted to WHOIS changes, DNS modifications, and cert renewals

What this workflow helps you do

Triage candidate lookalikes

Review generated candidates and available DNS evidence.

Collect supporting observations

Keep registration and certificate findings with your investigation.

Watch owned domains

Store organization-scoped history for supported endpoints. Public DNS and upstream queries remain observable.

Code Example

Investigate lookalike domains and changes to domains you own

javascript
const headers = { Authorization: 'Bearer YOUR_API_KEY' };
const checks = [
  {
    "path": "/v1/domain/typosquats",
    "params": {
      "domain": "example.com"
    }
  },
  {
    "path": "/v1/domain/whois",
    "params": {
      "domain": "example.com"
    }
  },
  {
    "path": "/v1/score/trust",
    "params": {
      "domain": "example.com"
    }
  }
];

// Run sequentially to keep concurrency bounded. API tier restrictions apply.
for (const { path, params } of checks) {
  const url = new URL(path, 'https://api.edgedns.dev');
  url.search = new URLSearchParams(params).toString();
  const response = await fetch(url, { headers });
  const result = await response.json();
  if (!response.ok) {
    throw new Error(`${path}: ${response.status} ${result.error?.message ?? 'Request failed'}`);
  }
  // Keep the response metadata and any partial/unknown findings for review.
  console.log(path, result);
}

Learn More

Explore industry standards and best practices related to this use case.

Ready to build Domain Portfolio Protection?

Get started with 200 free API requests per month. No credit card required.

Other Use Cases

Domain Portfolio Brand Protection | EdgeDNS