TrafMark - Powerful Platform
for CPA/CPC Traffic Arbitrage

System Requirements & Architecture

This section provides full technical details for clients purchasing the Self-hosted license of TrafMark. Below you will find recommended server specifications, technology stack, database schema, and file architecture. TrafMark is designed to be flexible, scalable, and easy to deploy on your own infrastructure.

Server Requirements

TrafMark can be deployed on a modern VPS or dedicated server. Recommended minimum server configuration:
  • CPU: 2 vCPU (4 vCPU recommended for high traffic)
  • RAM: 4 GB (8 GB recommended for production)
  • Disk: 40 GB SSD (expandable based on logs & offers)
  • OS: Linux (Ubuntu 20.04+, Debian 10+ recommended)
  • Web Server: Apache 2.4+ or Nginx (with PHP-FPM)
  • PHP: 5.6+ (currently stable on PHP 5.6; planned upgrade to PHP 8.1+)
  • Database: MariaDB 10.6+

Technology Stack

TrafMark is built on a modern LAMP/LEMP stack, ensuring flexibility and broad compatibility:
  • Backend: PHP 5.6 (upgradeable to PHP 8.1+)
  • Frontend: JavaScript, Bootstrap 5, HTML5, CSS3
  • Database: MariaDB 10.6+
  • Integrations: REST API (CPA networks, AI services, tracking systems)

Directory Structure

TrafMark follows a logical and clean directory structure:
  • /assets/ — Styles, fonts, JavaScript files
  • /img/ — Uploaded images (offer logos, favicons, etc.)
  • /lend/ — Landing page templates (L1, L2)
  • /Log/ — Log and tracking files
  • /scripts_redirect/ — Redirect logic (clickId, UTM handling)

Core Files Overview

Key core files of the TrafMark platform:
  • functions.php — Core function library
  • view_analitics_1.php — Inbound analytics
  • view_reject.php / view_reject_2.php — Offer display for storefronts
  • view_reject_lending.php — Storefront customization
  • page-login.php, index.php — User entry points

Database Schema (ER Model)

The database is designed with a clear ER model to ensure scalability and performance:
  • [users] — User accounts (id, email, password, role, created_at)
  • [configs_web] / [configs_2_web] — Storefront configurations
  • [credit_info] / [credit_2_info] — Offers
  • [lids_in] — Incoming leads
  • [lids_out] — Outgoing leads
  • [short_links] — Short URLs
  • [short_clicks] — Short URL click statistics

Integration Capabilities

TrafMark is designed to easily integrate with third-party platforms and services:
  • CPA Network integrations via REST API
  • AI Services integration (ChatGPT-4, SEO modules)
  • Tracking systems and postback handling (ClickId support)

Recommended Server Configuration

For production deployments, the following configuration is recommended:
  • PHP 7.4 or higher (PHP 8.1+ supported soon)
  • MariaDB 10.6+
  • Apache 2.4+ with mod_rewrite enabled, or Nginx with PHP-FPM
  • SSL certificate (Let's Encrypt or commercial SSL)

Customization & Scalability

TrafMark’s codebase is modular and well-structured, making it easy to customize and extend:
  • Custom storefront themes (CSS/HTML templates in /lend/)
  • Additional API integrations (CPA networks, CRMs)
  • Custom tracking scripts and advanced reporting
  • Database is optimized for handling high traffic (millions of clicks/day)
The platform can be horizontally scaled by running on load-balanced environments and optimized database setups.
© 2025, Barvy Digital LTD. All rights reserved