MOH DAGGANE API ENGINE mohdaggane.com

Enterprise Domain-Locked API Licensing Engine

High-performance license verification and strict subdomain isolation designed for web and mobile software ecosystems.

Strict Subdomain Isolation Policy

Important

example.com and subdomains like app.example.com or portal.example.com are treated as completely separate applications with individual API keys. A key provisioned for the root domain will never authorize a subdomain app, and vice versa.

How the Licensing Engine Works

A simple, 4-step workflow that ensures applications only run on authorized domains and subdomains.

01

Admin Provisions Key

The administrator creates a secure API key in the admin panel and binds it strictly to an exact domain or subdomain (e.g. app.client.com).

Admin Only
02

App Sends Verification

On boot or periodic intervals, the client application sends a quick request to /admin/verify.php with its key and host domain.

Client Application
03

Domain Match & Isolation

The engine normalizes both hosts and strictly verifies that the requesting domain matches the authorized record. Subdomains are strictly prevented from cross-authorizing.

Gateway Verification
04

Live Authorization Response

The API returns a clean JSON response: 200 valid or 403 unauthorized / expired / suspended.

Execution Controlled

Live API Verification Sandbox

Test your license key and domain in real-time to inspect the API response.

Quick Demos:

Request Parameters

Method: POST / GET
POST https://mohdaggane.com/LicenseAPI/admin/verify.php

Accepts raw domain, URL with protocol, or port (e.g. https://app.client.com:8080/checkout). Subdomains remain strictly preserved.

Live JSON Response

Ready
// Click "Send Verification Request" or select a Quick Demo above to test.

Application Integration Code

Easily verify licenses inside your web application files.

Paste this snippet into your application's bootstrap or validation middleware. It dynamically submits the current host header to enforce domain and subdomain lock.


                

API Response Reference

Detailed status codes and JSON payloads returned by the verification endpoint.

200 OK status: "valid"

The license key exists, is active, has not expired, and matches the requesting domain exactly.

{
  "status": "valid",
  "message": "License verified successfully.",
  "allowed_domain": "app.client.com",
  "expires_at": "lifetime"
}
403 Forbidden "unauthorized"

The key is locked to another domain or subdomain (e.g. key bound to app.client.com accessed from client.com).

{
  "status": "unauthorized",
  "message": "License key is strictly locked to domain 'app.client.com'...",
  "registered_domain": "app.client.com",
  "client_domain": "client.com"
}
403 Forbidden "suspended" / "expired"

The key is temporarily paused by the admin or the expiration date has passed.

{
  "status": "suspended",
  "message": "License is currently marked as suspended."
}