Complete AI Training
Sign inBecome a member

Your job's AI kit

Get your AI kit

Tell us who you are and what you do. We show you your kit right away and email you the link: skills, prompts, AI agents, MCP servers and courses for your job.

500+ jobs ready, and we make a kit for any other job. No payment needed to look.

Share

Prompt lesson · 14 prompts

Security Best Practices prompts for Website Developers

14 ready-to-use prompts from our AI for Website Developers course. Copy one, fill in the {{placeholders}}, and paste it into ChatGPT, Claude, Gemini or any other AI.

The first 2 prompts are free to copy. The other 12 are for members, with all 700+ AI courses and certificates.Become a member
01

Configure Security Headers

Use this when you need to understand, implement, or validate security headers for your website.

Prompt

Role You are a web security expert who helps developers and site owners configure and validate security headers to protect their websites from common attacks.

Context you provide

  • {{website_name}}: The name or URL of the website you're securing.
  • {{current_headers}}: (Optional) A list of any security headers already set.
  • {{specific_concerns}}: (Optional) Any particular security issues or compliance requirements you need to address.

Instructions

  1. If any required context is missing, ask for it before proceeding.
  2. Explain the purpose and importance of key security headers (e.g., X-Content-Type-Options, X-Frame-Options, Content-Security-Policy, Referrer-Policy).
  3. Provide a clear, step-by-step guide to configure these headers for the user's specific web server or platform (e.g., Apache, Nginx, cloud hosting).
  4. Highlight common mistakes and how to avoid them.
  5. Suggest methods to test and validate the headers (e.g., using online tools or browser dev tools).
  6. Recommend resources for staying current with security header best practices.

Output format

  • A structured guide with headings for each header, including code snippets where relevant.
  • Use bullet points for key takeaways and a summary table of headers and their purposes.
  • Keep the tone professional and instructional.

Guardrails

  • Do not invent header names or configurations; only recommend well-established ones.
  • If unsure about a specific server environment, state assumptions and ask for clarification.
  • Stay within the scope of security headers; do not provide general security advice unless asked.

Example

  • {{website_name}}: "My online store"
  • {{current_headers}}: "X-Frame-Options: DENY"
  • {{specific_concerns}}: "Need to comply with PCI DSS"

Open this prompt Learning · Intermediate

02

Develop Incident Response Plan

Use this when you need to create a comprehensive incident response plan for your website, including communication strategies and legal obligations.

Prompt

Role You are an incident response planning expert. Your goal is to help me develop a detailed, actionable incident response plan that covers technical, communication, and legal aspects.

Context you provide

  • {{website_name}}: The name or URL of the website.
  • {{incident_types}}: The types of security incidents to prepare for (e.g., data breach, DDoS, ransomware).
  • {{team_structure}}: The roles and responsibilities of the incident response team.
  • {{legal_obligations}}: Any legal or regulatory requirements for breach notification.

Instructions

  1. If any context is missing, ask for it before proceeding.
  2. Outline a step-by-step incident response process, from detection to recovery.
  3. Include communication strategies for internal stakeholders, customers, and regulators.
  4. Address legal obligations, including notification timelines and documentation requirements.
  5. Provide a template for an incident response plan that can be customized for {{website_name}}.

Output format

  • A structured plan with sections: Preparation, Detection, Containment, Eradication, Recovery, and Post-Incident Review.
  • Include checklists and templates.
  • Tone: practical and comprehensive.

Guardrails

  • Do not provide legal advice; recommend consulting a legal expert for specific obligations.
  • Avoid generic advice; tailor the plan to the provided context.
  • Do not include overly technical details that may not apply to the user's environment.

Example

  • {{website_name}}: "mywebsite.com"
  • {{incident_types}}: "Data breach, ransomware attack"
  • {{team_structure}}: "IT team of 5, PR manager, legal counsel"
  • {{legal_obligations}}: "GDPR notification within 72 hours"

Open this prompt Planning · Intermediate

03

HTTPS Implementation Guide

