Security

  1. Web and CodeYour First Claude Code Hook: Block a Command Before It RunsA Claude Code hook that checks every shell command before it runs and blocks the risky ones, such as deleting files, with a message telling Claude why.
  2. Web and CodeYour First Git Hook: Stop Secrets Reaching a CommitA pre-commit hook that scans what you're about to commit for API keys and refuses the commit if it finds one, with a fake key to test it.
  3. Web and CodeWebsite Security Headers: From a B to an A+ in Three Small ChangesRun your site through securityheaders.com, add HSTS and a Content Security Policy, then run it again. What moved the grade, what didn't, and how to check it.