Back to projects

Time Locked PDF

A secure site that only allows PDF access during specific time windows.

Built With

HTML/JSServerless Functions

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 accessible outside specific windows.

Security Architecture

May 2024

Designed the access control flow: server-side time verification to prevent client-side 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. Ensured all time checks happen server-side.

Frontend Access Interface

Jul 2024

Created a clean UI showing countdown timers, access windows, and document availability status. Added visual indicators for locked/unlocked states.

PDF Viewer Integration

Sep 2024

Implemented an in-browser PDF viewer that prevents direct downloads during restricted periods. Added watermarking for authorised views.

Edge Case Handling

Oct 2024

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

Anti-Tampering Measures

Nov 2024

Implemented server-side validation to prevent URL manipulation, replay attacks, and screenshot detection. Added rate limiting for access attempts.

Testing & Validation

Dec 2024

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

Security Hardening & Launch

Jan 2025

Final security constraints applied — HTTPS enforcement, CORS policies, and content security headers. Deployed to Vercel with production configuration.

Monitoring & Iteration

Feb 2025

Added access analytics dashboard, refined the UI based on user feedback, and documented the security architecture for future maintenance.