Skip to main content
E-commerce|Fraud Analyst / Risk Manager

E-commerce Fraud Detection

Add domain and IP signals to transaction risk review

Add domain and IP signals to transaction risk review. 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

New domains and unusual IP signals can merit review, but legitimate customers can exhibit the same characteristics.

The Solution

Enrich selected transactions using domain registration, trust, email, geolocation, and bogon checks. Define a timeout and fallback for checkout, and evaluate false positives against your own transaction outcomes before enforcing a rule.

Endpoints Used

Combine these EdgeDNS endpoints to build this solution.

GET
/v1/score/trustAPI reference

Trust Score: Evaluate domain trustworthiness from 7 signals

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/ip/geolocationAPI reference

IP Geolocation: Get location, ASN, and org for an IP

GET
/v1/ip/bogonAPI reference

Bogon Check: Check if IP is private, reserved, or bogon

GET
/v1/score/emailAPI reference

Email Score: Rate email security (SPF, DKIM, DMARC)

What this workflow helps you do

Collect contextual signals

Combine domain and IP findings with your existing fraud data.

Avoid single-signal declines

Domain age or network classification alone does not establish fraud.

Measure your policy

Evaluate latency and false positives on representative transactions.

Code Example

Add domain and IP signals to transaction risk review

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

// 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 E-commerce Fraud Detection?

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

Other Use Cases

E-commerce Fraud Detection with IP & Email Risk | EdgeDNS