Securing Your Site
summary
Live advice on Rails security with actionable checks: use protect_from_forgery and proper HTTP verbs to stop CSRF, enable Rails’ automatic HTML escaping and set cookies to http_only and secure, generate secrets with rake secret, hash passwords with bcrypt, reset sessions at login and enforce timeouts, prefer whitelist mass assignment via attr_accessible or the slice/strong-params pattern, validate uploaded filenames/types and process images asynchronously (Resque), enable SSL site-wide and harden Nginx ciphers, and avoid leaking server/framework versions or sensitive files.
AI-written summary · about
chapters (12)
- 0:00Introduction to web security
- 2:00SQL injection prevention
- 4:29Mitigating XSS attacks
- 9:01Session management best practices
- 19:45Addressing mass assignment
- 23:36Direct object references
- 26:10Cross-site request forgery
- 29:12Redirection and file uploads
- 32:57SSL and transport security
- 34:06Admin and internal security
- 36:10Server and deployment security
- 40:04Security resources and tools








