home/writing/prompt-injection-defense-3

Prompt Injection Defense

GPTClaudeGemini··1,295 copies·updated 2026-07-14
prompt-injection-defense-3.prompt
---
name: prompt-injection-defense
version: 1.0.0
description: "Four-layer prompt injection defense for AI chatbots on websites — client-side input detection, system prompt hardening, output filtering, Nginx-level auth injection"
author: agent
tags:
  - security
  - prompt-injection
  - sentry
  - guardrails
  - website-security
  - ai-chatbot
platforms: [windows, linux, macos]
---

# Prompt Injection Defense

Multi-layer defense architecture for AI chatbots embedded in websites. Prevents attackers from manipulating the AI's system prompt, extracting sensitive data, or bypassing authentication.

**When to load**: user asks about prompt injection defense, sentry mechanism, AI chatbot security, guardrail implementation, or security hardening of an AI widget on a website.

---

## Architecture: Four-Layer Defense

when to use it

Community prompt sourced from the open-source GitHub repo Lucien-1127/hermes-skills (MIT). A "Prompt Injection Defense" style prompt — adapt the placeholders and specifics to your task. Imported as-is and not independently retested here, so check the output before relying on it.

tags

writingcommunitygeneral

source

Lucien-1127/hermes-skills · MIT