Prompt Injection Defense: Prefix User Input with a Task Label
From Wikiprompt, the free prompt encyclopedia
Prompt Injection Defense: Prefix User Input with a Task Label A simple technique to prevent user input from being interpreted as instructions by prefixing it with a clear task label or translation directive. Useful for building custom GPTs or API prompts.
Prompt ContentSave
🌐
Task, Goal, or Current Prompt:
Now please translate the content below:
[USER_INPUT]
Sign in to see the full prompt
Continue with:
By logging in, you agree to our Terms of Use and Privacy Policy
Usage
This prompt is designed for use with productivity. Copy the prompt content above and paste it into your preferred AI tool.
For best results, you may customize the placeholders (indicated by square brackets or capital letters) with your specific requirements.
References
- Category: productivity Prompts
- Source: https://x.com/dotey/status/1841704140155601104
Talk
0 comments