Conversation
Build a single-page static site at website/ with Tailwind CSS (CDN), explaining the project, its scoring system, and linking to browser extension install pages. Includes placeholder section for URL analysis feature (task-03). Responsive design with pastel offwhite color palette. Assisted by the code-assist SOP
… and rate limiting Add server-side URL fetching endpoint that accepts a URL, fetches HTML content, and runs it through the existing analysis pipeline. Includes: - SSRF validator: blocks private IPs, loopback, link-local, non-HTTP schemes, with DNS resolution to prevent rebinding attacks - Per-IP rate limiter: sliding window (5 req/min), returns 429 with Retry-After - URL fetcher: configurable body size limit (5MB), redirect following with SSRF validation on each hop, content-type checking, descriptive error messages suggesting browser extension fallback - Configurable CORS origins via CORS_ALLOWED_ORIGINS env var (default: *) - Request type in types/request.go per coding standards Assisted by the code-assist SOP
… display Replace the try-it section placeholder with a functional URL analysis feature that lets users paste a privacy policy URL and get scored results without installing the browser extension. Includes client-side URL validation, loading states, comprehensive error handling (network, fetch failure, rate limiting, non-policy content), and responsive results rendering with risk-level color coding matching the scoring system spec. Assisted by the code-assist SOP
Add RATE_LIMIT_REQUESTS and RATE_LIMIT_WINDOW environment variables to configure the per-IP rate limiter, defaulting to 5 requests per minute to preserve existing behavior.
Both /analyze and /analyze-url now share the same per-IP rate limiter so requests to either endpoint count toward a single budget.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.