Hi
Product
Features
Security
Difference
Limits
FAQ
Pricing
Doc & Api
Get started free
NEXT-GEN LINK INFRASTRUCTURE

Stop guessing.
Start improving.

Deploy custom domains, ISO country routing, A/B split testing, PathLock™ PIN gates, and deterministic revenue attribution in under two minutes.

Get startedAccess our plans
Platform
  • Country & Device Routing
  • Weighted A/B Testing
  • Revenue Attribution (EPC)
  • Dynamic QR Studio
Security & Access
  • PathLock™ PIN Protection
  • Branded URL Masking
  • Click Limits & Expiration
  • Custom OpenGraph Cards
Developers
  • REST API & SDK Quickstart
  • Real-Time Click Telemetry
  • Signed Webhooks & Events
  • Full Documentation Hub
Legal & Trust
  • Privacy Policy (GDPR)
  • Terms of Service
  • No-Refund Policy
  • Dashboard Overview
LShorter Logo
LShorter© 2026 LShorter Inc.
Built on Cloudflare Edge Network
All 310+ Cloudflare Edge PoPs Operational
Privacy•Terms•Refunds
LShorter Logo
LShorter
HiHiProductProductFeaturesFeaturesSecuritySecurityDifferenceDifferenceLimitsLimitsFAQFAQPricingPricing
Doc & ApiDoc & Api
SDK & API Reference
Endpoints REST, clés Bearer et SDK TypeScript
Routage intelligent & Géo
Ciblage pays, OS mobile et redirection Edge
PathLock™ & Sécurité
Protection par code PIN, expiration et masquage
Télémétrie & Analytics
Flux de clics en direct, attribution et webhooks
RESSOURCESDocumentation

Documentation

Get started
LShorter Logo
LShorter
All guides & documentation

PathLock™ Restricted Browsing & Funnel Isolation

Lock visitors strictly into a designated landing page or sales funnel, preventing unauthorized directory exploration with instant edge security gating.

4 min read•Official Edge Documentation
PathLock™ Restricted Browsing & Funnel Isolation

Overview & Architecture

PathLock™ is an exclusive PRO security and anti-distraction feature designed for marketing teams, affiliate publishers, and funnel architects.

When enabled, PathLock™ displays the destination within a responsive, isolated viewer container equipped with an edge security gate.

Strict Single-Page mode prevents visitors from exploring other site directories (e.g. browsing the store catalog when shared a single product validation page).

Funnel & Subpaths mode permits seamless progression through multi-step funnels (e.g., /checkout, /confirmation, /upsell) while blocking escape routes outside the authorized prefix.

Key Principles

Core architectural pillars ensuring high performance, isolation, and security.

01Strict Single-Page Isolation
Locks visitor access strictly to the exact target path. Any attempt to navigate outside immediately triggers the Gate blocking screen.
02Funnel & Subpaths Scope
Permits all nested child routes (e.g. /funnel/step-1, /funnel/checkout) while safeguarding against broader domain exploration.
03Preserved Anchors & Query Parameters
In-page smooth scrolling (#features, #pricing) and tracking query parameters (UTMs, affiliate tokens) remain 100% operational.
04Collapsible Topbar
Offers visitors an unobtrusive experience with smooth collapsible topbar and an instant floating recovery pill.
SDK Integration

Implementation & SDK Examples

Ready-to-use TypeScript code snippets and configuration examples for your integrations.

1. Configuring PathLock™ Funnel Mode

Authorize an entire checkout funnel while barring visitors from exploring outside pages:

pathlock-funnel.ts
typescript
123456789
import { lshorter } from "@/lib/lshorter";
const link = await lshorter.links.create({
targetUrl: "https://shop.com/checkout/step-1",
slug: "secure-checkout",
pathLockMode: "funnel",
pathLockPrefix: "checkout",
pathLockMessage: "Please complete your order within this secure funnel.",
});
REST API Specification

API Endpoints & Reference

Direct HTTP request methods, parameters schema, authentication, and responses.

POST

Create Link with PathLock™

Bearer Token required60 to 1,400 req/min (by plan)
https://lsho.cc/api/v1/links

Create a short link configured with PathLock™ single-page or funnel isolation.

Request Body Parameters

ParameterTypeRequiredDescriptionExample
pathLockModestringOptionalPathLock restriction mode: 'off' | 'strict' | 'funnel'. (PRO plan)Default: offstrict
pathLockPrefixstringOptionalAuthorized URL path prefix to whitelist for visitor browsing.product-page
pathLockMessagestringOptionalCustom notice message presented when visitor triggers security gate.Navigation restricted to this presentation page.

Request Examples

bash
12345678910
curl -X POST "https://lsho.cc/api/v1/links" \
-H "Authorization: Bearer $LSHORTER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"targetUrl": "https://brand.com/exclusive-deal",
"slug": "deal-2026",
"pathLockMode": "strict",
"pathLockPrefix": "exclusive-deal",
"pathLockMessage": "Access is restricted to this exclusive presentation."
}'

Response Payload

201 CreatedPathLocked short link successfully created.
response-201.json
json
123456789
{
"id": "link_pl_98124",
"slug": "deal-2026",
"shortUrl": "https://lsho.cc/deal-2026",
"targetUrl": "https://brand.com/exclusive-deal",
"pathLockMode": "strict",
"pathLockPrefix": "exclusive-deal",
"pathLockMessage": "Access is restricted to this exclusive presentation."
}

PathLock Link Payload

Link configuration with active PathLock isolation:

response.json
json
12345678910
{
"id": "link_pl_98124",
"slug": "secure-checkout",
"shortUrl": "https://lsho.cc/secure-checkout",
"targetUrl": "https://shop.com/checkout/step-1",
"pathLockMode": "funnel",
"pathLockPrefix": "checkout",
"pathLockMessage": "Please complete your order within this secure funnel.",
"isCloaked": true
}

Recommended Best Practices

Expert tips to maximize performance, resilience, and link security.

Recommendation 01

Use 'Strict Single-Page' when sharing one-off product reviews, NDAs, or partner validations.

Recommendation 02

Use 'Funnel & Subpaths' with a common root prefix (e.g., 'checkout' or 'webinar') to permit natural multi-step user flows.

Recommendation 03

Provide a friendly, context-specific block message so visitors understand why wider site navigation was gated.

Previous guideSocial Sharing & Dynamic Open Graph API

Related Guides & APIs

Quickstart & REST API Reference
Quickstart & REST API Reference
Integrate intelligent edge link shortening, real-time analytics, and conversion tracking with our high-performance REST API and TypeScript SDK.
Read guide & API
Dynamic Routing & Edge Geolocation
Dynamic Routing & Edge Geolocation
Redirect visitors to contextual URLs based on their origin country or continent with ultra-low latency.
Read guide & API