π΅οΈββοΈ Request Verifier
Block malicious requests that add nothing to your project.
About Request Verifier
What is Request Verifier?
This system will allow you to block access to your projects by bots and vulnerability scanning systems, among others.
This feature is available in BETA for paying users who use the Dymo API SDK in Node environments or make requests without SDKs.
Usage
Once we have created and configured our API object, it is quite simple, we just need to execute the following code.
import DymoAPI from "dymo-api";
const dymoClient = new DymoAPI({
apiKey: "PRIVATE_TOKEN_HERE",
// The values shown below are the default values.
// rules: {
// mode: "LIVE",
// allowBots: ["CURL", "CATEGORY:SEARCH_ENGINE", "CATEGORY:PREVIEW"],
// deny: ["FRAUD", "TOR_NETWORK"]
// }
});
const decision = dymoClient.protectReq(req);
Response
{
ip: "52.94.236.248",
userAgent: "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/138.0.0.0 Safari/537.36",
allow: true,
reasons: []
}
Authorization
String
required
At least one of the following parameters must be specified, without repeating any of them.
| Parameter | Type | Required | Description |
|---|---|---|---|
ip | String | β | IP address to verify |
userAgent | String | β | User Agent to verify |
allowBots | String[] | β | Bots allowed in requests |
deny | String[] | β | Access denial rules |