Time Locked PDF
A secure site that only allows PDF access during specific time windows.
Built With
Project Timeline
Use Case Discovery
Apr 2024Identified 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 2024Designed 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 2024Built 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 2024Created a clean UI showing countdown timers, access windows, and document availability status. Added visual indicators for locked/unlocked states.
PDF Viewer Integration
Sep 2024Implemented an in-browser PDF viewer that prevents direct downloads during restricted periods. Added watermarking for authorised views.
Edge Case Handling
Oct 2024Addressed timezone issues, daylight saving transitions, and concurrent access scenarios. Added graceful degradation for slow connections.
Anti-Tampering Measures
Nov 2024Implemented server-side validation to prevent URL manipulation, replay attacks, and screenshot detection. Added rate limiting for access attempts.
Testing & Validation
Dec 2024Tested across timezones, browsers, and devices. Simulated clock manipulation attempts to verify server-side enforcement holds.
Security Hardening & Launch
Jan 2025Final security constraints applied — HTTPS enforcement, CORS policies, and content security headers. Deployed to Vercel with production configuration.
Monitoring & Iteration
Feb 2025Added access analytics dashboard, refined the UI based on user feedback, and documented the security architecture for future maintenance.