API

OFDEP HTTP API Integration

OFDEP is a free fraud detection API. The API supports the following parameters:

Parameter Name Parameter Function
ip The IPv4 address to query
email The Email address to query
username The username to query
address The address to query when calculating account creation fraud
lic License key to enable more than 100 monthly queries

Only one parameter is required. Queries are simple GET requests, as shown below. An OFDEP score of 2 indicates a medium risk associated with that transaction. A score of 3 or higher indicates a high risk of fraud or attack.

# curl “http://wafsec.com/api?ip=216.218.134.12&email=test%40test.com&username=test&address=chicago%2cillinois”
{“asname”:”Hurricane Electric, Inc.”,”asnumber”:”AS6939″,”city”:”Fremont”,”country”:”US”,”distance”:2952.348633352,
“email”:”test@test.com”,”honeypot_factor”:
“34″,”hostname”:
“tor-exit.altsci.com”,”ip”:”216.218.134.12″,”latitude”:”37.515499″,”longitude”:”-121.896202″,”score”:”37″,
“tor_factor”:”3″,”username”:”test”}

Several example code implementations are linked to below:

ModSecurity+Lua
PHP
C#

You can submit malicious IP, email and usernames via the API as well as follows:

# curl “http://wafsec.com/ipa?ip=216.218.134.12&email=test%40test.com&username=test”