FlagActivity Last updated: 27. Oct 2023

API only function

FlagActivity" flags suspicious request patterns to deter potential brute force attacks. After a set number of flagged requests from a single IP, it blocks that IP to protect the platform.

Parameters

This function takes no parameters

Returns

Boolean false if only flagged, true if IP is now blocked.

Example

Code example (JS)

JS is normal JavaScript either running in the browser or on the Docly™ server.
// ... perform login request
if (loginFailed) {
    docly.flagActivity(); // Ticks the "flag" counter for the client IP
    
    // Return login failed result
    // ...
}