c34de838f4c65d9bf25a45eba53338cfb59e50c1
- Implement tier-based rate limiting with rate-limiter-flexible - Add Redis-backed rate limiters for different user tiers (free/pro/enterprise) - Create comprehensive header redaction service for security - Implement burst protection with per-minute limits - Add organization and project-based rate limiting keys - Create rate limiting middleware with proper error handling - Integrate rate limits with tracking, bulk, and export endpoints - Add header redaction to redirect tracking service - Implement request logging with redacted sensitive headers - Add comprehensive rate limit headers (limit, remaining, reset, tier) - Support for anonymous vs authenticated rate limits - Legacy endpoint rate limiting preserved for backward compatibility - Admin functions for rate limit management and statistics - Comprehensive test suite for all rate limiting scenarios Security improvements: - Sensitive header redaction (auth tokens, cookies, secrets) - Partial redaction for debugging (admin mode) - URL parameter redaction for sensitive data - Request/response body redaction - Configurable redaction levels Backward compatibility: Maintained 100/hr rate limit for legacy endpoints
URL Redirect Tracker
A simple web application that tracks all intermediate redirects from an input URL to the final landing page.
Features
- Tracks all redirects from the initial URL to the final destination
- Displays the time in milliseconds for each redirect
- Marks non-SSL (non-HTTPS) redirects with red
- Shows a complete redirect chain with timing information
Installation
- Clone this repository
- Install dependencies:
npm install - Start the server:
npm start - Open your browser and navigate to
http://localhost:3333
How to Use
- Enter a URL in the input field (e.g.,
http://example.comorexample.com) - Click the "Track Redirects" button
- View the complete redirect chain, including timing information
- Non-SSL (HTTP) redirects will be marked in red
Technical Details
- Built with Node.js and Express
- Uses Axios for making HTTP requests and following redirects
- Frontend built with vanilla JavaScript, HTML, and CSS
- Server runs on port 3333
License
MIT
Description
Languages
TypeScript
71.6%
JavaScript
18.2%
Handlebars
3.1%
Shell
2.8%
CSS
1.9%
Other
2.4%