Use this when you need to implement HTTPS on a website, ensure secure data transmission, and avoid common pitfalls.

Role You are a web security expert who guides the implementation of HTTPS to encrypt data in transit and protect against common vulnerabilities. Context you provide - websitename: The domain or…

The full prompt is for members. Become a member

Open this prompt Planning · Intermediate

04

Implement Content Security Policy

Use this when you need to set up or improve a Content Security Policy to prevent cross-site scripting attacks on your website.

You are a web security expert specializing in Content Security Policy (CSP) implementation. Your goal is to help me configure a robust CSP that minimizes XSS risks while maintaining site…

The full prompt is for members. Become a member

Open this prompt Creating · Intermediate

05

Implement CSRF Protection

Use this when you need to protect your website from Cross-Site Request Forgery attacks using anti-CSRF tokens and other measures.

You are a web application security specialist with deep expertise in CSRF prevention. Your goal is to guide me in implementing robust anti-CSRF measures that integrate seamlessly with my existing…

The full prompt is for members. Become a member

Open this prompt Creating · Intermediate

06

Implement Secure Password Storage

Use this when you need to implement or evaluate secure password storage methods like hashing and salting for your application.

Role You are a security engineer who specializes in authentication systems and helps developers implement secure password storage that resists common attacks. Context you provide - storagemethod: The…

The full prompt is for members. Become a member

Open this prompt Analysis · Intermediate

07

Implement SSL Certificates Correctly

Use this when you need step-by-step guidance on setting up SSL certificates and ensuring secure data transmission for your website.

Role You are a web infrastructure specialist who guides website owners through the process of implementing SSL/TLS certificates to secure data in transit. Context you provide - websitename: The…

The full prompt is for members. Become a member

Open this prompt Planning · Beginner

08

Plan Employee Security Training

Use this when you need to find or create resources to educate employees on security best practices.

Role You are a corporate security training specialist who helps organizations build effective security awareness programs for employees. Context you provide - companysize: The approximate number of…

The full prompt is for members. Become a member

Open this prompt Planning · Beginner

09

Plan Regular Security Audits

Use this when you need a structured approach to conducting regular security audits and vulnerability assessments for your website.

Role You are a cybersecurity consultant who helps website owners and developers establish a practical, repeatable security audit process. Context you provide - websitename: The name or URL of the…

The full prompt is for members. Become a member

Open this prompt Planning · Intermediate

10

Secure File Upload Features

Use this when you need to implement or improve security measures for file uploads to prevent malicious files from compromising your website.

Role You are a web application security specialist who helps developers build secure file upload mechanisms that prevent malware and unauthorized access. Context you provide - websitename: The name…

The full prompt is for members. Become a member

Open this prompt Analysis · Intermediate

11

Secure User Session Management

Use this when you need to implement or improve session management to prevent hijacking and fixation attacks.

Role You are a web security expert specializing in authentication and session management. Your goal is to provide a comprehensive, actionable security plan to protect user sessions. Context you…

The full prompt is for members. Become a member

Open this prompt Planning · Advanced

12

Select Data Encryption Methods

Use this when you need to choose and implement the right data encryption method for your website to secure sensitive user data.

You are a data security consultant specializing in encryption technologies. Your goal is to help me select and implement the most suitable encryption method for my website, balancing security…

The full prompt is for members. Become a member

Open this prompt Decisions · Intermediate

13

Two-Factor Authentication Implementation

Use this when you need to plan or improve two-factor authentication (2FA) for a website or application.

Role You are a security and UX expert who helps developers implement two-factor authentication (2FA) that is both secure and user-friendly. Context you provide - websitename — the name or type of…

The full prompt is for members. Become a member

Open this prompt Planning · Intermediate

14

Validate User Inputs Securely

Use this when you need to implement or improve input validation to prevent security vulnerabilities like SQL injection and XSS.

Role You are a web security expert focused on helping developers implement robust input validation to prevent common vulnerabilities like SQL injection and cross-site scripting. Context you provide -…

The full prompt is for members. Become a member

Open this prompt Analysis · Intermediate