Commit graph

5 commits

Author SHA1 Message Date
DJP
2d8a7bf35f Minimal .htaccess with only directory browsing disabled
Reduced to absolute minimum to avoid Apache compatibility issues:
- Only contains: Options -Indexes
- Removed all Require directives that need Apache 2.4+
- Removed DirectoryMatch that might not be supported
- Works even if AllowOverride is limited

If this still causes 500 error, user needs to enable AllowOverride All
in Apache site configuration.

Co-Authored-By: Claude Sonnet 4.5 (1M context) <noreply@anthropic.com>
2026-01-08 15:11:34 -05:00
DJP
bc777a1bbb Simplify .htaccess to basic directory protection
Changes:
- Removed restrictive file access rules
- Kept only essential security:
  - Disable directory browsing (Options -Indexes)
  - Set default document to report.php
  - Protect .env files
  - Protect .git directory
- Updated README to reflect simplified configuration

Co-Authored-By: Claude Sonnet 4.5 (1M context) <noreply@anthropic.com>
2026-01-08 15:09:55 -05:00
DJP
69f4c3a6c4 Add comprehensive Apache .htaccess configuration
Security Features:
- Protect sensitive files (.env, .git, config files, logs, backups)
- Block access to Python scripts and requirements
- Deny access to webhook_response.json
- Security headers (X-Frame-Options, CSP, XSS Protection, etc.)
- Remove server signature and version information
- Optional HTTPS enforcement (commented out by default)

Performance Optimizations:
- Gzip compression for text files, CSS, JS, JSON
- Browser caching with appropriate expiry times
- Cache-Control headers for static assets
- ETags configuration

PHP Configuration:
- Hide PHP version and errors in production
- Secure session settings (httponly, samesite)
- Upload and execution limits
- Logging configuration

Additional Features:
- Directory browsing disabled
- URL rewriting rules
- Clean URLs support (optional)
- Character encoding set to UTF-8
- Default document set to report.php

README Updates:
- Added .htaccess to project structure
- Expanded Security section with Apache security details
- Instructions for enabling HTTPS redirect
- Documentation of security headers and file protection

Co-Authored-By: Claude Sonnet 4.5 (1M context) <noreply@anthropic.com>
2026-01-08 15:02:02 -05:00
DJP
cd4c03e8b8 Add comprehensive installation guide and tool filtering
README Updates:
- Complete step-by-step installation instructions
- Prerequisites and dependency details
- Configuration guide for both development and production
- Usage instructions for web interface and Python reports
- Troubleshooting section for common issues
- Project structure documentation
- Tool cost configuration guide

Report Filtering Feature:
- Added dropdown filter to select specific AI tools
- Filter applies to tool breakdown table
- Filter state persists across page refreshes using sessionStorage
- Visual feedback showing current filter status
- Clean UI with hover states and transitions

Technical Improvements:
- Added data-tool attributes for JavaScript filtering
- Embedded raw data as JSON for client-side filtering
- Responsive filter container with professional styling
- Filter info badge showing current selection

Co-Authored-By: Claude Sonnet 4.5 (1M context) <noreply@anthropic.com>
2026-01-08 14:54:18 -05:00
DJP
facacc94d4 Update AI Tools Usage Report System - Multi-Tool Support
Enhanced the VEO3 usage report system to support all AI tool types:
- Added support for 6 tool types: VEO3, TEXT2IMAGE, TEXT2VOICE, SPEECH2SPEECH, DOCUMENT_TRANSLATION, VIDEOQUERY
- Updated Python report generator (veo3_report.py) with dynamic tool detection
- Updated PHP report page (report.php) with tool usage breakdown section
- Changed all "Prompts" references to "Requests" for clarity
- Updated refresh button to fetch only last 12 weeks (84 days) for better performance
- Made system dynamic to handle unknown tool types automatically
- Renamed report titles from "VEO3 Usage Report" to "AI Tools Usage Report"

Co-Authored-By: Claude Sonnet 4.5 (1M context) <noreply@anthropic.com>
2026-01-08 14:50:04 -05:00