Link Risk
Is a link someone submitted known phishing or malware, a brand look-alike, or hiding where it leads? About Link Risk
Switch: call it when a link is submitted. Publish allow, hold review, refuse deny. Up to 100 links in one call; none is stored.
The call
POST /v1/url/check when a user saves a listing, message, profile or payout page with a link. Any link is safe to check.
curl https://signetsentry.com/v1/url/check \
-H "Authorization: Bearer sk_live_..." \
-H "Content-Type: application/json" \
-d '{"url":"http://paypa1.com/signin","session_id":"s_..."}'
| Field | Meaning |
|---|---|
url | Required. As submitted, up to 2048 characters. Without a scheme it is read as http://. |
session_id | The session it came from. Adds the device. |
The answer
{
"check_id": "lk_bGlua2NoZWNrNDI", "decision": "review", "risk_score": 60,
"reason_codes": ["LINK_LOOKALIKE_DOMAIN"],
"reasons": [{ "code": "LINK_LOOKALIKE_DOMAIN", "description": "The address is a misspelling of paypal.com" }],
"link": {
"valid": true, "url": "http://paypa1.com/signin", "scheme": "http", "host": "paypa1.com", "unicode_host": null,
"registrable_domain": "paypa1.com", "https": false, "known_malicious": false, "lookalike_of": "paypal.com",
"punycode": false, "homograph": false, "ip_host": false, "private_address": false, "shortener": false,
"free_hosting": false, "suspicious_tld": false, "credentials_in_url": false, "redirects_to": null,
"executable_download": false, "obfuscated": false
},
"test": false
}
| Field | Meaning |
|---|---|
decision | allow publish. review hold for a moderator, or show it unclickable. deny refuse it. |
check_id | For your logs. |
risk_score | 0 to 100, for sorting. |
reason_codes, reasons | Why. Empty when nothing stood out. |
link.valid | false for text that is not a web link, such as mailto:: deny. javascript: and data: links are valid but denied. |
link.url | One standard form, without user name, password or #fragment. Store and show this. |
link.host, link.unicode_host | The host (xn-- form), and how it reads in its own alphabet. |
link.registrable_domain | The site it belongs to: account-verify.top for paypal.com.account-verify.top. Null for an IP address. |
link.known_malicious | Known phishing or malware. |
link.lookalike_of | The brand domain it imitates, or null. |
link.punycode, link.homograph | An international name; one with look-alike letters. |
link.ip_host, link.private_address | An IP address; a private or local one. |
link.shortener | A URL shortener. |
link.free_hosting | Free hosting, a site builder, a tunnel or dynamic DNS. |
link.suspicious_tld | An ending often used for abuse. |
link.credentials_in_url | A user name or password before the host (user@host). |
link.redirects_to | Another address the link may forward to, or null. |
link.executable_download | Ends in a program, script or installer. |
link.obfuscated | Encoded or written to disguise it. |
link.domain_age_days, link.newly_registered | The domain’s age. null means unknown, not old. |
link.network_reported | Reported by others in the fraud network. Always false outside it. |
test | true for a test key. |
Reason codes
| Code | Meaning |
|---|---|
LINK_KNOWN_MALICIOUS | Known phishing or malware. |
LINK_NETWORK_REPORTED | Reported by others in the fraud network. |
LINK_HOMOGRAPH | Look-alike letters that imitate a brand. |
LINK_LOOKALIKE_DOMAIN | A misspelled brand site. |
LINK_BRAND_IMPERSONATION | A brand’s name on someone else’s site. |
LINK_BRAND_IN_PATH | A brand’s name in the path of someone else’s site. |
LINK_MIXED_SCRIPT | Letters from different alphabets. |
LINK_CREDENTIALS_IN_URL | A user name, password or other site’s name before an @. |
LINK_UNSAFE_SCHEME | A script, file or data link. |
LINK_IP_HOST | A bare IP address. |
LINK_PRIVATE_ADDRESS | A private or local address. |
LINK_EXECUTABLE_DOWNLOAD | Downloads a program, script or installer. |
LINK_EMBEDDED_REDIRECT | Carries another address it may forward to. |
LINK_SHORTENER | A shortened link. |
LINK_OBFUSCATED | Encoded or written unusually. |
LINK_NEW_DOMAIN | A recently registered domain. |
LINK_SUSPICIOUS_TLD | An ending often used for abuse. |
LINK_FREE_HOSTING | Free hosting or a site builder. |
LINK_DEEP_SUBDOMAINS | An unusual number of subdomains. |
LINK_NONSTANDARD_PORT | An unusual port. |
LINK_DEVICE_HIGH_RISK | The session’s device is high risk. |
LINK_DEVICE_ELEVATED_RISK | The session’s device is worth a closer look. |
LINK_INVALID | Not a link that can be opened. |
Check many
POST /v1/url/check/batch with {"urls": [...], "session_id": "s_..."}: 1 to 100 links, duplicates checked once. The answer has count, assessments_used, flagged (not allow) and results of {url, result}.
Report a link
POST /v1/url/report shares a bad link with the fraud network. It is free. If your account is outside it, join with PUT /v1/privacy and {"consortium_enabled": true} (Growth and Scale).
| Field | Meaning |
|---|---|
url | The link. |
malicious | true (default) reports; false withdraws your report. |
scope | site (default) or link. Well-known sites, shorteners and free hosts can only be reported by link. |
Test values
| Link | Answer |
|---|---|
https://link-test.example/allow | allow |
https://link-test.example/review | review, LINK_SHORTENER |
https://link-test.example/deny | deny, LINK_KNOWN_MALICIOUS |
| Any other | The live checks. |
Limits and errors
1 assessment per valid link; text that is not a link is free. Also the common errors.
| Status | Code | When |
|---|---|---|
| 400 | invalid_request | url is missing or too long, or the batch is empty. |
| 400 | too_many_urls | More than 100 in a batch. |
| 403 | network_not_enabled | A report from outside the network. |
| 404 | session_not_found | The session is not your account’s. |
| 429 | quota_exceeded | The month’s quota is used up, or is smaller than the batch. |
Nothing about the link: what is stored. Any outside lookup sends only the domain name, never the link.