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.
/v1/score/trustAPI referenceTrust Score: Evaluate domain trustworthiness from 7 signals
/v1/domain/whoisAPI referenceWHOIS Lookup: Get domain registration data via RDAP — the post-WHOIS standard. Detects privacy-proxy registrants and GDPR redactions.
/v1/ip/geolocationAPI referenceIP Geolocation: Get location, ASN, and org for an IP
/v1/ip/bogonAPI referenceBogon Check: Check if IP is private, reserved, or bogon
/v1/score/emailAPI referenceEmail 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
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
SOC Alert Enrichment
Add domain and IP context to incident alerts
Brand Protection / LegalDomain Portfolio Protection
Investigate lookalike domains and changes to domains you own
MSP Owner / IT Consultant / vCISOClient Security Assessment for MSPs
Create a repeatable public-domain assessment for MSP clients