Back to projects

Time Locked PDF

Time-restricted document access for exam papers and scheduled releases. Server-side time validation, signed URLs, and an embedded viewer that resists clock manipulation, replay attacks, and unauthorised downloads.

Built With

HTML/JSVercel FunctionsSigned URLsPDF.js

Project Timeline

Use Case Discovery

Apr 2024

Identified the need for time-restricted document access — exam papers, timed assignments, and scheduled content releases that shouldn't be reachable outside a specific window.

Security Architecture

May 2024

Designed the access flow: server-side time verification to defeat client-clock manipulation, signed URLs for document access, and automatic expiration.

Serverless Functions

Jun 2024

Built Vercel serverless functions for time validation, PDF serving with signed URLs, and access logging. All time checks happen server-side.

Frontend Access Interface

Jul 2024

Built a clean UI showing countdown timers, access windows, and document availability with clear locked/unlocked indicators.

PDF Viewer Integration

Sep 2024

Embedded an in-browser PDF viewer that blocks direct downloads during restricted periods and watermarks authorised views.

Edge Case Handling

Oct 2024

Addressed timezone differences, daylight saving transitions, and concurrent access scenarios. Added graceful degradation for slow connections.

Anti-Tampering Measures

Nov 2024

Server-side validation against URL manipulation and replay attacks, with rate limiting on access attempts.

Testing & Validation

Dec 2024

Tested across timezones, browsers, and devices. Simulated clock manipulation attempts to confirm the server-side enforcement holds.

Security Hardening & Launch

Jan 2025

Applied final constraints — HTTPS enforcement, CORS policies, content security headers — and deployed to Vercel.

Monitoring & Iteration

Feb 2025

Added an access analytics dashboard, refined the UI from user feedback, and documented the security architecture for future maintainers.