01 / PROVE
Intent leaves a trace.
A real customer has no reason to use a signed honeytoken. Application-native traps turn impossible actions into evidence—not another guess about an IP address.
proof: verifiedTurn proven hostile intent into a closed door. PharosHub embeds deception and route-level containment inside your Next.js or Express app—right beside your WAF.
Local
request decision
Proof
before containment
Scoped
to named routes
POST /api/payments → 403Open for customers.
Closed to proven threats.
01 / PROVE
A real customer has no reason to use a signed honeytoken. Application-native traps turn impossible actions into evidence—not another guess about an IP address.
proof: verified02 / CONTAIN
Once proof crosses your policy gate, the guard denies that source access to the sensitive routes and methods you configured. The decision runs inside your application.
POST /api/payments → 40303 / CONTINUE
Public pages and unlisted routes stay available. Decisions expire automatically; evidence and containment state synchronize in the background, without holding up customer requests.
GET /products → allowedThe control your edge cannot provide
A firewall evaluates requests one by one. PharosHub remembers behavior across the session, creates actions a real customer would never take, and turns that proof into a narrow enforcement decision inside the application.
185.220.••.••
3 traps · 1 token · 46 seconds
7 protected requests denied across admin, auth, and payment actions.
One embedded control plane
From the first impossible action to the last denied request, the same runtime keeps the context and the evidence.
Once deception proves hostile intent, PharosHub denies that source access to the sensitive routes you name—admin, authentication, payment mutations, or internal APIs.
Route policies · method policies · automatic expiry
Believable routes, admin flows, files, and credentials turn reconnaissance into proof. Persistent actors are engaged while ordinary users never enter the decoy surface.
Tripwires · decoys · signed honeytokens
Seal every approved release outside your infrastructure. If hosting, CI, or a CDN is compromised, the altered application can no longer verify as the build you shipped.
Pages · scripts · release manifests
A containment decision made on one process follows the attacker to the others. Every prevented action joins the same evidence ledger instead of disappearing into edge logs.
Cross-instance state · evidence · release
An approved release has a verifiable identity.
Release integrity
PharosHub signs the pages, scripts, and manifest that define a trusted deployment. A modified copy can look identical to a customer and still fail verification immediately.
import { NextResponse } from "next/server";
import { createNextGuard } from "@pharoshub/guard/next";
const guard = createNextGuard({
siteKey: process.env.PHAROS_SITE_KEY,
secret: process.env.PHAROS_SECRET,
enforcement: {
enabled: true,
protectedRoutes: [
"/admin/*",
{ path: "/api/payments", methods: ["POST"] }
]
}
});
export async function proxy(request, event) {
return (await guard(request, event)) ?? NextResponse.next();
}Application-native by design
The guard evaluates cached, short-lived containment state inside the application process. Existing decisions remain active until their configured expiry. Synchronization and evidence reporting are detached; the customer’s request never waits on PharosHub.
Read the five-minute install guideQuestions before installation
Active defense should be explainable before it enters a production request path.
No. A WAF filters individual requests at the edge. PharosHub uses application-owned tripwires and signed canaries to establish intent, then applies a short-lived decision to the sensitive routes you explicitly configured. The two layers are complementary.
A repeated sequence across distinct trap routes, exploit-shaped activity corroborated by other probing, a valid signed honeytoken, or definitive proof supplied by your own application. IP reputation, geography, and a user-agent string cannot open containment by themselves.
No. The decision applies only to the routes and HTTP methods in your protectedRoutes policy. Public pages and every unlisted route remain available to that source, and the decision expires automatically.
Request decisions use local in-memory state and never wait for the collector. Existing local decisions continue until their TTL, reporting retries from a bounded queue, and ordinary application traffic continues.
The package includes an Express-compatible middleware adapter and a separate Web Crypto adapter for Next.js Proxy or Middleware environments. The policy and evidence format are shared between them.
Start with active defense
Defend starts at $55/month for one application. Cancel from the console.