---
name: spiser-guidelines
description: Security guidelines to prevent accidental lawsuits over security malfunctions. Use with Claude-created websites in order to avoid security issues leading to potential lawsuits.
---

# Spiser Security Guidelines

Security guidelines to prevent accidental lawsuits over security malfunctions. Use before uploading a website when needed.

**Notice:** These guidelines can't promise there will be no security problems, but they remove many common issues leading to common lawsuits.

## 1. Website compliance & trust remediation

<!-- First prompt is biggest, most important, and comprehensive -->

**Perform a comprehensive audit and remediation of the existing project. Identify and directly fix every applicable issue listed below. Do not just provide recommendations, explanations, or a checklist. Make the actual changes to the codebase, UI, configuration, and documentation.**

Required fixes:
- **Privacy policy:** Create or correct a privacy policy that accurately reflects the website's actual data collection, processing, storage, sharing, and retention practices.
- **Terms of service:** Create or update the terms of service to accurately describe the service, limitations, and applicable terms.
- **Refund policy:** Ensure refund, cancellation, and payment policies are clearly disclosed and consistent with the actual payment system.
- **Cookie policy & consent banner:** Identify all cookies and tracking technologies and document their purposes accurately. Implement a functional cookie consent banner with clear accept, reject, and preference options, and prevent non-essential tracking before consent where required.
- **Form consents:** Audit every form; ensure required consent is separated from optional marketing consent. Remove preselected optional consent and implement appropriate consent recording.
- **Unnecessary data:** Remove unnecessary personal data collection. Minimize information requested from users and avoid collecting information without a legitimate purpose.
- **Third-party SDKs:** Audit all third-party SDKs, analytics, tracking scripts, and integrations. Remove unnecessary integrations and address inappropriate data collection.
- **Dark patterns:** Remove deceptive interface elements, manipulative consent flows, misleading buttons, obstructive cancellation processes, and confusing opt-out mechanisms.
- **Hidden fees:** Audit all pricing and checkout experiences. Clearly disclose recurring charges, additional fees, and payment conditions before users commit to a purchase.
- **Fake reviews:** Remove fabricated, duplicated, misleading, or unverifiable reviews. Never generate replacement testimonials or invent customer experiences.
- **Unsupported claims:** Identify unsupported marketing claims, statistics, guarantees, and product promises. Remove or appropriately qualify claims that cannot be substantiated.
- **Accessibility alt text:** Audit all images and provide meaningful alt text. Use empty alt attributes (`alt=""`) for decorative images where appropriate.
- **Color contrast:** Audit text, buttons, backgrounds, and interactive elements. Correct insufficient contrast to meet applicable WCAG accessibility standards.
- **Keyboard navigation:** Ensure the entire website is navigable using a keyboard. Fix tab order, focus indicators, inaccessible controls, dialogs, menus, and keyboard traps.
- **Business details:** Ensure appropriate business identification and contact information is available. Do not fabricate missing business details.
- **Children's data:** Review age-related data collection and applicable children's privacy requirements. Implement appropriate protections and parental consent mechanisms where legally required.
- **Email unsubscribe:** Ensure marketing emails contain functional unsubscribe mechanisms and that unsubscribe requests are properly processed.
- **Asset licensing:** Audit fonts, images, icons, and other assets. Identify licensing problems, missing attribution, and assets without verified usage rights; replace problematic assets when necessary.
- **Data deletion requests:** Implement a clear data deletion request process. Ensure requests are handled across relevant databases and third-party integrations while respecting applicable legal retention requirements.

## 2. Fix broken access controls

**Check that the logged-in user actually owns the data before handing anything back.**

## 3. Fixing database injection

**Parameterize every query so whatever people type into forms is treated as data, not code.**

## 4. Fixing exposed admin keys

**Make sure the frontend only ever uses your public limited key and keep the admin key server-side.**

## 5. Only use licensed images

**Make sure all images are legally licensed (such as Creative Commons or verified royalty-free/commercial licenses) with proper attribution before using them.**

## 6. Check the licenses on any open-source code

**Check licenses on any open-source code used and include required attribution or license notices.**
