This application implements several security measures to protect users and data:
- β
API URLs stored in
.env.local(not committed to git) - β
.env*files are gitignored - β
Example template provided in
.env.example
- β X-Frame-Options: Prevents clickjacking attacks
- β X-Content-Type-Options: Prevents MIME-type sniffing
- β X-XSS-Protection: Enables browser XSS protection
- β Strict-Transport-Security: Forces HTTPS connections
- β Content-Security-Policy: Restricts resource loading
- β Referrer-Policy: Controls referrer information
- β Permissions-Policy: Disables unnecessary browser features
- β 3 questions per IP address
- β 72-hour reset period
- β Server-side enforcement
- β Prevents API abuse
- β No user authentication required
- β No personal data collected
- β Chat history stored locally (browser localStorage)
- β No server-side message storage
- β Privacy-focused analytics (Vercel Analytics - aggregated data only)
- β Performance monitoring (Vercel Speed Insights - no PII)
- β CORS enabled for specific domain
- β HTTPS-only connections
- β No API keys exposed in frontend
- β Rate limiting on API calls
- β React's built-in XSS protection
- β
No
dangerouslySetInnerHTMLusage - β Input sanitization via React
- β Markdown rendering with safe defaults
If you discover a security vulnerability, please email: contact@molaraiche.com
Please include:
- Description of the vulnerability
- Steps to reproduce
- Potential impact
- Suggested fix (if any)
Do not open public issues for security vulnerabilities.
# Never commit these files:
.env.local
.env.production.local
.env.development.local
# Always use environment variables for:
- API endpoints
- API keys
- Secret tokens
- Database URLs- Add environment variables in Vercel dashboard
- Set
NEXT_PUBLIC_API_URLin project settings - Enable automatic HTTPS
- Use Vercel's built-in DDoS protection
- Use a reverse proxy (nginx, Caddy)
- Enable HTTPS with Let's Encrypt
- Configure firewall rules
- Set up rate limiting at proxy level
- Regular security updates
Before deploying to production:
- Environment variables configured
-
.env.localnot committed to git - HTTPS enabled
- Security headers verified
- Rate limiting tested
- CSP policy reviewed
- Dependencies updated
- No console.log in production
- Error messages don't expose sensitive info
- API endpoint secured
| Date | Version | Changes |
|---|---|---|
| 2026-04-27 | 1.1.0 | Added Vercel Analytics & Speed Insights |
| 2026-04-27 | 1.0.0 | Initial security implementation |
- Check for dependency updates
- Review rate limit logs
- Monitor error logs
- Run
npm audit - Update dependencies
- Review security headers
- Check CSP violations
- Full security audit
- Penetration testing
- Review access logs
- Update security policies
This application:
- β Does not collect personal data (GDPR compliant)
- β Uses localStorage (user's device only)
- β No cookies used
- β No third-party tracking
- β Transparent data usage
- β HTTPS enforced (TLS 1.3)
- β Secure WebSocket connections
- β No sensitive data in URLs
- β No sensitive data in localStorage
Last Updated: April 27, 2026
Version: 1.1.0
Maintained by: Molaraiche