Skip to content
pontikis.net
  • Blog
  • AI
  • WordPress
  • Labs
  • About
  • Toggle website search
Search this website Press Escape to close the search panel.
Menu Close

t_ai

  1. Home>
  2. Blog>
  3. t_ai>
Read more about the article How to Block Dangerous Commands with Claude Code Hooks
Image created with Claude AI

How to Block Dangerous Commands with Claude Code Hooks

  • Post author:Christos Pontikis
  • Post published: November 26, 2026
  • Post category:Network Security/Artificial intelligence
  • Reading time:9 mins read

Use a Claude Code PreToolUse hook to deny rm -rf, git push --force, curl | bash and .env access before they run, with a tested Bash guard script that fails closed.

Continue ReadingHow to Block Dangerous Commands with Claude Code Hooks
Press Escape to close the search panel.

Categories

Archives

NewsLetter

Click here to subscribe to our free email newsletter.
Unsubscribe anytime with a click.

LIKE OUR PAGE!

  • Opens in a new tab
  • Opens in a new tab
  • Opens in a new tab
  • Opens in a new tab
  • Opens in a new tab
  • Opens in a new tab
  • Opens in a new tab
  • Contact
  • Privacy
  • Terms
© Christos Pontikis 2013 - 2026
Close Menu
  • Blog
  • AI
  • WordPress
  • Labs
  • About
  • Toggle website search
Search this website