php-router

๐Ÿ›ก v.php โ€” Enterprise Secure PHP Router

Zero Trust Routing โ€ข Signed URLs โ€ข Anti-Replay โ€ข Bot Defense โ€ข Stealth Security


๐Ÿš€ What is v.php?

v.php is a high-security, single-file PHP router designed for hostile environments.

It transforms unsafe direct access:

/dashboard.php

into a fully verified, signed, behavior-protected request pipeline:

User โ†’ Signed URL โ†’ Security Engine โ†’ Safe Resource Access

Every request is treated as untrusted โ€” and must prove legitimacy.


๐Ÿ“ธ Control Panel

Control Panel

The built-in control panel provides:

Access panel:

/?__cp__

๐Ÿ”ฅ Demo (Request Flow)

Demo Flow

Typical flow:

User โ†’ Direct File Request
     โ†’ Router Intercepts
     โ†’ Signed URL Generated
     โ†’ Redirect
     โ†’ Secure Access

๐Ÿ”ฅ Why This Stands Out

Unlike traditional routers, v.php is built with a security-first architecture, not as an afterthought.

Core advantages:


๐Ÿง  Security Model (Zero Trust)

Request
 โ†“
Signature Validation
 โ†“
Token Replay Protection
 โ†“
Rate Limiting
 โ†“
Bot Scoring Engine
 โ†“
Stealth Ban System
 โ†“
Secure File Resolution
 โ†“
Response

Each layer independently enforces security โ€” failure at any step stops execution.


โš™๏ธ Core Features

๐Ÿ”‘ Signed URL System


๐Ÿ” Replay Protection Engine

Each token is bound to:

Prevents:


๐Ÿค– Adaptive Bot Detection

Event Score
Invalid signature +10
Replay attempt +15
Device mismatch +3
Token leak +20

๐Ÿ‘ป Stealth Ban System

Blocked users receive:

HTTP 404 Not Found

No indication of restriction.


๐ŸŒ Network Intelligence Layer

Detects:


๐Ÿ“Š Built-in Control Panel

/?__cp__

Provides monitoring, logs, and route management.


๐Ÿ— Architecture Philosophy

Never trust the request. Always verify.


๐Ÿ“‚ Project Structure

project-root/

v.php
.htaccess
error.html

cp.jpeg (Demo)
cp.gif (Demo)

.runtime/
  m.json
  u.json
  b.json
  r.json
  k.json
  x.json

  a.log
  s.log

โš™๏ธ Configuration (Inside v.php)

define('SIGN_SECRET', 'CHANGE_THIS');
define('SIGNED_TTL', 7200);
define('URL_MODE', 'short');
define('CP_PASSWORD', 'admin1234');

๐Ÿ” SIGN_SECRET


๐Ÿ”— URL Modes

Mode Example
short /?r=TOKEN
classic /v.php?id=1&sig=...

๐Ÿ”„ Auto-Signing Flow

User โ†’ direct file
     โ†’ router intercepts
     โ†’ signed URL generated
     โ†’ redirect โ†’ secure access

๐Ÿšฆ Rate Limiting

40 requests / 60 seconds per IP

๐Ÿ“Š Logging System

Access Log

Tracks usage and behavior

Security Log

Tracks attacks and blocks


๐Ÿš€ Installation

1. Upload Files

v.php
.htaccess
error.html

2. Create Runtime Directory

mkdir .runtime
chmod 777 .runtime

3. Configure


4. Done โœ…


๐Ÿ”’ Apache Setup


โšก Performance Design


๐Ÿงช Ideal Use Cases


๐Ÿ“ฌ Contact

Email: psvineet@zohomail.in


๐Ÿ“œ License

MIT License


โญ Support

Give a star โญ if you find this useful.