How to Secure Netlify
Step-by-step guide to securing your Netlify deployment and protecting your applications.
Netlify Security Context
Netlify provides automatic HTTPS and DDoS protection. Key security areas include the _headers file, Functions security, form handling, and deploy preview access control.
Security Checklist
Configure environment variables
CriticalStore secrets in Netlify environment variables. Set different values for deploy contexts.
Set up _headers file
CriticalConfigure security headers in _headers file for CSP, X-Frame-Options, etc.
Secure deploy previews
CriticalRestrict deploy preview access or enable password protection.
Review Netlify Functions
CriticalAudit serverless functions for security vulnerabilities and proper auth.
Secure form handling
If using Netlify Forms, validate submissions and enable spam protection.
Configure redirects securely
Audit _redirects file for open redirect vulnerabilities.
Enable HTTPS
Verify HTTPS is enabled and force HTTPS redirects.
Review build settings
Ensure sensitive data isn't exposed in build logs.
Set up team permissions
Configure appropriate access for team members.
Enable audit logging
Track deployments and changes.
Review Edge Functions
Audit Edge Functions for security issues.
Configure Identity
If using Netlify Identity, configure securely.
Review Large Media
Ensure media files don't expose sensitive data.
Enable DDoS protection
Verify DDoS protection is active.
Review split testing
Ensure A/B tests don't expose sensitive variations.
Configure CORS
Set appropriate CORS headers for functions.
Run security scan
Use VibeEval to scan your deployed application.
Related Resources
Automate Your Security Checks
Let VibeEval scan your Netlify application for vulnerabilities.
Scan Your App