Dfence Documentation
Welcome to the Dfence documentation.
Dfence is a real-time account-sharing detection and prevention platform designed for SaaS publishers. It helps companies protect their revenue, ensure fair usage, and convert unauthorized account sharers into paying customers.
Dfense provides a complete client-side JavaScript SDK and a high-performance Detection API that can identify concurrent access attempts within milliseconds.
The platform is lightweight, privacy-friendly, fully customizable, and integrates seamlessly into any web or mobile application.
What Dfence Does
Dfence monitors access patterns per user and detects when an account is being used from multiple devices or sessions simultaneously. When suspicious activity is detected, Dfence can:
- Block access in real time
- Trigger custom UI to inform users
- Prompt an upgrade to recover lost revenue
- Unblock sessions automatically once the sharing stops
Behind the scenes, the Dfence SDK manages the entire lifecycle: device identification, session start/stop, visibility handling, and communication with the API.
Documentation Overview
This documentation is structured into several key sections:
Getting Started
A quick introduction to integrating Dfence. Learn how to install the SDK, configure your first project, and start detecting account sharing in just a few minutes.
Detection modes
Understand the two core detection strategies, concurrence and device-limit. Learn how each mode works, when to use them, and how they prevent unauthorized access in real time.
Customise the blocking
Take full control over the user experience when concurrent access is detected. Implement your own custom UI, modals, or overlays that match your brand and messaging.
JavaScript SDK
Everything you need to use the Dfence SDK: configuration options, lifecycle behavior, device identification, and how to customize blocking and unblocking UX.
FAQ
Answers to the most common questions about integration, behavior, performance, and troubleshooting, all in one place.
Who Is This Documentation For?
- Frontend developers integrating the SDK
- Product teams designing the user experience around blocking
- Growth & revenue teams converting account sharers into paying users
- Security teams monitoring unauthorized activity
Need Help?
Dfence is designed to be simple to implement, but if you need assistance, feel free to reach out through your customer success manager or open a support request.